Skip to content

Commit dbb1d11

Browse files
committed
Merge branch '3.1.x'
2 parents 0ac8a21 + 2c45566 commit dbb1d11

File tree

65 files changed

+747
-322
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+747
-322
lines changed

\

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
Revert "Use Gradle embedded within the "grails" process. Fixes #9640"
2+
3+
This reverts commit 9134bc81f97a8227a5e7b635b8576e36149c6476.
4+
5+
# Please enter the commit message for your changes. Lines starting
6+
# with '#' will be ignored, and an empty message aborts the commit.
7+
# On branch 3.0.x
8+
# Your branch is up-to-date with 'origin/3.0.x'.
9+
#
10+
# You are currently bisecting, started from branch '06c1d57'.
11+
#
12+
# Changes to be committed:
13+
# modified: grails-shell/src/main/groovy/org/grails/cli/gradle/GradleUtil.groovy
14+
#
15+
# Untracked files:
16+
# gradle/test
17+
# grails-bootstrap/GRAILS-8488.patch
18+
# grails-keys.txt.asc
19+
# media/logos/grails-cupsonly-logo-black.svg
20+
# media/logos/grails-cupsonly-logo-white.svg
21+
# media/logos/grails-cupsonly-logo.svg
22+
# pubring.gpg
23+
# run.sh
24+
# secring.gpg
25+
# settings.xml
26+
# test.sh
27+
#

build.gradle

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ buildscript {
1111
classpath "com.github.adrianbk:gradle-travisci-trigger-plugin:1.0.0"
1212
classpath 'com.bmuschko:gradle-nexus-plugin:2.3'
1313
classpath "io.codearte.gradle.nexus:gradle-nexus-staging-plugin:0.5.3"
14-
classpath 'net.gvmtool:gradle-sdkvendor-plugin:0.3.1'
14+
classpath "gradle.plugin.io.sdkman:gradle-sdkvendor-plugin:1.0.0"
1515
}
1616
}
1717

@@ -32,7 +32,7 @@ ext {
3232
commonsCollectionsVersion = "3.2.1"
3333
commonsIOVersion = "2.2"
3434
commonsLangVersion = "2.6"
35-
datastoreVersion = "5.0.4.RELEASE"
35+
datastoreVersion = "5.0.6.RELEASE"
3636
gantVersion = "1.9.6"
3737
gdocEngineVersion = "1.0.1"
3838
groovyVersion = System.getenv('CI_GROOVY_VERSION') ?: "2.4.6"
@@ -41,13 +41,14 @@ ext {
4141
jlineVersion = "2.12"
4242
jnaVersion = "4.0.0"
4343
slf4jVersion = "1.7.10"
44+
reactorCoreVersion = '2.0.8.RELEASE'
4445
reactorVersion = '2.0.7.RELEASE'
4546

4647
spockVersion = '1.0-groovy-2.4'
47-
springBootVersion = "1.3.3.RELEASE"
48+
springBootVersion = "1.3.5.RELEASE"
4849
springLoadedVersion = "1.2.6.RELEASE"
4950
springLoadedCommonOptions = "-Xverify:none -Dspringloaded.synchronize=true -Djdk.reflect.allowGetCallerClass=true"
50-
springVersion = "4.2.5.RELEASE"
51+
springVersion = "4.2.6.RELEASE"
5152
ehcacheVersion = "2.4.6"
5253
junitVersion = "4.12"
5354
concurrentlinkedhashmapVersion = "1.4.2"
@@ -479,7 +480,7 @@ tciTrigger {
479480
}
480481

481482
task wrapper(type: Wrapper) {
482-
gradleVersion = '2.9'
483+
gradleVersion = '2.13'
483484
jarFile = 'gradle/wrapper/gradle-wrapper.jar'
484485
}
485486

@@ -497,9 +498,9 @@ task buildscriptDependencies(type: org.gradle.api.tasks.diagnostics.DependencyRe
497498
}
498499
}
499500

500-
apply plugin: 'net.gvmtool.sdkvendor'
501-
gvm {
502-
api = "https://gvm-vendor.herokuapp.com"
501+
apply plugin: "io.sdkman.vendors"
502+
sdkman {
503+
api = "https://vendors.sdkman.io"
503504
consumerKey = System.getenv("GVM_SDKVENDOR_KEY") ?: project.hasProperty("gvmSdkvendorKey") ? project.gvmSdkvendorKey : ''
504505
consumerToken = System.getenv("GVM_SDKVENDOR_TOKEN") ?: project.hasProperty("gvmSdkvendorToken") ? project.gvmSdkvendorToken : ''
505506
candidate = "grails"

gradle/wrapper/gradle-wrapper.jar

-80 Bytes
Binary file not shown.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
#Fri Nov 27 23:09:32 CET 2015
1+
#Tue May 10 14:14:04 CEST 2016
22
distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-2.9-bin.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-2.13-bin.zip

gradlew

Lines changed: 25 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,30 @@
66
##
77
##############################################################################
88

9-
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
10-
DEFAULT_JVM_OPTS=""
9+
# Attempt to set APP_HOME
10+
# Resolve links: $0 may be a link
11+
PRG="$0"
12+
# Need this for relative symlinks.
13+
while [ -h "$PRG" ] ; do
14+
ls=`ls -ld "$PRG"`
15+
link=`expr "$ls" : '.*-> \(.*\)$'`
16+
if expr "$link" : '/.*' > /dev/null; then
17+
PRG="$link"
18+
else
19+
PRG=`dirname "$PRG"`"/$link"
20+
fi
21+
done
22+
SAVED="`pwd`"
23+
cd "`dirname \"$PRG\"`/" >/dev/null
24+
APP_HOME="`pwd -P`"
25+
cd "$SAVED" >/dev/null
1126

1227
APP_NAME="Gradle"
1328
APP_BASE_NAME=`basename "$0"`
1429

30+
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
31+
DEFAULT_JVM_OPTS=""
32+
1533
# Use the maximum available, or set MAX_FD != -1 to use that value.
1634
MAX_FD="maximum"
1735

@@ -30,6 +48,7 @@ die ( ) {
3048
cygwin=false
3149
msys=false
3250
darwin=false
51+
nonstop=false
3352
case "`uname`" in
3453
CYGWIN* )
3554
cygwin=true
@@ -40,26 +59,11 @@ case "`uname`" in
4059
MINGW* )
4160
msys=true
4261
;;
62+
NONSTOP* )
63+
nonstop=true
64+
;;
4365
esac
4466

45-
# Attempt to set APP_HOME
46-
# Resolve links: $0 may be a link
47-
PRG="$0"
48-
# Need this for relative symlinks.
49-
while [ -h "$PRG" ] ; do
50-
ls=`ls -ld "$PRG"`
51-
link=`expr "$ls" : '.*-> \(.*\)$'`
52-
if expr "$link" : '/.*' > /dev/null; then
53-
PRG="$link"
54-
else
55-
PRG=`dirname "$PRG"`"/$link"
56-
fi
57-
done
58-
SAVED="`pwd`"
59-
cd "`dirname \"$PRG\"`/" >/dev/null
60-
APP_HOME="`pwd -P`"
61-
cd "$SAVED" >/dev/null
62-
6367
CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
6468

6569
# Determine the Java command to use to start the JVM.
@@ -85,7 +89,7 @@ location of your Java installation."
8589
fi
8690

8791
# Increase the maximum file descriptors if we can.
88-
if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then
92+
if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then
8993
MAX_FD_LIMIT=`ulimit -H -n`
9094
if [ $? -eq 0 ] ; then
9195
if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then

gradlew.bat

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@
88
@rem Set local scope for the variables with windows NT shell
99
if "%OS%"=="Windows_NT" setlocal
1010

11-
@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
12-
set DEFAULT_JVM_OPTS=
13-
1411
set DIRNAME=%~dp0
1512
if "%DIRNAME%" == "" set DIRNAME=.
1613
set APP_BASE_NAME=%~n0
1714
set APP_HOME=%DIRNAME%
1815

16+
@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
17+
set DEFAULT_JVM_OPTS=
18+
1919
@rem Find java.exe
2020
if defined JAVA_HOME goto findJavaFromJavaHome
2121

@@ -46,7 +46,7 @@ echo location of your Java installation.
4646
goto fail
4747

4848
:init
49-
@rem Get command-line arguments, handling Windowz variants
49+
@rem Get command-line arguments, handling Windows variants
5050

5151
if not "%OS%" == "Windows_NT" goto win9xME_args
5252
if "%@eval[2+2]" == "4" goto 4NT_args

grails-async/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ dependencies {
33
exclude group:'org.multiverse', module:'multiverse-core'
44
exclude group:'org.codehaus.groovy', module: 'groovy-all'
55
}
6-
compile "io.projectreactor:reactor-core:$reactorVersion"
7-
compile "io.projectreactor:reactor-stream:$reactorVersion"
6+
compile "io.projectreactor:reactor-core:$reactorCoreVersion"
7+
compile "io.projectreactor:reactor-stream:$reactorCoreVersion"
88
}
99

