Skip to content

Commit 0d587a5

Browse files
committed
Add BOM artifact
Fixes bcgit#899
1 parent db6161f commit 0d587a5

File tree

3 files changed

+34
-3
lines changed

3 files changed

+34
-3
lines changed

bom/build.gradle

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
plugins {
2+
id("java-platform")
3+
id("maven-publish")
4+
}
5+
6+
description = "BouncyCastle Bill of Materials (BOM)"
7+
8+
dependencies {
9+
constraints {
10+
api(project(":core"))
11+
api(project(":util"))
12+
api(project(":pg"))
13+
api(project(":pkix"))
14+
api(project(":prov"))
15+
api(project(":tls"))
16+
api(project(":test"))
17+
api(project(":mls"))
18+
api(project(":mail"))
19+
api(project(":jmail"))
20+
}
21+
}
22+
23+
publishing {
24+
publications {
25+
mavenJava(MavenPublication) {
26+
groupId = 'org.bouncycastle'
27+
artifactId = "bc-bom-$vmrange"
28+
from components.javaPlatform
29+
}
30+
}
31+
}

build.gradle

+2-3
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ ext {
5353
// this needs to go here, otherwise it can't find config
5454
apply plugin: 'io.spring.nohttp'
5555

56-
allprojects {
56+
configure(allprojects.findAll {it.name != 'bom'}) {
5757
apply plugin: 'java'
5858
apply plugin: 'idea'
5959
apply plugin: 'checkstyle'
@@ -183,8 +183,7 @@ ext {
183183

184184
}
185185

186-
187-
subprojects {
186+
configure(subprojects.findAll {it.name != 'bom'}) {
188187
apply plugin: 'eclipse'
189188
apply plugin: 'maven-publish'
190189

settings.gradle

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
include "bom"
12
include "core"
23
include "util"
34
include "pg"

0 commit comments

Comments
 (0)