Skip to content

Commit f85be8e

Browse files
committed
Upgrade to Gradle 2.5
Issue: SPR-15039
1 parent f22c669 commit f85be8e

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ buildscript {
44
}
55
dependencies {
66
classpath("org.springframework.build.gradle:propdeps-plugin:0.0.7")
7-
classpath("org.springframework.build.gradle:docbook-reference-plugin:0.2.8")
7+
classpath("io.spring.gradle:docbook-reference-plugin:0.3.1")
88
}
99
}
1010

@@ -1050,7 +1050,7 @@ configure(rootProject) {
10501050

10511051
task wrapper(type: Wrapper) {
10521052
description = "Generates gradlew[.bat] scripts"
1053-
gradleVersion = "1.12"
1053+
gradleVersion = "2.5"
10541054

10551055
doLast() {
10561056
def gradleOpts = "-XX:MaxPermSize=1024m -Xmx1024m"

buildSrc/src/main/groovy/org/springframework/build/gradle/MergePlugin.groovy

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ class MergePlugin implements Plugin<Project> {
6868
Configuration runtimeMerge = project.configurations.create("runtimeMerge")
6969

7070
// Ensure the IDE can reference merged projects
71-
project.eclipse.classpath.plusConfigurations += [runtimeMerge]
72-
project.idea.module.scopes.PROVIDED.plus += runtimeMerge
71+
project.eclipse.classpath.plusConfigurations += [ runtimeMerge ]
72+
project.idea.module.scopes.PROVIDED.plus += [ runtimeMerge ]
7373

7474
// Hook to perform the actual merge logic
7575
project.afterEvaluate{
@@ -132,8 +132,9 @@ class MergePlugin implements Plugin<Project> {
132132
intoConfiguration.dependencies.add(it)
133133
}
134134
}
135+
def index = project.parent.childProjects.findIndexOf {p -> p.getValue() == project}
135136
project.merge.into.install.repositories.mavenInstaller.pom.scopeMappings.addMapping(
136-
mapping.priority + 100, intoConfiguration, mapping.scope)
137+
mapping.priority + 100 + index, intoConfiguration, mapping.scope)
137138
}
138139
}
139140
}

gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-1.12-bin.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-2.5-bin.zip

0 commit comments

Comments
 (0)