Skip to content

Commit

Permalink
Drop duplicate isSnapshot variable in Gradle build script
Browse files Browse the repository at this point in the history
Publishing conventions plugin calculates `isSnapshot`:

    isSnapshot = project.version.toString().contains("SNAPSHOT")

twice:

  1. at the top of build script junitbuild.publishing-conventions.gradle.kts
  2. in configuration of `Sign` tasks.

Drop the second `val isSnapshot` to make `Sign` task configuration
re-use the variable from the top of the script.
  • Loading branch information
rybak committed Aug 6, 2023
1 parent d932b92 commit 1e31b96
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ signing {
}

tasks.withType<Sign>().configureEach {
val isSnapshot = project.version.toString().contains("SNAPSHOT")
onlyIf {
!isSnapshot // Gradle Module Metadata currently does not support signing snapshots
}
Expand Down

0 comments on commit 1e31b96

Please sign in to comment.