Skip to content

Commit b910ff3

Browse files
committed
Exclude infra modules from public distributions
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 project so that those unnecessary artifacts are no longer shipped. Issue: SPR-12087
1 parent dd66ca0 commit b910ff3

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

build.gradle

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ ext {
1717
linkScmUrl = 'https://github.com/spring-projects/spring-framework'
1818
linkScmConnection = 'scm:git:git://github.com/spring-projects/spring-framework.git'
1919
linkScmDevConnection = 'scm:git:ssh://[email protected]:spring-projects/spring-framework.git'
20+
21+
moduleProjects = subprojects.findAll {
22+
!it.name.equals('spring-build-src') && !it.name.equals('spring-framework-bom')
23+
}
2024
}
2125

2226
configure(allprojects) { project ->
@@ -1217,7 +1221,7 @@ configure(rootProject) {
12171221
description = "Builds -${classifier} archive containing all " +
12181222
"XSDs for deployment at http://springframework.org/schema."
12191223
duplicatesStrategy 'exclude'
1220-
subprojects.each { subproject ->
1224+
moduleProjects.each { subproject ->
12211225
def Properties schemas = new Properties();
12221226

12231227
subproject.sourceSets.main.resources.find {
@@ -1263,7 +1267,7 @@ configure(rootProject) {
12631267
into "${baseDir}/schema"
12641268
}
12651269

1266-
subprojects.each { subproject ->
1270+
moduleProjects.each { subproject ->
12671271
into ("${baseDir}/libs") {
12681272
from subproject.jar
12691273
if (subproject.tasks.findByPath("sourcesJar")) {

0 commit comments

Comments
 (0)