Skip to content
This repository has been archived by the owner on Oct 14, 2020. It is now read-only.

Boost Gradle Development

Andy Mauer edited this page Sep 20, 2019 · 1 revision

WARNING: Gradle plugin out-of-date.. not updated at 0.2 level.

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.

Groovy Eclipse plugin

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:

https://github.com/groovy/groovy-eclipse

Running integration tests from the "top-level" directory

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

Running child builds directly

From the build output

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.

From the src

 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