You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by su...@apache.org on 2017/04/07 13:31:08 UTC
[25/50] [abbrv] groovy git commit: tweak build to report snapshot
dependencies found during non-snapshot release
tweak build to report snapshot dependencies found during non-snapshot release
Project: http://git-wip-us.apache.org/repos/asf/groovy/repo
Commit: http://git-wip-us.apache.org/repos/asf/groovy/commit/a4ba2032
Tree: http://git-wip-us.apache.org/repos/asf/groovy/tree/a4ba2032
Diff: http://git-wip-us.apache.org/repos/asf/groovy/diff/a4ba2032
Branch: refs/heads/parrot
Commit: a4ba2032601884c2dd0ad0af84da16ac17b752ad
Parents: 2211af5
Author: paulk <pa...@asert.com.au>
Authored: Tue Mar 21 21:06:51 2017 +1000
Committer: paulk <pa...@asert.com.au>
Committed: Tue Mar 21 21:06:51 2017 +1000
----------------------------------------------------------------------
gradle/assemble.gradle | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/groovy/blob/a4ba2032/gradle/assemble.gradle
----------------------------------------------------------------------
diff --git a/gradle/assemble.gradle b/gradle/assemble.gradle
index f83e2e6..57a0bbb 100644
--- a/gradle/assemble.gradle
+++ b/gradle/assemble.gradle
@@ -586,6 +586,22 @@ task installGroovy(type: Sync, dependsOn: [checkCompatibility, distBin]) {
into installDir
}
+task checkNoSnapshotVersions {
+ doLast {
+ if (project.isReleaseVersion) {
+ // TODO use modules() and exclusions as per distSpec
+ allprojects {
+ project.configurations.runtime.resolvedConfiguration.resolvedArtifacts.each {
+ if (it.moduleVersion.id.version.endsWith("-SNAPSHOT")) {
+ throw new GradleException("Found snapshot dependency for non-snapshot Groovy: " + it.moduleVersion)
+ }
+ }
+ }
+ }
+ }
+}
+distBin.dependsOn checkNoSnapshotVersions
+
import org.gradle.api.file.DuplicatesStrategy
task dist(type: Zip, dependsOn: [checkCompatibility, distBin, distSrc, distDoc, syncDoc]) {