Skip to content

Commit 31519e3

Browse files
committed
Exclude :docs: from publication and BOM
1 parent 5c4cced commit 31519e3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

bom/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ publishing {
99
pom.withXml {
1010
def dependencyManagementNode = asNode().appendNode('dependencyManagement').appendNode('dependencies')
1111

12-
rootProject.subprojects.findAll { it != project }.each { subProject ->
12+
rootProject.subprojects.findAll { it != project && !it.path.startsWith(":docs:") && it != project(":docs") }.each { subProject ->
1313
dependencyManagementNode.appendNode('dependency').with {
1414
appendNode('groupId', subProject.group)
1515
appendNode('artifactId',subProject.name)

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ subprojects {
4242
}
4343

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

0 commit comments

Comments
 (0)