Gradle
From Gentoo Wiki
Gradle is a Java-based build, automation and delivery tool.
Usage
Dependency tree
Packagers wanting to see the dependency tree of a package, e.g. v1.72 of dev-java/bcmail, use:
user $
gradle dependencies | sed -n '/Classpath/,/^$/p'
compileClasspath - Compile classpath for source set 'main'. +--- project :core +--- project :util +--- project :pkix +--- project :prov \--- javax.mail:mail:1.4 \--- javax.activation:activation:1.1 runtimeClasspath - Runtime classpath of source set 'main'. +--- project :core | \--- org.openjdk.jmh:jmh-core:1.33 | +--- net.sf.jopt-simple:jopt-simple:4.6 | \--- org.apache.commons:commons-math3:3.2 +--- project :util | \--- project :core (*) +--- project :pkix | +--- project :core (*) | +--- project :util (*) | \--- project :prov | \--- project :core (*) +--- project :prov (*) \--- javax.mail:mail:1.4 \--- javax.activation:activation:1.1 testCompileClasspath - Compile classpath for source set 'test'. +--- project :core +--- project :util +--- project :pkix +--- project :prov +--- javax.mail:mail:1.4 | \--- javax.activation:activation:1.1 \--- junit:junit:4.11 \--- org.hamcrest:hamcrest-core:1.3 testRuntimeClasspath - Runtime classpath of source set 'test'. +--- project :core | \--- org.openjdk.jmh:jmh-core:1.33 | +--- net.sf.jopt-simple:jopt-simple:4.6 | \--- org.apache.commons:commons-math3:3.2 +--- project :util | \--- project :core (*) +--- project :pkix | +--- project :core (*) | +--- project :util (*) | \--- project :prov | \--- project :core (*) +--- project :prov (*) +--- javax.mail:mail:1.4 | \--- javax.activation:activation:1.1 \--- junit:junit:4.11 \--- org.hamcrest:hamcrest-core:1.3
For specific classpath, e.g. runtimeClasspath the command is:
user $
gradle dependencies --configuration runtimeClasspath
In case the above commands give errors it's sometimes still possible to run gradlew
user $
./gradlew dependencies
Further command line tasks
Command line tasks are explained on https://docs.gradle.org/current/userguide/command_line_interface.html#common_tasks
Availability
An ebuild is available in the mva-overlay ebuild repository.
Packages waiting for Gradle support
New packages for the tree which depend on Gradle are organized by the tracker ticket bug #777609