Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate bom using java-platform plugin #1796

Merged
merged 1 commit into from
Jun 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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')
}
}