Skip to content

Instantly share code, notes, and snippets.

@ghale
Last active September 13, 2021 20:08
Show Gist options
  • Save ghale/dc46fd35fe655fbcdd4d71d97f1ecb05 to your computer and use it in GitHub Desktop.
Save ghale/dc46fd35fe655fbcdd4d71d97f1ecb05 to your computer and use it in GitHub Desktop.
Capture Java compiler arguments
allprojects {
tasks.withType(JavaCompile).configureEach { task ->
doFirst {
rootProject.buildScan.value "${task.path}.compilerArgs", options.compilerArgs.join("\n")
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment