diff --git a/build.gradle b/build.gradle index 694290ab..c9ef8de2 100644 --- a/build.gradle +++ b/build.gradle @@ -4,6 +4,7 @@ buildscript { } dependencies { classpath("org.springframework.build.gradle:propdeps-plugin:0.0.5") + classpath("org.springframework.build.gradle:spring-io-plugin:0.0.3.RELEASE") classpath("org.springframework.build.gradle:docbook-reference-plugin:0.2.8") classpath("me.champeau.gradle:gradle-javadoc-hotfix-plugin:0.1") } @@ -52,6 +53,18 @@ configure(subprojects.findAll {it.name != "spring-build-src"}) { subproject -> configure(subprojects.findAll { it.name != "spring-build-src" && it.name != "spring-js-resources"}) { subproject -> + if (project.hasProperty('platformVersion')) { + apply plugin: 'spring-io' + + repositories { + maven { url "https://repo.spring.io/libs-snapshot" } + } + + dependencies { + springIoVersions "io.spring.platform:platform-versions:${platformVersion}@properties" + } + } + dependencies { testCompile("junit:junit-dep:4.10") testCompile("org.hamcrest:hamcrest-all:1.3") @@ -65,9 +78,13 @@ configure(subprojects.findAll { log4jVersion = "1.2.17" } - test { - systemProperty("java.awt.headless", "true") - include "**/*Tests.class" + tasks.withType(Test).all { + systemProperty("java.awt.headless", "true") + include "**/*Tests.class" + + if (name ==~ /springIo.*/) { + exclude '**/tiles2/**' + } } javadoc {