Skip to content

Commit

Permalink
build.gradle: remove strict compile options for run task
Browse files Browse the repository at this point in the history
  • Loading branch information
bwRavencl committed Jan 29, 2024
1 parent 355f6b7 commit 1b762e7
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -303,10 +303,14 @@ tasks.spotlessXml.dependsOn copyGameControllerDB
tasks.withType(JavaCompile).configureEach {
dependsOn generateModuleInfo, generateMetadata
source generateMetadata.outputs.files, sourceSets.main.java
options.compilerArgs << '-Xlint:all' << '-Werror'
options.encoding = 'UTF-8'
options.deprecation = true
options.errorprone.error 'MissingBraces'
gradle.taskGraph.whenReady {
if (!it.hasTask(run)) {
options.compilerArgs << '-Xlint:all' << '-Werror'
options.deprecation = true
options.errorprone.error 'MissingBraces'
}
}
}

run {
Expand Down

0 comments on commit 1b762e7

Please sign in to comment.