Skip to content

Commit

Permalink
Fix for gradle 4.8 removing check dependency on test, proc:none to av…
Browse files Browse the repository at this point in the history
…oid warnings
  • Loading branch information
jonesde committed Jun 4, 2018
1 parent 15778c6 commit 4c4e3ea
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ repositories {
jcenter()
}

// Log4J has annotation processors, disable to avoid warning
tasks.withType(JavaCompile) { options.compilerArgs << "-proc:none" }
tasks.withType(GroovyCompile) { options.compilerArgs << "-proc:none" }

dependencies {
compile project(':framework')

Expand Down Expand Up @@ -71,7 +75,9 @@ dependencies {
}

// by default the Java plugin runs test on build, change to not do that (only run test if explicit task)
check.dependsOn.remove(test)
// no longer workds as of gradle 4.8 or possibly earlier, use clear() instead: check.dependsOn.remove(test)
check.dependsOn.clear()

task cleanLib(type: Delete) { delete fileTree(dir: projectDir.absolutePath+'/lib', include: '*') }
clean.dependsOn cleanLib

Expand Down

0 comments on commit 4c4e3ea

Please sign in to comment.