Skip to content

Commit

Permalink
Remove 'version' Gradle variable check (#32)
Browse files Browse the repository at this point in the history
Since transition to Sonatype / Maven publication in #29, #30 and #31,
confirming 'version' is no longer necessary. As publication requires
signing and process is all performed on CI.
  • Loading branch information
twyatt authored Dec 21, 2020
1 parent bb30ee0 commit 2a13bee
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,3 @@ subprojects {
}
}
}

// Prevent publishing if `version` property is not set (e.g. via `-Pversion` command line argument).
gradle.taskGraph.whenReady {
allTasks
.filter { task -> task.name.startsWith("publish") }
.forEach { task ->
task.doFirst {
if (!project.hasProperty("version") || project.findProperty("version") == "unspecified") {
throw GradleException("Unable to publish without version property")
}
}
}
}

0 comments on commit 2a13bee

Please sign in to comment.