Last active
September 13, 2021 20:08
-
-
Save ghale/dc46fd35fe655fbcdd4d71d97f1ecb05 to your computer and use it in GitHub Desktop.
Capture Java compiler arguments
This file contains hidden or 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
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