Created
July 26, 2021 14:24
-
-
Save bqcuong/0ee9b7355b7fa3e653626e52d3e5e8ec to your computer and use it in GitHub Desktop.
Gradle Copy classpath
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
task copyClasspath { | |
def runtimeClasspath = sourceSets.test.runtimeClasspath | |
inputs.files( runtimeClasspath ) | |
doLast { | |
new File(projectDir, "classpath.info").text = runtimeClasspath.join( File.pathSeparator ) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment