Skip to content

Commit

Permalink
fix: resolve issue with attempting to register a task by the same nam…
Browse files Browse the repository at this point in the history
…e more than once. (#677)

* fix: resolve issue with attempting to register a task by the same name more than once.

* Revert "fix: resolve issue with attempting to register a task by the same name more than once."

This reverts commit ed8e1cc.

* fix: resolve issue with attempting to register the javadoc task more than once.
  • Loading branch information
autonomousapps committed Dec 9, 2023
1 parent 116f680 commit 32e971a
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,11 @@ data class GradlePlugin @JvmOverloads constructor(
"Calling configure(GradlePlugin(...)) requires the java-gradle-plugin to be applied"
}

val javadocJarTask = project.javadocJarTask(javadocJar)

project.mavenPublicationsWithoutPluginMarker {
it.withJavaSourcesJar(sourcesJar, project)
it.withJavadocJar { project.javadocJarTask(javadocJar) }
it.withJavadocJar { javadocJarTask }
}
}
}
Expand Down

0 comments on commit 32e971a

Please sign in to comment.