Skip to content

Commit

Permalink
Comments on -parameters compilerArgs
Browse files Browse the repository at this point in the history
  • Loading branch information
prdoyle committed Jan 10, 2025
1 parent ac7ca47 commit ea7b764
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions buildSrc/src/main/groovy/bosk.development.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,15 @@ allprojects {

dependencies {
compileJava {
options.compilerArgs << '-parameters'
options.compilerArgs << '-parameters' // @ParametersByName doesn't work without this; not sure why
options.compilerArgs << '-Xlint'
options.compilerArgs << '-Xlint:-serial' // Don't care about Java serialization
options.compilerArgs << '-Xlint:-try' // Really annoying bogus "auto-closeable never used" warnings
options.compilerArgs << '-Xlint:-processing' // Not all annotations are meant for compile-time "annotation processing"
}

compileTestJava {
options.compilerArgs << '-parameters'
options.compilerArgs << '-parameters' // For @ParametersByName
}
}

Expand Down

0 comments on commit ea7b764

Please sign in to comment.