diff --git a/build.gradle b/build.gradle index cd7c131c..66ad1cdb 100644 --- a/build.gradle +++ b/build.gradle @@ -62,7 +62,7 @@ sourceSets { resources { srcDir file('src/functionalTest/resources') } - compileClasspath += sourceSets.main.output + configurations.testRuntime + compileClasspath += sourceSets.main.output + configurations.testRuntimeClasspath runtimeClasspath += output + compileClasspath } } @@ -129,7 +129,7 @@ idea { * Compiles the tests */ compileFunctionalTestGroovy { - classpath += configurations.proxyTest + classpath += configurations.proxyTest + configurations.testRuntimeClasspath } /** @@ -154,6 +154,7 @@ processResources { ]) } } + duplicatesStrategy = DuplicatesStrategy.INCLUDE } @@ -404,7 +405,7 @@ pluginBundle { * **********************************************************************************************************************/ wrapper { - gradleVersion = '5.6' + gradleVersion = '6.0' distributionUrl = distributionUrl.replace('bin', 'all') // Download sources } diff --git a/gradle/wrapper/gradle-wrapper.jar b/gradle/wrapper/gradle-wrapper.jar index 5c2d1cf0..cc4fdc29 100644 Binary files a/gradle/wrapper/gradle-wrapper.jar and b/gradle/wrapper/gradle-wrapper.jar differ diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index 8d58bda4..562e2c88 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,5 +1,5 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-5.6-all.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-6.0-all.zip zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists diff --git a/gradlew b/gradlew index 83f2acfd..2fe81a7d 100755 --- a/gradlew +++ b/gradlew @@ -154,19 +154,19 @@ if [ "$cygwin" = "true" -o "$msys" = "true" ] ; then else eval `echo args$i`="\"$arg\"" fi - i=$((i+1)) + i=`expr $i + 1` done case $i in - (0) set -- ;; - (1) set -- "$args0" ;; - (2) set -- "$args0" "$args1" ;; - (3) set -- "$args0" "$args1" "$args2" ;; - (4) set -- "$args0" "$args1" "$args2" "$args3" ;; - (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; - (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; - (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; - (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; - (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; + 0) set -- ;; + 1) set -- "$args0" ;; + 2) set -- "$args0" "$args1" ;; + 3) set -- "$args0" "$args1" "$args2" ;; + 4) set -- "$args0" "$args1" "$args2" "$args3" ;; + 5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; + 6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; + 7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; + 8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; + 9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; esac fi @@ -175,14 +175,9 @@ save () { for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done echo " " } -APP_ARGS=$(save "$@") +APP_ARGS=`save "$@"` # Collect all arguments for the java command, following the shell quoting and substitution rules eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS" -# by default we should be in the correct project dir, but when run from Finder on Mac, the cwd is wrong -if [ "$(uname)" = "Darwin" ] && [ "$HOME" = "$PWD" ]; then - cd "$(dirname "$0")" -fi - exec "$JAVACMD" "$@" diff --git a/src/functionalTest/groovy/com/devsoap/plugin/tests/GradleVersionTest.groovy b/src/functionalTest/groovy/com/devsoap/plugin/tests/GradleVersionTest.groovy index b258d67a..5653c6db 100644 --- a/src/functionalTest/groovy/com/devsoap/plugin/tests/GradleVersionTest.groovy +++ b/src/functionalTest/groovy/com/devsoap/plugin/tests/GradleVersionTest.groovy @@ -22,7 +22,7 @@ class GradleVersionTest extends IntegrationTest { @Parameterized.Parameters(name = "Gradle {0}") static Collection getGradleVersions() { - [ '5.6'] + [ '6.0'] } @Override diff --git a/src/main/groovy/com/devsoap/plugin/GradleVaadinPlugin.groovy b/src/main/groovy/com/devsoap/plugin/GradleVaadinPlugin.groovy index 486d275e..3b11a9ab 100644 --- a/src/main/groovy/com/devsoap/plugin/GradleVaadinPlugin.groovy +++ b/src/main/groovy/com/devsoap/plugin/GradleVaadinPlugin.groovy @@ -212,7 +212,7 @@ class GradleVaadinPlugin implements Plugin { Gradle gradle = project.gradle VersionNumber version = VersionNumber.parse(gradle.gradleVersion) - VersionNumber requiredVersion = new VersionNumber(5, 6, 0, null) + VersionNumber requiredVersion = new VersionNumber(6, 0, 0, null) if ( version.baseVersion < requiredVersion ) { throw new UnsupportedVersionException("Your gradle version ($version) is too old. " + "Plugin requires Gradle $requiredVersion+")