Skip to content

Commit

Permalink
Added implicit applying required plugins (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
nulls authored Jul 31, 2023
1 parent d422192 commit 229c311
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ configurePublishing()
fun Project.configurePublishing() {
configureNexusPublishing()
configureGitHubPublishing()

apply<MavenPublishPlugin>()
apply<SigningPlugin>()

configurePublications()
configureSigning()

Expand Down Expand Up @@ -239,6 +243,12 @@ fun Project.configureSigningCommon(useKeys: SigningExtension.() -> Unit = {}) {
styledOut(logCategory = "signing").style(style).println(message)
sign(*publications.toTypedArray())
}
tasks.withType<PublishToMavenRepository>().configureEach {
// Workaround for the problem described at https://github.com/saveourtool/save-cli/pull/501#issuecomment-1439705340.
// We have a single Javadoc artifact shared by all platforms, hence all publications depend on signing of this artifact.
// This causes weird implicit dependencies, like `publishJsPublication...` depends on `signJvmPublication`.
dependsOn(tasks.withType<Sign>())
}
}

/**
Expand Down

0 comments on commit 229c311

Please sign in to comment.