Hello! I want to publish some library to maven rep...
# getting-started
d
Hello! I want to publish some library to maven repo, but I’m new to gradle DSL. Could somebody help me to understand this lines from the tutorial: val javadocJar by tasks.registering(Jar::class) { archiveClassifier.set(“javadoc”) } publications.withType<MavenPublication> { // Stub javadoc.jar artifact artifact(javadocJar.get()) } is javadocJar a new task or already defined task? How javadoc is triggered? Thank you!
r
registering
creates a new task. See: https://docs.gradle.org/current/userguide/kotlin_dsl.html#using_the_container_api You'll have to call the task yourself of attach it to some other task by using e.g.
dependsOn
d
Thank you for the explanation!