Add the Spring IO Platform plugin

INT-3396: Polishing

JIRA: https://jira.spring.io/browse/INT-3396

Updates for latest snapshots of the Spring IO plugin

Update the configuration to use the renamed plugin. Add a dependency in
the springIoVersions configuration that points to the versions published
by Spring IO.

Upgrade to 0.0.3.RELEASE

Upgrade the plugin version to 0.0.3.RELEASE. Only apply the plugin if
the platformVersion property has been set.

Polishing following upgrade to 0.0.3.RELEASE

- Remove reference to snapshot plugins repository
- Remove unnessary use of the springIoVersions configuration

Improve configuration of snapshot repository

Upgrade to latest SD to be consistent with IO
This commit is contained in:
Andy Wilkinson
2014-05-15 15:09:37 +03:00
committed by Artem Bilan
parent 8a44d4da0b
commit 11b87034c5
2 changed files with 51 additions and 45 deletions

View File

@@ -8,6 +8,7 @@ buildscript {
maven { url 'http://repo.spring.io/plugins-release' }
}
dependencies {
classpath 'org.springframework.build.gradle:spring-io-plugin:0.0.3.RELEASE'
classpath 'org.springframework.build.gradle:docbook-reference-plugin:0.2.8'
}
}
@@ -25,7 +26,7 @@ allprojects {
group = 'org.springframework.integration'
repositories {
if (version.endsWith('BUILD-SNAPSHOT')) {
if (version.endsWith('BUILD-SNAPSHOT') || project.hasProperty('platformVersion')) {
maven { url 'http://repo.spring.io/libs-snapshot' }
}
maven { url 'http://repo.spring.io/libs-milestone' }
@@ -54,6 +55,14 @@ subprojects { subproject ->
apply plugin: 'eclipse'
apply plugin: 'idea'
if (project.hasProperty('platformVersion')) {
apply plugin: 'spring-io'
dependencies {
springIoVersions "io.spring.platform:platform-versions:${platformVersion}@properties"
}
}
sourceCompatibility=1.6
targetCompatibility=1.6
@@ -99,9 +108,9 @@ subprojects { subproject ->
slf4jVersion = "1.7.6"
smackVersion = '3.2.1'
springAmqpVersion = project.hasProperty('springAmqpVersion') ? project.springAmqpVersion : '1.3.2.RELEASE'
springDataMongoVersion = '1.4.2.RELEASE'
springDataRedisVersion = '1.2.1.RELEASE'
springGemfireVersion = '1.3.4.RELEASE'
springDataMongoVersion = '1.5.0.BUILD-SNAPSHOT'
springDataRedisVersion = '1.3.0.BUILD-SNAPSHOT'
springGemfireVersion = '1.4.0.BUILD-SNAPSHOT'
springSecurityVersion = '3.2.3.RELEASE'
springSocialTwitterVersion = '1.1.0.RELEASE'
springRetryVersion = '1.1.0.RELEASE'
@@ -152,29 +161,6 @@ subprojects { subproject ->
ext.xLintArg = '-Xlint:all,-options'
[compileJava, compileTestJava]*.options*.compilerArgs = [xLintArg]
test {
// suppress all console output during testing unless running `gradle -i`
logging.captureStandardOutput(LogLevel.INFO)
jvmArgs "-javaagent:${configurations.jacoco.asPath}=destfile=${buildDir}/jacoco.exec,includes=org.springframework.integration.*"
}
task testAll() {
doFirst {
tasks.test.systemProperty 'RUN_LONG_INTEGRATION_TESTS', 'true'
}
finalizedBy test
}
task sourcesJar(type: Jar) {
classifier = 'sources'
from sourceSets.main.allJava
}
task javadocJar(type: Jar) {
classifier = 'javadoc'
from javadoc
}
task checkTestConfigs {
doLast {
def configFiles = []
@@ -190,12 +176,37 @@ subprojects { subproject ->
if (configFiles) {
throw new InvalidUserDataException('Hardcoded XSD version in the config files:\n' +
configFiles.collect {relativePath(it)}.join('\n') +
'\nPlease, use versionless schemaLocations for Spring XSDs to avoid issues with builds on different versions of dependencies.')
'\nPlease, use versionless schemaLocations for Spring XSDs to avoid issues with builds ' +
'on different versions of dependencies.')
}
}
}
test.dependsOn checkTestConfigs
test {
jvmArgs "-javaagent:${configurations.jacoco.asPath}=destfile=${buildDir}/jacoco.exec,includes=org.springframework.integration.*"
}
task testAll(type: Test)
tasks.withType(Test).all {
// suppress all console output during testing unless running `gradle -i`
logging.captureStandardOutput(LogLevel.INFO)
dependsOn checkTestConfigs
if (name ==~ /(springIo.*)|(testAll)/) {
systemProperty 'RUN_LONG_INTEGRATION_TESTS', 'true'
}
}
task sourcesJar(type: Jar) {
classifier = 'sources'
from sourceSets.main.allJava
}
task javadocJar(type: Jar) {
classifier = 'javadoc'
from javadoc
}
artifacts {
archives sourcesJar
@@ -285,7 +296,7 @@ project('spring-integration-ftp') {
project('spring-integration-gemfire') {
description = 'Spring Integration GemFire Support'
test {
tasks.withType(Test).matching {it.name ==~ /(springIo.+)|(test)|(testAll)/}.all {
forkEvery = 1
systemProperties['gemfire.disableShutdownHook'] = 'true'
}
@@ -422,11 +433,8 @@ project('spring-integration-jpa') {
//Suppress openjpa annotation processor warnings
compileTestJava.options.compilerArgs = ["${xLintArg},-processing"]
test.doFirst {
def javaAgents = configurations.testRuntime.resolvedConfiguration.resolvedArtifacts
.findAll { it.name in ['spring-instrument', 'openjpa'] }
.collect { "-javaagent:${it.file}" }
jvmArgs javaAgents
tasks.withType(Test).matching {it.name ==~ /(springIo.+)|(test)|(testAll)/}.all {
jvmArgs classpath.files.findAll{it.name ==~ /(spring-instrument.+)|(openjpa.+)/}.collect{"-javaagent:$it"}
}
}

View File

@@ -11,12 +11,14 @@
<bean id="latching" class="org.springframework.integration.redis.util.AggregatorWithRedisLocksTests$LatchingReleaseStrategy" />
<bean id="connectionFactory" class="org.springframework.data.redis.connection.jedis.JedisConnectionFactory">
<property name="port" value="#{T(org.springframework.integration.redis.rules.RedisAvailableRule).REDIS_PORT}"/>
<!--TODO until SD-Redis will fix the TX support issue-->
<property name="usePool" value="false"/>
</bean>
<bean id="redisLockRegistry" class="org.springframework.integration.redis.util.RedisLockRegistry">
<constructor-arg>
<bean class="org.springframework.data.redis.connection.jedis.JedisConnectionFactory">
<property name="port" value="#{T(org.springframework.integration.redis.rules.RedisAvailableRule).REDIS_PORT}"/>
</bean>
</constructor-arg>
<constructor-arg ref="connectionFactory"/>
<constructor-arg value="aggregatorWithRedisLocksTests" />
</bean>
@@ -27,11 +29,7 @@
expire-groups-upon-completion="true" lock-registry="redisLockRegistry2" />
<bean id="redisLockRegistry2" class="org.springframework.integration.redis.util.RedisLockRegistry">
<constructor-arg>
<bean class="org.springframework.data.redis.connection.jedis.JedisConnectionFactory">
<property name="port" value="#{T(org.springframework.integration.redis.rules.RedisAvailableRule).REDIS_PORT}"/>
</bean>
</constructor-arg>
<constructor-arg ref="connectionFactory"/>
<constructor-arg value="aggregatorWithRedisLocksTests" />
</bean>