From 62fa602fea22ed20f42b86255ef68e5ca6fdc0b6 Mon Sep 17 00:00:00 2001 From: Stephane Nicoll Date: Fri, 27 May 2016 12:23:00 +0200 Subject: [PATCH] Polish maven repositories definition Previously, Maven repositories definition was specified in a profile that is active by default. It means that as soon as any profile is enabled by the user, said profile is no longer enabled. This has the nasty consequences of having copy/paste in several places to make sure our own profiles still have the proper repositories definition. This commit creates a single "repositories" profile that is always active unless a given property is explicitely specified. This allows to remove the duplication and make things more consistent. Some Gradle-specific repositories were also hard-coded in two modules without any profile at all, meaning they were polluting the build of anybody using it. While the impacted modules are gradle specific, that repository has been shared in the new "repositories" profile as well. Closes gh-6031 --- pom.xml | 13 -- spring-boot-dependencies/pom.xml | 49 ++++- .../spring-boot-gradle-tests/pom.xml | 12 -- spring-boot-parent/pom.xml | 172 ------------------ .../spring-boot-gradle-plugin/pom.xml | 12 -- 5 files changed, 43 insertions(+), 215 deletions(-) diff --git a/pom.xml b/pom.xml index b5e0d5d8e40..216a5c5d257 100644 --- a/pom.xml +++ b/pom.xml @@ -102,14 +102,8 @@ spring-boot-integration-tests - - full - prepare - - true - spring-boot-dependencies spring-boot-parent @@ -212,13 +206,6 @@ - - org.apache.maven.plugins - maven-surefire-plugin - - true - - com.google.code.maven-replacer-plugin replacer diff --git a/spring-boot-dependencies/pom.xml b/spring-boot-dependencies/pom.xml index c2d9fd9acf9..6c9a92df2a1 100644 --- a/spring-boot-dependencies/pom.xml +++ b/spring-boot-dependencies/pom.xml @@ -2548,13 +2548,22 @@ - default + repositories - true + + !skip-repositories + + + spring-ext + http://repo.spring.io/ext-release-local/ + + false + + spring-milestones Spring Milestones @@ -2567,14 +2576,42 @@ spring-snapshots Spring Snapshots http://repo.spring.io/snapshot + + false + true + + gradle + http://repo.gradle.org/gradle/libs-releases-local + + false + + - - - integration-test + + + spring-milestones + Spring Milestones + http://repo.spring.io/milestone + + false + + + + spring-snapshots + Spring Snapshots + http://repo.spring.io/snapshot + + false + + + true + + + - + \ No newline at end of file diff --git a/spring-boot-integration-tests/spring-boot-gradle-tests/pom.xml b/spring-boot-integration-tests/spring-boot-gradle-tests/pom.xml index 50371e25cdc..61f1c8865f6 100644 --- a/spring-boot-integration-tests/spring-boot-gradle-tests/pom.xml +++ b/spring-boot-integration-tests/spring-boot-gradle-tests/pom.xml @@ -72,16 +72,4 @@ - - - gradle - http://repo.gradle.org/gradle/libs-releases-local - - true - - - false - - - diff --git a/spring-boot-parent/pom.xml b/spring-boot-parent/pom.xml index c890ee8b2c0..cfed3d226cc 100644 --- a/spring-boot-parent/pom.xml +++ b/spring-boot-parent/pom.xml @@ -606,58 +606,6 @@ - - default - - true - - - - spring-ext - http://repo.spring.io/ext-release-local/ - - true - - - false - - - - spring-milestones - Spring Milestones - http://repo.spring.io/milestone - - false - - - - spring-snapshots - Spring Snapshots - http://repo.spring.io/snapshot - - true - - - - - - spring-milestones - Spring Milestones - http://repo.spring.io/milestone - - false - - - - spring-snapshots - Spring Snapshots - http://repo.spring.io/snapshot - - true - - - - fast @@ -668,52 +616,6 @@ true - - - spring-ext - http://repo.spring.io/ext-release-local/ - - true - - - false - - - - spring-milestones - Spring Milestones - http://repo.spring.io/milestone - - false - - - - spring-snapshots - Spring Snapshots - http://repo.spring.io/snapshot - - true - - - - - - spring-milestones - Spring Milestones - http://repo.spring.io/milestone - - false - - - - spring-snapshots - Spring Snapshots - http://repo.spring.io/snapshot - - true - - - eclipse.profile @@ -738,67 +640,6 @@ - - - spring-ext - http://repo.spring.io/ext-release-local/ - - true - - - false - - - - spring-milestones - Spring Milestones - http://repo.spring.io/milestone - - false - - - - spring-snapshots - Spring Snapshots - http://repo.spring.io/snapshot - - true - - - - - - spring-milestones - Spring Milestones - http://repo.spring.io/milestone - - false - - - - spring-snapshots - Spring Snapshots - http://repo.spring.io/snapshot - - true - - - - - - prepare - - - spring-ext - http://repo.spring.io/ext-release-local/ - - true - - - false - - - full @@ -820,19 +661,6 @@ - - - objectstyle - ObjectStyle.org Repository - http://objectstyle.org/maven2/ - - false - - - - - - snapshot milestone diff --git a/spring-boot-tools/spring-boot-gradle-plugin/pom.xml b/spring-boot-tools/spring-boot-gradle-plugin/pom.xml index dcb3a5f8279..084aaca7af0 100644 --- a/spring-boot-tools/spring-boot-gradle-plugin/pom.xml +++ b/spring-boot-tools/spring-boot-gradle-plugin/pom.xml @@ -49,16 +49,4 @@ provided - - - gradle - http://repo.gradle.org/gradle/libs-releases-local - - true - - - false - - -