From 9f7def9ae02ed720b2a9be877f8eeb3fcbd1fb9a Mon Sep 17 00:00:00 2001 From: ExE Boss Date: Fri, 3 Mar 2017 13:41:42 +0100 Subject: [PATCH] Remove deprecated leftShift call --- shared-scripts/java.gradle | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/shared-scripts/java.gradle b/shared-scripts/java.gradle index 3eb4890..cd88729 100644 --- a/shared-scripts/java.gradle +++ b/shared-scripts/java.gradle @@ -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.") + } } } }