Created
January 4, 2021 15:32
-
-
Save udalov/e4fd7f32838aa7b49a05a8d1e8ff75a3 to your computer and use it in GitHub Desktop.
get-jar-from-gradle-dependency.gradle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Usage: gradle -b get-jar-from-gradle-dependency.gradle | |
apply plugin: 'java' | |
repositories { | |
mavenCentral() | |
jcenter() | |
} | |
dependencies { | |
compileOnly("javax.inject:javax.inject:1") // Replace with the coordinates of the required dependency | |
} | |
task getJar { | |
configurations.compileClasspath.forEach { println(it) } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment