Skip to content

Commit

Permalink
Setup gradle plugin for correct snapshot publication
Browse files Browse the repository at this point in the history
  • Loading branch information
philipp94831 committed Feb 28, 2024
1 parent 36c16fe commit e524c9c
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -224,8 +224,7 @@ class SonatypePlugin : Plugin<Project> {
project.plugins.matching { it is JavaPlugin }.all {
project.tasks.matching { it.name == "dokkaJavadoc" }.all {
val javadocTask: Task = this
val main: SourceSet = the<JavaPluginExtension>().sourceSets.getByName(SourceSet.MAIN_SOURCE_SET_NAME)
tasks.create<Jar>(main.javadocJarTaskName) {
tasks.create<Jar>("javadocJar") {
archiveClassifier.set(JAVADOC)
from(javadocTask)
}
Expand Down

0 comments on commit e524c9c

Please sign in to comment.