geode-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mark...@apache.org
Subject [1/2] incubator-geode git commit: [GEODE-5] Add Gradle version check and fail if not using minimum Gradle version.
Date Thu, 04 Jun 2015 18:35:19 GMT
Repository: incubator-geode
Updated Branches:
  refs/heads/develop 75fe2f52c -> 795790e47 (forced update)


[GEODE-5] Add Gradle version check and fail if not using minimum Gradle version.

Tested by running build with Gradle 2.2.1, which fails, and with Gradle wrapper, which runs
successfully.
Reviewed by: AMB


Project: http://git-wip-us.apache.org/repos/asf/incubator-geode/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-geode/commit/b5e02b6f
Tree: http://git-wip-us.apache.org/repos/asf/incubator-geode/tree/b5e02b6f
Diff: http://git-wip-us.apache.org/repos/asf/incubator-geode/diff/b5e02b6f

Branch: refs/heads/develop
Commit: b5e02b6fa9bdca2df75fb7355b8c6a0c4bf64c92
Parents: 76d4386
Author: mbretl <mbretl@apache.org>
Authored: Wed Jun 3 11:17:50 2015 -0700
Committer: William Markito <wmarkito@pivotal.io>
Committed: Thu Jun 4 11:33:38 2015 -0700

----------------------------------------------------------------------
 settings.gradle | 5 +++++
 1 file changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/b5e02b6f/settings.gradle
----------------------------------------------------------------------
diff --git a/settings.gradle b/settings.gradle
index d468a79..7f6ed61 100644
--- a/settings.gradle
+++ b/settings.gradle
@@ -8,3 +8,8 @@ include 'gemfire-core'
 include 'gemfire-web'
 include 'gemfire-web-api'
 include 'gemfire-assembly'
+
+def minimumGradleVersion = '2.3'
+if (GradleVersion.current() < GradleVersion.version(minimumGradleVersion)) {
+  throw new GradleException('Running with unsupported Gradle Version. Use Gradle Wrapper
or with Gradle version >= ' + minimumGradleVersion)
+}


Mime
View raw message