Skip to content

Commit

Permalink
Add BOM artifact
Browse files Browse the repository at this point in the history
Fixes bcgit#899
  • Loading branch information
runeflobakk committed Nov 17, 2024
1 parent db6161f commit 0d587a5
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 3 deletions.
31 changes: 31 additions & 0 deletions bom/build.gradle
Original file line number Diff line number Diff line change
@@ -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
}
}
}
5 changes: 2 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -183,8 +183,7 @@ ext {

}


subprojects {
configure(subprojects.findAll {it.name != 'bom'}) {
apply plugin: 'eclipse'
apply plugin: 'maven-publish'

Expand Down
1 change: 1 addition & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
include "bom"
include "core"
include "util"
include "pg"
Expand Down

0 comments on commit 0d587a5

Please sign in to comment.