Skip to content

Commit

Permalink
Exclude :docs: from publication and BOM
Browse files Browse the repository at this point in the history
  • Loading branch information
bsideup committed Nov 29, 2019
1 parent 5c4cced commit 31519e3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bom/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ publishing {
pom.withXml {
def dependencyManagementNode = asNode().appendNode('dependencyManagement').appendNode('dependencies')

rootProject.subprojects.findAll { it != project }.each { subProject ->
rootProject.subprojects.findAll { it != project && !it.path.startsWith(":docs:") && it != project(":docs") }.each { subProject ->
dependencyManagementNode.appendNode('dependency').with {
appendNode('groupId', subProject.group)
appendNode('artifactId',subProject.name)
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ subprojects {
}

// specific modules should be excluded from publication
if ( ! ["test-support", "jdbc-test", "docs-examples"].contains(it.name) ) {
if ( ! ["test-support", "jdbc-test"].contains(it.name) && !it.path.startsWith(":docs:") && it != project(":docs") ) {
apply from: "$rootDir/gradle/publishing.gradle"
apply from: "$rootDir/gradle/bintray.gradle"

Expand Down

0 comments on commit 31519e3

Please sign in to comment.