Skip to content

Latest commit

 

History

History
 
 

README.md

Linkage Checker Gradle Plugin

For usage of this plugin, see the documentation.

Build Instruction

$ cd gradle-plugin
$ ./gradlew build publishToMavenLocal

This command installs the Linkage Checker Gradle plugin in Maven local repository.

suztomo-macbookpro44% ls ~/.m2/repository/com/google/cloud/tools/linkage-checker-gradle-plugin/0.1.0-SNAPSHOT/
linkage-checker-gradle-plugin-0.1.0-SNAPSHOT.jar
linkage-checker-gradle-plugin-0.1.0-SNAPSHOT.pom

Debug

./gradlew check --stacktrace  -Dorg.gradle.debug=true --no-daemon

Debugging Functional Tests (src/functionalTest)

To enable break points in the Groovy scripts in IntelliJ, install 'Spock Framework Enhancement'.

To enable break points in the Java code of the Gradle plugin during the functional tests, add -Dorg.gradle.testkit.debug=true to the VM argument ( Testing Build Logic with TestKit: Debugging build logic). When you see IntelliJ has outdated class files, run ./gradlew build publishToMavenLocal to reflect the latest code.