Skip to content

Commit

Permalink
Upgrades Gradle Plugin Publish plugin (#7005)
Browse files Browse the repository at this point in the history
- Updates the Gradle Plugin Publish plugin (attempted by #6663)
- Fixes #6628 by upgrading, as mentioned in
[gradle/gradle#19331](gradle/gradle#19331)
  • Loading branch information
ryandens authored Oct 28, 2022
1 parent d0e2ec8 commit c170ec5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
17 changes: 8 additions & 9 deletions gradle-plugins/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -137,15 +137,14 @@ afterEvaluate {
}
}
}
}

// Sign only if we have a key to do so
val signingKey: String? = System.getenv("GPG_PRIVATE_KEY")
// Stub out entire signing block off of CI since Gradle provides no way of lazy configuration of
// signing tasks.
if (System.getenv("CI") != null && signingKey != null) {
signing {
useInMemoryPgpKeys(signingKey, System.getenv("GPG_PASSWORD"))
sign(publishing.publications["pluginMaven"])
}
}
val signingKey: String? = System.getenv("GPG_PRIVATE_KEY")
signing {
setRequired({
// only require signing on CI and when a signing key is present
System.getenv("CI") != null && signingKey != null
})
useInMemoryPgpKeys(signingKey, System.getenv("GPG_PASSWORD"))
}
2 changes: 1 addition & 1 deletion gradle-plugins/settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
pluginManagement {
plugins {
id("com.gradle.plugin-publish") version "0.15.0"
id("com.gradle.plugin-publish") version "1.0.0"
id("io.github.gradle-nexus.publish-plugin") version "1.1.0"
}
}

0 comments on commit c170ec5

Please sign in to comment.