From 3475043bf03731dde65e8186fdf7605a005b82fe Mon Sep 17 00:00:00 2001 From: Vedran Pavic Date: Mon, 10 Jun 2019 10:29:54 +0200 Subject: [PATCH] Polish build See: spring-projects/spring-security#6200 --- build.gradle | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/build.gradle b/build.gradle index dca5ace3..c5de9207 100644 --- a/build.gradle +++ b/build.gradle @@ -29,20 +29,12 @@ repositories { group = 'org.springframework.session' description = 'Spring Session' -gradle.taskGraph.whenReady { graph -> - def jacocoEnabled = graph.allTasks.any { it instanceof JacocoReport } - subprojects { - plugins.withType(JavaPlugin) { - sourceCompatibility = 1.8 +subprojects { + plugins.withType(JavaPlugin) { + sourceCompatibility = JavaVersion.VERSION_1_8 - tasks.withType(Test) { - useJUnitPlatform() - } - } - plugins.withType(JacocoPlugin) { - tasks.withType(Test) { - jacoco.enabled = jacocoEnabled - } + tasks.withType(Test) { + useJUnitPlatform() } } }