diff --git a/bom/build.gradle b/bom/build.gradle new file mode 100644 index 0000000000..8fa2226cd0 --- /dev/null +++ b/bom/build.gradle @@ -0,0 +1,31 @@ +plugins { + id("java-platform") + id("maven-publish") +} + +description = "BouncyCastle Bill of Materials (BOM)" + +dependencies { + constraints { + api(project(":core")) + api(project(":util")) + api(project(":pg")) + api(project(":pkix")) + api(project(":prov")) + api(project(":tls")) + api(project(":test")) + api(project(":mls")) + api(project(":mail")) + api(project(":jmail")) + } +} + +publishing { + publications { + mavenJava(MavenPublication) { + groupId = 'org.bouncycastle' + artifactId = "bc-bom-$vmrange" + from components.javaPlatform + } + } +} diff --git a/build.gradle b/build.gradle index d648c8bedf..14d6738c3e 100644 --- a/build.gradle +++ b/build.gradle @@ -53,7 +53,7 @@ ext { // this needs to go here, otherwise it can't find config apply plugin: 'io.spring.nohttp' -allprojects { +configure(allprojects.findAll {it.name != 'bom'}) { apply plugin: 'java' apply plugin: 'idea' apply plugin: 'checkstyle' @@ -183,8 +183,7 @@ ext { } - -subprojects { +configure(subprojects.findAll {it.name != 'bom'}) { apply plugin: 'eclipse' apply plugin: 'maven-publish' diff --git a/settings.gradle b/settings.gradle index c54949b153..cf2608deed 100644 --- a/settings.gradle +++ b/settings.gradle @@ -1,3 +1,4 @@ +include "bom" include "core" include "util" include "pg"