Skip to content
Snippets Groups Projects

Add gradle based build and image tasks for ssi-issuance

Merged Neil Crossley requested to merge gradle-build into main
Files
369
plugins {
kotlin("jvm")
kotlin("plugin.allopen")
id("org.kordamp.gradle.jandex")
}
val javaToolchain: String by project
//java.sourceCompatibility = JavaVersion.VERSION_1_8
kotlin {
jvmToolchain {
languageVersion = JavaLanguageVersion.of(javaToolchain)
}
}
java {
withSourcesJar()
withJavadocJar()
}
allOpen {
annotation("jakarta.persistence.Entity")
annotation("jakarta.ws.rs.Path")
annotation("jakarta.enterprise.context.ApplicationScoped")
annotation("io.quarkus.test.junit.QuarkusTest")
annotation("io.quarkus.test.junit.QuarkusIntegrationTest")
}
tasks.withType<JavaCompile> {
options.encoding = "UTF-8"
options.compilerArgs.add("-Xlint:unchecked")
options.compilerArgs.add("-Xlint:deprecation")
}
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
kotlinOptions.javaParameters = true
}
tasks.named("javadoc").configure {
mustRunAfter("jandex")
}
Loading