Skip to content

Commit 76a3e6e

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 0492c99 commit 76a3e6e

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
@@ -8,6 +8,12 @@ buildscript {
88
}
99
}
1010

11+
ext {
12+
moduleProjects = subprojects.findAll {
13+
!it.name.equals('spring-build-src') && !it.name.equals('spring-framework-bom')
14+
}
15+
}
16+
1117
configure(allprojects) { project ->
1218
group = "org.springframework"
1319
version = qualifyVersionIfNecessary(version)
@@ -944,8 +950,8 @@ configure(rootProject) {
944950
classifier = "schema"
945951
description = "Builds -${classifier} archive containing all " +
946952
"XSDs for deployment at http://springframework.org/schema."
947-
948-
subprojects.each { subproject ->
953+
duplicatesStrategy 'exclude'
954+
moduleProjects.each { subproject ->
949955
def Properties schemas = new Properties();
950956

951957
subproject.sourceSets.main.resources.find {
@@ -991,7 +997,7 @@ configure(rootProject) {
991997
into "${baseDir}/schema"
992998
}
993999

994-
subprojects.each { subproject ->
1000+
moduleProjects.each { subproject ->
9951001
into ("${baseDir}/libs") {
9961002
from subproject.jar
9971003
if (subproject.tasks.findByPath("sourcesJar")) {

0 commit comments

Comments
 (0)