cloud-opensource-java icon indicating copy to clipboard operation
cloud-opensource-java copied to clipboard

Linkage Checker Gradle plugin instruction to depend on the build phase

Open suztomo opened this issue 4 years ago • 1 comments

As of now, the plugin documentation doesn't add any task dependency.

https://github.com/GoogleCloudPlatform/cloud-opensource-java/wiki/Linkage-Checker-with-Gradle

However linkageCheck task expects the project's JAR file built before running it. Therefore it should depend on "build" task.

suztomo avatar Aug 11 '21 14:08 suztomo

For now, I updated the documentation

// Run build task first to generate JAR file of this project
linkageCheck.dependsOn('build')

suztomo avatar Aug 11 '21 21:08 suztomo