Hi a small suggestion for the self certificate gra...
# ktor
j
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:
Copy code
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:
Copy code
val jksFile = File("build/certs/temporary.jks").apply {
            parentFile.mkdirs()
        }
a
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.