You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@aurora.apache.org by wf...@apache.org on 2014/11/21 21:57:36 UTC

incubator-aurora git commit: Fail builds if not compiled with Gradle 2.2

Repository: incubator-aurora
Updated Branches:
  refs/heads/master b6217df13 -> f43700c0d


Fail builds if not compiled with Gradle 2.2

Bugs closed: AURORA-941

Reviewed at https://reviews.apache.org/r/28302/


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

Branch: refs/heads/master
Commit: f43700c0d3d2b0b56ed431d1d8e5f79c4575faa8
Parents: b6217df
Author: Zameer Manji <zm...@twopensource.com>
Authored: Fri Nov 21 12:55:24 2014 -0800
Committer: Bill Farner <wf...@apache.org>
Committed: Fri Nov 21 12:55:24 2014 -0800

----------------------------------------------------------------------
 build.gradle               | 2 +-
 buildSrc/build.gradle      | 3 +++
 buildSrc/gradle.properties | 1 +
 settings.gradle            | 1 +
 4 files changed, 6 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-aurora/blob/f43700c0/build.gradle
----------------------------------------------------------------------
diff --git a/build.gradle b/build.gradle
index 6894ceb..7b35ded 100644
--- a/build.gradle
+++ b/build.gradle
@@ -52,7 +52,7 @@ tasks.withType(JavaCompile).matching { it.name != 'compileGeneratedJava' }.all {
 }
 
 task wrapper(type: Wrapper) {
-  gradleVersion = '2.2'
+  gradleVersion = project(':buildSrc').GRADLE_VERSION
 }
 
 task sourceJar(type: Jar) {

http://git-wip-us.apache.org/repos/asf/incubator-aurora/blob/f43700c0/buildSrc/build.gradle
----------------------------------------------------------------------
diff --git a/buildSrc/build.gradle b/buildSrc/build.gradle
new file mode 100644
index 0000000..360eb6d
--- /dev/null
+++ b/buildSrc/build.gradle
@@ -0,0 +1,3 @@
+if (gradle.gradleVersion != GRADLE_VERSION) {
+  throw new GradleException("Building is only supported with gradle version: $GRADLE_VERSION .")
+}

http://git-wip-us.apache.org/repos/asf/incubator-aurora/blob/f43700c0/buildSrc/gradle.properties
----------------------------------------------------------------------
diff --git a/buildSrc/gradle.properties b/buildSrc/gradle.properties
new file mode 100644
index 0000000..d2357ee
--- /dev/null
+++ b/buildSrc/gradle.properties
@@ -0,0 +1 @@
+GRADLE_VERSION = 2.2

http://git-wip-us.apache.org/repos/asf/incubator-aurora/blob/f43700c0/settings.gradle
----------------------------------------------------------------------
diff --git a/settings.gradle b/settings.gradle
new file mode 100644
index 0000000..3e9cbfe
--- /dev/null
+++ b/settings.gradle
@@ -0,0 +1 @@
+include 'buildSrc'