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
This commit is contained in:
12
build.gradle
12
build.gradle
@@ -8,6 +8,12 @@ buildscript {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ext {
|
||||||
|
moduleProjects = subprojects.findAll {
|
||||||
|
!it.name.equals('spring-build-src') && !it.name.equals('spring-framework-bom')
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
configure(allprojects) { project ->
|
configure(allprojects) { project ->
|
||||||
group = "org.springframework"
|
group = "org.springframework"
|
||||||
version = qualifyVersionIfNecessary(version)
|
version = qualifyVersionIfNecessary(version)
|
||||||
@@ -944,8 +950,8 @@ configure(rootProject) {
|
|||||||
classifier = "schema"
|
classifier = "schema"
|
||||||
description = "Builds -${classifier} archive containing all " +
|
description = "Builds -${classifier} archive containing all " +
|
||||||
"XSDs for deployment at http://springframework.org/schema."
|
"XSDs for deployment at http://springframework.org/schema."
|
||||||
|
duplicatesStrategy 'exclude'
|
||||||
subprojects.each { subproject ->
|
moduleProjects.each { subproject ->
|
||||||
def Properties schemas = new Properties();
|
def Properties schemas = new Properties();
|
||||||
|
|
||||||
subproject.sourceSets.main.resources.find {
|
subproject.sourceSets.main.resources.find {
|
||||||
@@ -991,7 +997,7 @@ configure(rootProject) {
|
|||||||
into "${baseDir}/schema"
|
into "${baseDir}/schema"
|
||||||
}
|
}
|
||||||
|
|
||||||
subprojects.each { subproject ->
|
moduleProjects.each { subproject ->
|
||||||
into ("${baseDir}/libs") {
|
into ("${baseDir}/libs") {
|
||||||
from subproject.jar
|
from subproject.jar
|
||||||
if (subproject.tasks.findByPath("sourcesJar")) {
|
if (subproject.tasks.findByPath("sourcesJar")) {
|
||||||
|
|||||||
Reference in New Issue
Block a user