From 31519e3c1f1a65f6e47eebb27f0b97521535a5ea Mon Sep 17 00:00:00 2001 From: Sergei Egorov Date: Fri, 29 Nov 2019 11:59:47 +0100 Subject: [PATCH] Exclude `:docs:` from publication and BOM --- bom/build.gradle | 2 +- build.gradle | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bom/build.gradle b/bom/build.gradle index 32805571109..1a1b3c2d9f5 100644 --- a/bom/build.gradle +++ b/bom/build.gradle @@ -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) diff --git a/build.gradle b/build.gradle index 67b3a3a6635..bac06d64052 100644 --- a/build.gradle +++ b/build.gradle @@ -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"