Skip to content

Commit a95a3ae

Browse files
committed
Exclude infra modules from public distribution
Prior to this commit, spring-build-src and spring-framework-bom internal artifacts were published as part of the distribution bundle. This commit excludes those projects so that those unnecessary artifacts are no longer shipped. Issue: SPR-12087
1 parent 0c0d23d commit a95a3ae

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

build.gradle

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ buildscript {
99
}
1010
}
1111

12+
ext {
13+
moduleProjects = subprojects.findAll {
14+
!it.name.equals('spring-build-src') && !it.name.equals('spring-framework-bom')
15+
}
16+
}
17+
1218
configure(allprojects) { project ->
1319
group = "org.springframework"
1420
version = qualifyVersionIfNecessary(version)
@@ -1088,8 +1094,8 @@ configure(rootProject) {
10881094
classifier = "schema"
10891095
description = "Builds -${classifier} archive containing all " +
10901096
"XSDs for deployment at http://springframework.org/schema."
1091-
1092-
subprojects.each { subproject ->
1097+
duplicatesStrategy 'exclude'
1098+
moduleProjects.each { subproject ->
10931099
def Properties schemas = new Properties();
10941100

10951101
subproject.sourceSets.main.resources.find {
@@ -1135,7 +1141,7 @@ configure(rootProject) {
11351141
into "${baseDir}/schema"
11361142
}
11371143

1138-
subprojects.each { subproject ->
1144+
moduleProjects.each { subproject ->
11391145
into ("${baseDir}/libs") {
11401146
from subproject.jar
11411147
if (subproject.tasks.findByPath("sourcesJar")) {

0 commit comments

Comments
 (0)