Skip to content

Commit 3f19189

Browse files
authored
Create BOM (#31)
1 parent 5218361 commit 3f19189

File tree

7 files changed

+49
-30
lines changed

7 files changed

+49
-30
lines changed

.github/workflows/build-and-publish.yaml

+3-2
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,14 @@ name: Build and Publish
33
on:
44
push:
55
tags: ["**"]
6-
branches: ["**"]
6+
branches:
7+
- master
78
pull_request:
89

910
jobs:
1011
build-and-publish:
1112
name: Java Gradle
12-
uses: bakdata/ci-templates/.github/workflows/java-gradle-library.yaml@1.62.0
13+
uses: bakdata/ci-templates/.github/workflows/java-gradle-library.yaml@1.64.0
1314
with:
1415
java-version: 17
1516
secrets:

build.gradle.kts

+29-28
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
plugins {
22
id("com.bakdata.release") version "1.7.1"
33
id("com.bakdata.sonar") version "1.7.1"
4-
id("com.bakdata.sonatype") version "1.7.1"
5-
id("io.freefair.lombok") version "8.11"
4+
id("com.bakdata.sonatype") version "1.9.0"
5+
id("io.freefair.lombok") version "8.12.2"
66
}
77

88
allprojects {
@@ -20,35 +20,36 @@ allprojects {
2020
}
2121
}
2222

23-
configure<com.bakdata.gradle.SonatypeSettings> {
24-
developers {
25-
developer {
26-
name.set("Sven Lehmann")
27-
id.set("SvenLehmann")
28-
}
29-
developer {
30-
name.set("Torben Meyer")
31-
id.set("torbsto")
32-
}
33-
developer {
34-
name.set("Philipp Schirmer")
35-
id.set("philipp94831")
36-
}
37-
developer {
38-
name.set("Markus Kobold")
39-
id.set("mkcode92")
23+
subprojects {
24+
plugins.matching { it is JavaPlugin }.all {
25+
apply(plugin = "java-test-fixtures")
26+
apply(plugin = "io.freefair.lombok")
27+
28+
configure<JavaPluginExtension> {
29+
toolchain {
30+
languageVersion = JavaLanguageVersion.of(11)
31+
}
4032
}
4133
}
42-
}
43-
44-
subprojects {
45-
apply(plugin = "java-library")
46-
apply(plugin = "java-test-fixtures")
47-
apply(plugin = "io.freefair.lombok")
4834

49-
configure<JavaPluginExtension> {
50-
toolchain {
51-
languageVersion = JavaLanguageVersion.of(11)
35+
publication {
36+
developers {
37+
developer {
38+
name.set("Sven Lehmann")
39+
id.set("SvenLehmann")
40+
}
41+
developer {
42+
name.set("Torben Meyer")
43+
id.set("torbsto")
44+
}
45+
developer {
46+
name.set("Philipp Schirmer")
47+
id.set("philipp94831")
48+
}
49+
developer {
50+
name.set("Markus Kobold")
51+
id.set("mkcode92")
52+
}
5253
}
5354
}
5455
}

error-handling-avro/build.gradle.kts

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
description = "Transform dead letters in Kafka Streams applications to Avro format."
22

33
plugins {
4+
id("java-library")
45
id("com.github.davidmc24.gradle.plugin.avro") version "1.9.1"
56
}
67

error-handling-bom/build.gradle.kts

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
description = "BOM for error handling in Kafka Streams."
2+
3+
plugins {
4+
id("java-platform")
5+
}
6+
7+
dependencies {
8+
constraints {
9+
api(project(":error-handling-core"))
10+
api(project(":error-handling-avro"))
11+
api(project(":error-handling-proto"))
12+
}
13+
}

error-handling-core/build.gradle.kts

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
description = "A library for error handling in Kafka Streams."
22

33
plugins {
4+
id("java-library")
45
id("com.github.davidmc24.gradle.plugin.avro") version "1.9.1"
56
}
67

error-handling-proto/build.gradle.kts

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
description = "Transform dead letters in Kafka Streams applications to protobuf."
22

33
plugins {
4+
id("java-library")
45
id("com.google.protobuf") version "0.9.4"
56
}
67

settings.gradle.kts

+1
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ rootProject.name = "error-handling"
88
include("error-handling-core")
99
include("error-handling-avro")
1010
include("error-handling-proto")
11+
include("error-handling-bom")

0 commit comments

Comments
 (0)