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
This commit is contained in:
parent
dd66ca0c93
commit
b910ff34e6
|
@ -17,6 +17,10 @@ ext {
|
|||
linkScmUrl = 'https://github.com/spring-projects/spring-framework'
|
||||
linkScmConnection = 'scm:git:git://github.com/spring-projects/spring-framework.git'
|
||||
linkScmDevConnection = 'scm:git:ssh://git@github.com:spring-projects/spring-framework.git'
|
||||
|
||||
moduleProjects = subprojects.findAll {
|
||||
!it.name.equals('spring-build-src') && !it.name.equals('spring-framework-bom')
|
||||
}
|
||||
}
|
||||
|
||||
configure(allprojects) { project ->
|
||||
|
@ -1217,7 +1221,7 @@ configure(rootProject) {
|
|||
description = "Builds -${classifier} archive containing all " +
|
||||
"XSDs for deployment at http://springframework.org/schema."
|
||||
duplicatesStrategy 'exclude'
|
||||
subprojects.each { subproject ->
|
||||
moduleProjects.each { subproject ->
|
||||
def Properties schemas = new Properties();
|
||||
|
||||
subproject.sourceSets.main.resources.find {
|
||||
|
@ -1263,7 +1267,7 @@ configure(rootProject) {
|
|||
into "${baseDir}/schema"
|
||||
}
|
||||
|
||||
subprojects.each { subproject ->
|
||||
moduleProjects.each { subproject ->
|
||||
into ("${baseDir}/libs") {
|
||||
from subproject.jar
|
||||
if (subproject.tasks.findByPath("sourcesJar")) {
|
||||
|
|
Loading…
Reference in New Issue