INT-3274: build.gradle: BUILD-SNAPSHOT condition
JIRA: https://jira.springsource.org/browse/INT-3274 * Add condition on `springVersion` to check `BUILD-SNAPSHOT` release category on version and enable `libs-snapshot` repository To allow CI plan to build with SF snapshots it's just enough to configure the Gradle option `-PspringVersion=3.2.7.BUILD-SNAPSHOT`
This commit is contained in:
committed by
Gary Russell
parent
d1dfecdd1e
commit
124d8745c4
@@ -25,8 +25,11 @@ allprojects {
|
||||
group = 'org.springframework.integration'
|
||||
|
||||
repositories {
|
||||
maven { url 'http://repo.springsource.org/libs-milestone' }
|
||||
maven { url 'http://repo.springsource.org/plugins-release' }
|
||||
if (project.hasProperty('springVersion') && getProperty('springVersion').endsWith('BUILD-SNAPSHOT')) {
|
||||
maven { url 'http://repo.spring.io/libs-snapshot' }
|
||||
}
|
||||
maven { url 'http://repo.spring.io/libs-milestone' }
|
||||
maven { url 'http://repo.spring.io/plugins-release' }
|
||||
mavenCentral()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user