Skip to content

Commit a5ef552

Browse files
committed
Fix NoClassDefError
1 parent b6931c5 commit a5ef552

File tree

1 file changed

+21
-5
lines changed

1 file changed

+21
-5
lines changed
Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
plugins {
22
org.jetbrains.kotlin.jvm
3+
// If you see Schlaubi using Shadow, you know he's desperate
4+
id("com.gradleup.shadow") version "9.0.0-rc3"
35
}
46

57
kotlin {
@@ -8,11 +10,25 @@ kotlin {
810
}
911
}
1012

13+
val shadow by configurations.getting
14+
1115
dependencies {
12-
implementation(libs.codegen.kotlinpoet)
13-
implementation(libs.kotlinpoet.ksp)
16+
shadow(libs.codegen.kotlinpoet)
17+
shadow(libs.kotlinpoet.ksp)
1418
implementation(libs.ksp.api)
15-
implementation(projects.kotlinpoet.internalAnnotations)
16-
implementation(projects.ksp.annotations)
17-
implementation(projects.ksp)
19+
shadow(projects.kotlinpoet.internalAnnotations)
20+
shadow(projects.ksp.annotations)
21+
shadow(projects.ksp)
22+
}
23+
24+
tasks {
25+
jar {
26+
dependsOn(shadowJar)
27+
enabled = false
28+
}
29+
30+
shadowJar {
31+
archiveClassifier = ""
32+
configurations = listOf(shadow)
33+
}
1834
}

0 commit comments

Comments
 (0)