mirror of
https://codeberg.org/PGPainless/sop-java.git
synced 2025-09-08 17:59:43 +02:00
Enable kapt annotation processing to properly embed picocli configuration files for native images into the -cli jar file
For this it is apparently necessary to upgrade kotlin to 1.9.21 See https://stackoverflow.com/a/79030947/11150851
This commit is contained in:
parent
d1893c5ea0
commit
51ba24ddbe
2 changed files with 7 additions and 2 deletions
|
@ -21,7 +21,7 @@ dependencies {
|
|||
|
||||
// CLI
|
||||
implementation "info.picocli:picocli:$picocliVersion"
|
||||
annotationProcessor "info.picocli:picocli-codegen:$picocliVersion"
|
||||
kapt "info.picocli:picocli-codegen:$picocliVersion"
|
||||
|
||||
// @Nonnull, @Nullable...
|
||||
implementation "com.google.code.findbugs:jsr305:$jsrVersion"
|
||||
|
@ -33,6 +33,10 @@ application {
|
|||
mainClass = mainClassName
|
||||
}
|
||||
|
||||
compileJava {
|
||||
options.compilerArgs += ["-Aproject=${project.group}/${project.name}"]
|
||||
}
|
||||
|
||||
jar {
|
||||
dependsOn(":sop-java:jar")
|
||||
duplicatesStrategy(DuplicatesStrategy.EXCLUDE)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue