Skip to content

Commit 708fe1c

Browse files
committed
Update deps
1 parent d919134 commit 708fe1c

File tree

1 file changed

+20
-5
lines changed

1 file changed

+20
-5
lines changed

build.gradle.kts

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* User Manual available at https://docs.gradle.org/7.4/userguide/building_java_projects.html
33
*/
44

5-
group = "at.willhaben.kafka.connect.transforms.jslt"
5+
group = "org.phpinnacle.toblerone"
66
version = System.getenv("VERSION") ?: "1.0.0"
77

88
val javaVersion = 11
@@ -15,7 +15,7 @@ val artifactoryPassword =
1515
project.properties.getOrDefault("artifactory_password", System.getenv("ARTIFACTORY_PWD")).toString()
1616

1717
plugins {
18-
kotlin("jvm") version "1.6.21"
18+
kotlin("jvm") version "1.9.22"
1919
idea // Generates files that are used by IntelliJ IDEA, thus making it possible to open the project from IDEA
2020
`java-library` // Apply the java-library plugin for API and implementation separation.
2121
`maven-publish`
@@ -27,11 +27,10 @@ repositories {
2727
}
2828

2929
dependencies {
30-
val kafkaConnectVersion = "3.2.+"
30+
val kafkaConnectVersion = "3.7.+"
3131
val junitVersion = "5.8.2"
3232

33-
compileOnly(platform("org.jetbrains.kotlin:kotlin-bom")) // Align versions of all Kotlin components
34-
compileOnly("org.jetbrains.kotlin:kotlin-stdlib-jdk8") // Use the Kotlin JDK 8 standard library.
33+
compileOnly(platform("org.jetbrains.kotlin:kotlin-bom"))
3534

3635
implementation("org.apache.kafka:connect-api:$kafkaConnectVersion")
3736
implementation("org.apache.kafka:connect-json:$kafkaConnectVersion")
@@ -47,6 +46,22 @@ kotlin {
4746
}
4847
}
4948

49+
tasks {
50+
val fatJar = register<Jar>("fatJar") {
51+
dependsOn.addAll(listOf("compileJava", "compileKotlin", "processResources"))
52+
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
53+
manifest { attributes(mapOf("Main-Class" to "org.phpinnacle.toblerone")) }
54+
val sourcesMain = sourceSets.main.get()
55+
val contents = configurations.runtimeClasspath.get()
56+
.map { if (it.isDirectory) it else zipTree(it) } +
57+
sourcesMain.output
58+
from(contents)
59+
}
60+
build {
61+
dependsOn(fatJar) // Trigger fat jar creation during build
62+
}
63+
}
64+
5065
publishing {
5166
publications {
5267
create<MavenPublication>("maven") {

0 commit comments

Comments
 (0)