diff --git a/build.gradle b/build.gradle index c3f2479a07..a54ec76fb2 100644 --- a/build.gradle +++ b/build.gradle @@ -21,6 +21,7 @@ configure(allprojects) { ext.hsqldbVersion='1.8.0.10' ext.junitVersion = '4.11.20120805.1225' // temporary use of snapshot; spring-test // still builds against on 4.10 + ext.gradleScriptDir = "${rootProject.projectDir}/gradle" [compileJava, compileTestJava]*.options*.compilerArgs = ['-Xlint:none'] @@ -55,7 +56,7 @@ configure(subprojects - project(":spring-test")) { } configure(subprojects) { subproject -> - apply from: "${rootProject.projectDir}/publish-maven.gradle" + apply from: "${gradleScriptDir}/publish-maven.gradle" jar { manifest.attributes['Created-By'] = @@ -505,7 +506,8 @@ project('spring-webmvc') { project('spring-webmvc-tiles3') { description = 'Spring Framework Tiles3 Integration' - apply from: 'tiles3.gradle' + ext.mergeIntoProject = project(':spring-webmvc') + apply from: "${gradleScriptDir}/merge-artifacts.gradle" dependencies { compile project(":spring-context") compile project(":spring-webmvc").sourceSets.main.output @@ -572,7 +574,8 @@ project('spring-test') { project('spring-test-mvc') { description = 'Spring Test MVC Framework' - apply from: 'test-mvc.gradle' + ext.mergeIntoProject = project(':spring-test') + apply from: "${gradleScriptDir}/merge-artifacts.gradle" dependencies { compile project(":spring-context") compile project(":spring-webmvc") diff --git a/merge-dist.gradle b/gradle/merge-artifacts.gradle similarity index 77% rename from merge-dist.gradle rename to gradle/merge-artifacts.gradle index 8bce5a27e8..911b0af9c6 100644 --- a/merge-dist.gradle +++ b/gradle/merge-artifacts.gradle @@ -1,22 +1,22 @@ import org.gradle.plugins.ide.eclipse.model.ProjectDependency /** - * Will merge the distributions of the current project into mergeIntoProject. For - * example, to bundle spring-test-mvc in spring-test's jars. This script will perform the - * following steps: - *