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
|
@ -19,7 +19,7 @@ buildscript {
|
|||
|
||||
plugins {
|
||||
id 'ru.vyarus.animalsniffer' version '1.5.3'
|
||||
id 'org.jetbrains.kotlin.jvm' version "1.8.10"
|
||||
id 'org.jetbrains.kotlin.jvm' version "1.9.21"
|
||||
id 'com.diffplug.spotless' version '6.22.0' apply false
|
||||
}
|
||||
|
||||
|
@ -32,6 +32,7 @@ allprojects {
|
|||
apply plugin: 'jacoco'
|
||||
apply plugin: 'checkstyle'
|
||||
apply plugin: 'kotlin'
|
||||
apply plugin: 'kotlin-kapt'
|
||||
apply plugin: 'com.diffplug.spotless'
|
||||
|
||||
// For non-cli modules enable android api compatibility check
|
||||
|
|
|
@ -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