Skip to content

Commit

Permalink
Polish build
Browse files Browse the repository at this point in the history
  • Loading branch information
vpavic committed Jun 11, 2019
1 parent 8788165 commit bee9c7c
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}

0 comments on commit bee9c7c

Please sign in to comment.