https://kotlinlang.org logo
Title
j

Jgafner

06/16/2021, 12:51 PM
Hi a small suggestion for the self certificate gradle task I think the
generateJks
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()
        }
a

Aleksei Tirman [JB]

06/17/2021, 11:24 AM
Thank you for the suggestion. I've created an issue for the docs. Please feel free to add any additional information in case I've missed something.