Skip to content

Commit

Permalink
Remove deprecated leftShift call
Browse files Browse the repository at this point in the history
  • Loading branch information
ExE-Boss committed Mar 3, 2017
1 parent 4b3ba57 commit 9f7def9
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions shared-scripts/java.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,12 @@ jacocoTestReport {
}
}

task checkTestStyle << {
sourceSets.test.java.each { file ->
if (file.text.contains("org.junit.Assert")) {
throw new GradleException("File $file.name uses junit assertions, please use assertj assertions! See https://joel-costigliola.github.io/assertj/ to learn about assertj.")
task checkTestStyle {
doLast {
sourceSets.test.java.each { file ->
if (file.text.contains("org.junit.Assert")) {
throw new GradleException("File $file.name uses junit assertions, please use assertj assertions! See https://joel-costigliola.github.io/assertj/ to learn about assertj.")
}
}
}
}
Expand Down

0 comments on commit 9f7def9

Please sign in to comment.