Skip to content

Commit

Permalink
disabled javadoc for gradle plugin (we use dokka)
Browse files Browse the repository at this point in the history
  • Loading branch information
nulls committed Sep 26, 2023
1 parent adadb5e commit 42a6c43
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ fun Project.pomFileName(): String = "$name-$version.pom"
*/
fun Project.artifactFile(): File = layout.buildDirectory
.dir("libs")
.map { it.file("artifactFileName()").asFile }
.map { it.file(artifactFileName()).asFile }
.get()

/**
Expand Down
9 changes: 9 additions & 0 deletions diktat-gradle-plugin/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -103,3 +103,12 @@ tasks.jacocoTestReport {
xml.required.set(true)
}
}

afterEvaluate {
tasks.named("javadocJar") {
enabled = false
}
tasks.named("generateMetadataFileForPluginMavenPublication") {
dependsOn(tasks.named("dokkaJar"))
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ fun Project.configurePublishing() {
configureGitHubPublishing()
configurePublications()

apply<SigningPlugin>()
configureSigning()
}

Expand Down Expand Up @@ -233,6 +232,7 @@ private fun Project.configureSigning() {
* @see SigningExtension.useGpgCmd
*/
private fun Project.configureSigningCommon(useKeys: SigningExtension.() -> Unit = {}) {
apply<SigningPlugin>()
configure<SigningExtension> {
useKeys()
val publications = extensions.getByType<PublishingExtension>().publications
Expand Down

0 comments on commit 42a6c43

Please sign in to comment.