mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-06-13 23:52:14 +00:00
SEC-2579: Update Spring IO plugin configuration
- Upgrade to 0.0.3.RELEASE of the plugin - Declare a dependency in the springIoVersions configuration on the Platform’s platform-versions artifact. An external property is used to provide the version of this artifact. This means that the build script does not need to refer to a snapshot artifact (the only version available at the time of writing) and also breaks a circular dependency between Spring Security (a project that’s part of the Platform) and the Platform itself. - The plugin applied and the libs-snapshot repository is added only if the external property is specified. This removes the possibility of a release or milestone being shipped with a snapshot dependency (unless the release build is performed with -PplatformVersion=foo).
This commit is contained in:
parent
be687d6a84
commit
f37e414442
15
build.gradle
15
build.gradle
@ -7,7 +7,7 @@ buildscript {
|
|||||||
dependencies {
|
dependencies {
|
||||||
classpath("org.springframework.build.gradle:propdeps-plugin:0.0.6")
|
classpath("org.springframework.build.gradle:propdeps-plugin:0.0.6")
|
||||||
classpath("org.springframework.build.gradle:bundlor-plugin:0.1.2")
|
classpath("org.springframework.build.gradle:bundlor-plugin:0.1.2")
|
||||||
classpath("org.springframework.build.gradle:springio-platform-plugin:0.0.2.RELEASE")
|
classpath("org.springframework.build.gradle:spring-io-plugin:0.0.3.RELEASE")
|
||||||
classpath("org.gradle.api.plugins:gradle-tomcat-plugin:0.9.8")
|
classpath("org.gradle.api.plugins:gradle-tomcat-plugin:0.9.8")
|
||||||
classpath('me.champeau.gradle:gradle-javadoc-hotfix-plugin:0.1')
|
classpath('me.champeau.gradle:gradle-javadoc-hotfix-plugin:0.1')
|
||||||
classpath('org.asciidoctor:asciidoctor-gradle-plugin:0.7.0')
|
classpath('org.asciidoctor:asciidoctor-gradle-plugin:0.7.0')
|
||||||
@ -101,7 +101,18 @@ configure(javaProjects) {
|
|||||||
configure(coreModuleProjects) {
|
configure(coreModuleProjects) {
|
||||||
apply plugin: 'bundlor'
|
apply plugin: 'bundlor'
|
||||||
apply plugin: 'emma'
|
apply plugin: 'emma'
|
||||||
apply plugin: 'springio-platform'
|
|
||||||
|
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"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
bundlor.doFirst {
|
bundlor.doFirst {
|
||||||
def templateText = file("template.mf").text
|
def templateText = file("template.mf").text
|
||||||
|
Loading…
x
Reference in New Issue
Block a user