1010
eclipse {

grails-bom/plugins.properties

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
hibernate=4.3.10.7
2-
hibernate3=5.0.4
3-
hibernate4=5.0.4
4-
hibernate5=5.0.4
5-
mongodb=5.0.4
6-
cassandra=5.0.4
7-
neo4j=5.0.4
2+
hibernate3=5.0.6
3+
hibernate4=5.0.6
4+
hibernate5=5.0.6
5+
mongodb=5.0.6
6+
cassandra=5.0.6
7+
neo4j=5.0.6
88
cache=3.0.2
9-
asset-pipeline=3.1.3
9+
asset-pipeline=3.2.1
10+
asset-pipeline-grails=2.8.2
1011
scaffolding=3.2.1
1112
fields=2.1.2
1213
geb=1.0.1
13-
views-json=1.0.8
14-
views-markup=1.0.8
14+
views-json=1.0.11
15+
views-markup=1.0.11

grails-bootstrap/src/main/groovy/grails/config/ConfigMap.groovy

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,15 @@ interface ConfigMap extends Iterable<Map.Entry<String, Object>>, Map<String, Obj
4747
*/
4848
def <T> T getProperty(String key, Class<T> targetType)
4949

50+
/**
51+
* Return the property value associated with the given key, or {@code null}
52+
* if the key cannot be resolved.
53+
* @param key the property name to resolve
54+
* @param targetType the expected type of the property value
55+
* @see #getRequiredProperty(String, Class)
56+
*/
57+
def <T> T getProperty(String key, Class<T> targetType, T defaultValue)
58+
5059
/**
5160
* Return the property value associated with the given key, converted to the given
5261
* targetType (never {@code null}).

grails-bootstrap/src/main/groovy/grails/io/IOUtils.groovy

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,6 @@ class IOUtils extends SpringIOUtils {
254254
def buildClassespath = BuildSettings.BUILD_CLASSES_PATH.replace('/', File.separator)
255255
if(rootPath.contains(buildClassespath)) {
256256
return new File(rootPath - buildClassespath)
257-
258257
}
259258
} catch (FileNotFoundException fnfe) {
260259
return null

0 commit comments

Comments
 (0)