Jgafner
06/16/2021, 12:51 PMgenerateJks
task in the docs can be improve by setting the output of the task:
I did something like this:
tasks.register("generateJks", JavaExec::class) {
dependsOn("classes")
group = "certificate"
classpath = sourceSets["main"].runtimeClasspath
outputs.dir("${project.buildDir}/certs/")
mainClass.set("com.my.main.Class")
}
and changed the object and the conf file:
val jksFile = File("build/certs/temporary.jks").apply {
parentFile.mkdirs()
}
Aleksei Tirman [JB]
06/17/2021, 11:24 AM