-
Notifications
You must be signed in to change notification settings - Fork 13
Boost Gradle Development
The remaining doc may be a good guide once gradle support is re-added in the future, so we leave it, with the above warning.
For stepping through code in debugger, and using F3 and other source-aware search functions, it's not a Gradle plugin you need, but rather the _Groovy _Eclipse plugin at:
Note the tests (so far) do the child build first and then go run tests against its output. They don't actually run the tests in the child build. We don't know a way to run the child build via GradleRunner w/o using the Gradle daemon. The child builds are launched using the GradleRunner API.
-
Run a single test
./gradlew build -Druntime=wlp -DruntimeVersion=18.0.0.3 --stacktrace --info -Dtest.single=DockerBuildDockerizerClasspath20Test
-
Run a single test in debug mode
./gradlew build -Druntime=wlp -DruntimeVersion=18.0.0.3 --stacktrace --info -Dtest.single=DockerBuildDockerizerClasspath20Test -Dtest.debug
-
Run all tests in debug mode
./gradlew build -Druntime=wlp -DruntimeVersion=18.0.0.3 --stacktrace --info -Dtest.debug
-
Force rerun of tests (that already succeeded)
./gradlew cleanTest build
After running the tests, do something like cd build/testBuilds/DockerBuildDockerizerClasspath20Test
and then run a regular Gradle build.
-
Debug with forced rerun of tests (that already succeeded)
gradle cleanTest build -Dorg.gradle.debug=true
Connects to port 5005. You can use -Dorg.gradle.debug=true
to debug other tasks too like boostPackage.
cd src/test/resources/jaxrsTestApp
gradle -b testJaxrs21.gradle boostPackage -PboostVersion=0.1.1-SNAPSHOT -PboosterVersion=0.2.0 -PruntimeVersion=18.0.0.4 -PruntimeGroup=io.openliberty -PruntimeArtifactId=openliberty-runtime