diff --git a/build.gradle b/build.gradle index 8cc259bff..773e3196c 100644 --- a/build.gradle +++ b/build.gradle @@ -5,6 +5,7 @@ buildscript { dependencies { classpath 'org.springframework.build.gradle:propdeps-plugin:0.0.6' classpath 'org.springframework.build.gradle:docbook-reference-plugin:0.2.7' + classpath 'org.springframework.build.gradle:spring-io-plugin:0.0.3.RELEASE' } } @@ -42,7 +43,7 @@ configure(allprojects) { sourceSets.test.resources.srcDirs = ['src/test/resources', 'src/test/java'] - test { + tasks.withType(Test).all { systemProperty("java.awt.headless", "true") systemProperty("testGroups", project.properties.get("testGroups")) scanForTestClasses = false @@ -79,6 +80,18 @@ configure(subprojects) { subproject -> apply plugin: "maven" apply from: "${rootProject.projectDir}/publish-maven.gradle" + 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" + } + } + jar { manifest.attributes["Created-By"] = "${System.getProperty("java.version")} (${System.getProperty("java.specification.vendor")})"