Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update deps #11

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Update deps #11

wants to merge 5 commits into from

Conversation

jetztgradnet
Copy link

This PR fixes #10 and provides an update to work with modern Java versions (JDK11+) and Groovy 4.
I am happy to discuss and revisit any changes. Specifically the addition of the Gradle build because I couldn't get the all issues with the Maven/GMavenPlus build resolved.

Please let me know if you are willing to consider an update. I will also updates the docs, as there are some obsolete links, etc.

The individual commits:

Added Maven wrapper

Using GMavenPlus instead of obsolete GMaven plugin

Also updated dependencies to Groovy 4.0.x and recent args4j

Update YouDebug to run with JDK 9+ and Groovy 4

  • removed '()' shortcut for 'ref()' as '' is now a Java keyword
  • added some additional error handling to load classes which haven't are
    not available yet
  • fixed some issues with newer Groovy version
  • removed code to search for tools.jar, as this is no longer available
    with JDK9+. Instead use this java command line argument to get access to
    the module for debugging:
    --add-opens=jdk.jdi/com.sun.tools.jdi=ALL-UNNAMED

Added Dockerfile and start script

To run YouDebug using docker without further dependencies, build the
Docker image:
docker build -t youdebug .

Now mount your debug script into the container and run YouDebug:
docker run --name "ydb" youdebug -v
./myscript.ydb:/opt/youdebug/scripts/myscript.ydb /myscript.ydb

Added Gradle build

The Maven build does not currently fully work with the updated
GMavenPlus plugin and Groovy 4.
As an alternative, this Gradle build allows building YouDebug:

./gradlew build

Also updated dependencies to Groovy 4.0.x and recent args4j
- removed '_()' shortcut for 'ref()' as '_' is now a Java keyword
- added some additional error handling to load classes which haven't are
not available yet
- fixed some issues with newer Groovy version
- removed code to search for tools.jar, as this is no longer available
with JDK9+. Instead use this java command line argument to get access to
the module for debugging:
--add-opens=jdk.jdi/com.sun.tools.jdi=ALL-UNNAMED
To run YouDebug using docker without further dependencies, build the
Docker image:
docker build -t youdebug .

Now mount your debug script into the container and run YouDebug:
docker run --name "ydb" youdebug -v
./myscript.ydb:/opt/youdebug/scripts/myscript.ydb /myscript.ydb
The Maven build does not currently fully work with the updated
GMavenPlus plugin and Groovy 4.
As an alternative, this Gradle build allows building YouDebug:

./gradlew build
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update to work with modern Java versions and Groovy 4
1 participant