Skip to content

Commit

Permalink
[GEODE-5] Add Gradle version check and fail if not using minimum Grad…
Browse files Browse the repository at this point in the history
…le version.

Tested by running build with Gradle 2.2.1, which fails, and with Gradle wrapper, which runs successfully.
Reviewed by: AMB
  • Loading branch information
mbretl authored and William Markito committed Jun 4, 2015
1 parent 76d4386 commit b5e02b6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

0 comments on commit b5e02b6

Please sign in to comment.