Skip to content

Instantly share code, notes, and snippets.

@bqcuong
Created July 26, 2021 14:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bqcuong/0ee9b7355b7fa3e653626e52d3e5e8ec to your computer and use it in GitHub Desktop.
Save bqcuong/0ee9b7355b7fa3e653626e52d3e5e8ec to your computer and use it in GitHub Desktop.
Gradle Copy classpath
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