Skip to content

Commit

Permalink
Generate bom using java-platform plugin (#1796)
Browse files Browse the repository at this point in the history
  • Loading branch information
sghill authored Jun 29, 2023
1 parent 57cb086 commit 9a45715
Show file tree
Hide file tree
Showing 8 changed files with 40 additions and 1 deletion.
3 changes: 3 additions & 0 deletions gradle/dependencyManagement.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
subprojects {
if (name == 'temporal-bom') {
return
}
configurations.implementation {
// add global exclusions here if needed
}
Expand Down
3 changes: 3 additions & 0 deletions gradle/gatherDependencies.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
subprojects {
if (name == 'temporal-bom') {
return
}
// Creates build/runtimeDeps folder in each module that contains all the dependencies
// that need to be in the runtime classpath of the module
task gatherRuntimeDeps(type: Copy) {
Expand Down
3 changes: 3 additions & 0 deletions gradle/java.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
subprojects {
if (name == 'temporal-bom') {
return
}
apply plugin: 'java-library'

java {
Expand Down
3 changes: 3 additions & 0 deletions gradle/licensing.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
subprojects {
if (name == 'temporal-bom') {
return
}
apply plugin: 'org.cadixdev.licenser'
license {
header rootProject.file('LICENSE.header')
Expand Down
3 changes: 3 additions & 0 deletions gradle/linting.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
subprojects {
if (name == 'temporal-bom') {
return
}
apply plugin: 'com.diffplug.spotless'

spotless {
Expand Down
7 changes: 6 additions & 1 deletion gradle/publishing.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,12 @@ subprojects {
publications {
mavenJava(MavenPublication) {
afterEvaluate {
from components.java
plugins.withId('java-platform') {
from components.javaPlatform
}
plugins.withId('java') {
from components.java
}
}
}
}
Expand Down
1 change: 1 addition & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
rootProject.name='temporal-java-sdk'
include 'temporal-bom'
include 'temporal-serviceclient'
include 'temporal-sdk'
include 'temporal-testing'
Expand Down
18 changes: 18 additions & 0 deletions temporal-bom/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
plugins {
id 'java-platform'
}

dependencies {
constraints {
api project(':temporal-kotlin')
api project(':temporal-opentracing')
api project(':temporal-remote-data-encoder')
api project(':temporal-sdk')
api project(':temporal-serviceclient')
api project(':temporal-shaded')
api project(':temporal-spring-boot-autoconfigure-alpha')
api project(':temporal-spring-boot-starter-alpha')
api project(':temporal-test-server')
api project(':temporal-testing')
}
}

0 comments on commit 9a45715

Please sign in to comment.