From bee9c7c2e2879597a67e98c647a7cfe6d84e6c80 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 | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/build.gradle b/build.gradle index a9917521..9f4c841d 100644 --- a/build.gradle +++ b/build.gradle @@ -23,16 +23,8 @@ apply plugin: 'io.spring.convention.root' 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 - } - plugins.withType(JacocoPlugin) { - tasks.withType(Test) { - jacoco.enabled = jacocoEnabled - } - } +subprojects { + plugins.withType(JavaPlugin) { + sourceCompatibility = JavaVersion.VERSION_1_8 } }