Skip to content

Commit 2889bda

Browse files
committed
Remove picocli codegen
1 parent 1bcf0ee commit 2889bda

File tree

1 file changed

+1
-31
lines changed

1 file changed

+1
-31
lines changed

cli-bot/build.gradle.kts

Lines changed: 1 addition & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,10 @@ plugins {
99

1010
val mainFunction = "io.github.serpro69.kfaker.app.KFakerKt"
1111
val mainAppClass = "io.github.serpro69.kfaker.app.KFaker"
12-
val codegen by configurations.creating
1312

1413
dependencies {
1514
implementation(project(":core"))
1615
implementation("info.picocli:picocli:4.3.2")
17-
compileOnly("com.oracle.substratevm:svm:19.2.1")
18-
codegen("info.picocli:picocli-codegen:4.3.2")
1916
}
2017

2118
application {
@@ -32,33 +29,6 @@ testlogger {
3229
theme = com.adarshr.gradle.testlogger.theme.ThemeType.MOCHA
3330
}
3431

35-
val generateGraalReflectionConfig by tasks.creating(JavaExec::class) {
36-
dependsOn("classes")
37-
main = "picocli.codegen.aot.graalvm.ReflectionConfigGenerator"
38-
classpath = codegen + sourceSets.main.get().runtimeClasspath
39-
val outFile = "${project.buildDir}/resources/main/META-INF/native-image/${project.group}/${project.name}/reflect-config.json"
40-
args = listOf("--output=${outFile}", mainAppClass)
41-
}
42-
43-
val generateGraalDynamicProxyConfig by tasks.creating(JavaExec::class) {
44-
dependsOn("classes")
45-
main = "picocli.codegen.aot.graalvm.DynamicProxyConfigGenerator"
46-
classpath = codegen + sourceSets.main.get().runtimeClasspath
47-
val outFile = "${project.buildDir}/resources/main/META-INF/native-image/${project.group}/${project.name}/proxy-config.json"
48-
args = listOf("--output=${outFile}", mainAppClass)
49-
}
50-
51-
val generateGraalResourceConfig by tasks.creating(JavaExec::class) {
52-
dependsOn("classes")
53-
main = "picocli.codegen.aot.graalvm.ResourceConfigGenerator"
54-
classpath = codegen + sourceSets.main.get().runtimeClasspath
55-
val outFile = "${project.buildDir}/resources/main/META-INF/native-image/${project.group}/${project.name}/resource-config.json"
56-
args = listOf(
57-
"--output=${outFile}", mainAppClass,
58-
"--pattern", ".*/*.yml$"
59-
)
60-
}
61-
6232
val shadowJar by tasks.getting(ShadowJar::class) {
6333
manifest {
6434
attributes(
@@ -85,7 +55,7 @@ val shadowJar by tasks.getting(ShadowJar::class) {
8555
}
8656

8757
graal {
88-
graalVersion("19.3.1")
58+
graalVersion("20.1.0")
8959
javaVersion("8")
9060
mainClass(mainFunction)
9161
outputName("kFaker")

0 commit comments

Comments
 (0)