Browse Source

Upgrade to Gradle 2.5

Issue: SPR-15039
pull/1341/head
Stephane Nicoll 9 years ago
parent
commit
f85be8ebef
  1. 4
      build.gradle
  2. 7
      buildSrc/src/main/groovy/org/springframework/build/gradle/MergePlugin.groovy
  3. 2
      gradle/wrapper/gradle-wrapper.properties

4
build.gradle

@ -4,7 +4,7 @@ buildscript { @@ -4,7 +4,7 @@ buildscript {
}
dependencies {
classpath("org.springframework.build.gradle:propdeps-plugin:0.0.7")
classpath("org.springframework.build.gradle:docbook-reference-plugin:0.2.8")
classpath("io.spring.gradle:docbook-reference-plugin:0.3.1")
}
}
@ -1050,7 +1050,7 @@ configure(rootProject) { @@ -1050,7 +1050,7 @@ configure(rootProject) {
task wrapper(type: Wrapper) {
description = "Generates gradlew[.bat] scripts"
gradleVersion = "1.12"
gradleVersion = "2.5"
doLast() {
def gradleOpts = "-XX:MaxPermSize=1024m -Xmx1024m"

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

@ -68,8 +68,8 @@ class MergePlugin implements Plugin<Project> { @@ -68,8 +68,8 @@ class MergePlugin implements Plugin<Project> {
Configuration runtimeMerge = project.configurations.create("runtimeMerge")
// Ensure the IDE can reference merged projects
project.eclipse.classpath.plusConfigurations += [runtimeMerge]
project.idea.module.scopes.PROVIDED.plus += runtimeMerge
project.eclipse.classpath.plusConfigurations += [ runtimeMerge ]
project.idea.module.scopes.PROVIDED.plus += [ runtimeMerge ]
// Hook to perform the actual merge logic
project.afterEvaluate{
@ -132,8 +132,9 @@ class MergePlugin implements Plugin<Project> { @@ -132,8 +132,9 @@ class MergePlugin implements Plugin<Project> {
intoConfiguration.dependencies.add(it)
}
}
def index = project.parent.childProjects.findIndexOf {p -> p.getValue() == project}
project.merge.into.install.repositories.mavenInstaller.pom.scopeMappings.addMapping(
mapping.priority + 100, intoConfiguration, mapping.scope)
mapping.priority + 100 + index, intoConfiguration, mapping.scope)
}
}
}

2
gradle/wrapper/gradle-wrapper.properties vendored

@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-1.12-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-2.5-bin.zip

Loading…
Cancel
Save