Skip to content

Commit 9a45715

Browse files
authored
Generate bom using java-platform plugin (#1796)
1 parent 57cb086 commit 9a45715

File tree

8 files changed

+40
-1
lines changed

8 files changed

+40
-1
lines changed

gradle/dependencyManagement.gradle

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
subprojects {
2+
if (name == 'temporal-bom') {
3+
return
4+
}
25
configurations.implementation {
36
// add global exclusions here if needed
47
}

gradle/gatherDependencies.gradle

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
subprojects {
2+
if (name == 'temporal-bom') {
3+
return
4+
}
25
// Creates build/runtimeDeps folder in each module that contains all the dependencies
36
// that need to be in the runtime classpath of the module
47
task gatherRuntimeDeps(type: Copy) {

gradle/java.gradle

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
subprojects {
2+
if (name == 'temporal-bom') {
3+
return
4+
}
25
apply plugin: 'java-library'
36

47
java {

gradle/licensing.gradle

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
subprojects {
2+
if (name == 'temporal-bom') {
3+
return
4+
}
25
apply plugin: 'org.cadixdev.licenser'
36
license {
47
header rootProject.file('LICENSE.header')

gradle/linting.gradle

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
subprojects {
2+
if (name == 'temporal-bom') {
3+
return
4+
}
25
apply plugin: 'com.diffplug.spotless'
36

47
spotless {

gradle/publishing.gradle

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,12 @@ subprojects {
1616
publications {
1717
mavenJava(MavenPublication) {
1818
afterEvaluate {
19-
from components.java
19+
plugins.withId('java-platform') {
20+
from components.javaPlatform
21+
}
22+
plugins.withId('java') {
23+
from components.java
24+
}
2025
}
2126
}
2227
}

settings.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
rootProject.name='temporal-java-sdk'
2+
include 'temporal-bom'
23
include 'temporal-serviceclient'
34
include 'temporal-sdk'
45
include 'temporal-testing'

temporal-bom/build.gradle

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
plugins {
2+
id 'java-platform'
3+
}
4+
5+
dependencies {
6+
constraints {
7+
api project(':temporal-kotlin')
8+
api project(':temporal-opentracing')
9+
api project(':temporal-remote-data-encoder')
10+
api project(':temporal-sdk')
11+
api project(':temporal-serviceclient')
12+
api project(':temporal-shaded')
13+
api project(':temporal-spring-boot-autoconfigure-alpha')
14+
api project(':temporal-spring-boot-starter-alpha')
15+
api project(':temporal-test-server')
16+
api project(':temporal-testing')
17+
}
18+
}

0 commit comments

Comments
 (0)