Skip to content

Commit 6f1b2ba

Browse files
committed
Upgrade to Gradle 4.0 and SI-4.3.10
1 parent cfc8184 commit 6f1b2ba

File tree

6 files changed

+38
-24
lines changed

6 files changed

+38
-24
lines changed

spring-integration-zip/build.gradle

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,18 @@ buildscript {
22
repositories {
33
maven { url 'https://repo.spring.io/plugins-release' }
44
}
5+
dependencies {
6+
classpath 'io.spring.gradle:dependency-management-plugin:1.0.2.RELEASE'
7+
classpath 'io.spring.gradle:spring-io-plugin:0.0.7.RELEASE'
8+
}
59
}
610

711
plugins {
812
id 'java'
913
id 'eclipse'
1014
id 'idea'
1115
id 'jacoco'
12-
id 'org.sonarqube' version '2.1-rc3'
16+
id "org.sonarqube" version "2.5"
1317
}
1418

1519
description = 'Spring Integration Zip Adapter'
@@ -37,6 +41,12 @@ if (project.hasProperty('platformVersion')) {
3741

3842
}
3943
}
44+
45+
springIoDependencyVersionMappingCheck {
46+
configuration = configurations.testRuntime
47+
failOnUnmappedDirectDependency = false
48+
failOnUnmappedTransitiveDependency = true
49+
}
4050
}
4151

4252
sourceCompatibility=1.6
@@ -52,7 +62,7 @@ ext {
5262
linkScmDevConnection = 'git@github.com:spring-projects/spring-integration-extensions.git'
5363

5464
slf4jVersion = "1.7.21"
55-
springIntegrationVersion = '4.3.1.RELEASE'
65+
springIntegrationVersion = '4.3.10.RELEASE'
5666
ztZipVersion = '1.9'
5767

5868
idPrefix = 'zip'
@@ -73,7 +83,7 @@ sourceSets {
7383
}
7484

7585
jacoco {
76-
toolVersion = "0.7.6.201602180812"
86+
toolVersion = "0.7.8"
7787
}
7888

7989
dependencies {
@@ -104,7 +114,7 @@ jacocoTestReport {
104114
reports {
105115
xml.enabled false
106116
csv.enabled false
107-
html.destination "${buildDir}/reports/jacoco/html"
117+
html.destination file("${buildDir}/reports/jacoco/html")
108118
}
109119
}
110120

Binary file not shown.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
#Wed Sep 21 17:15:24 EDT 2016
1+
#Wed Jun 21 15:16:28 EDT 2017
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.14-bin.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-4.0-bin.zip

spring-integration-zip/gradlew

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env bash
1+
#!/usr/bin/env sh
22

33
##############################################################################
44
##
@@ -33,11 +33,11 @@ DEFAULT_JVM_OPTS=""
3333
# Use the maximum available, or set MAX_FD != -1 to use that value.
3434
MAX_FD="maximum"
3535

36-
warn ( ) {
36+
warn () {
3737
echo "$*"
3838
}
3939

40-
die ( ) {
40+
die () {
4141
echo
4242
echo "$*"
4343
echo
@@ -154,11 +154,19 @@ if $cygwin ; then
154154
esac
155155
fi
156156

157-
# Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules
158-
function splitJvmOpts() {
159-
JVM_OPTS=("$@")
157+
# Escape application args
158+
save () {
159+
for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done
160+
echo " "
160161
}
161-
eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS
162-
JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME"
162+
APP_ARGS=$(save "$@")
163163

164-
exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@"
164+
# Collect all arguments for the java command, following the shell quoting and substitution rules
165+
eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS"
166+
167+
# by default we should be in the correct project dir, but when run from Finder on Mac, the cwd is wrong
168+
if [ "$(uname)" = "Darwin" ] && [ "$HOME" = "$PWD" ]; then
169+
cd "$(dirname "$0")"
170+
fi
171+
172+
exec "$JAVACMD" "$@"

spring-integration-zip/gradlew.bat

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ goto fail
4949
@rem Get command-line arguments, handling Windows variants
5050

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

5453
:win9xME_args
5554
@rem Slurp the command line arguments.
@@ -60,11 +59,6 @@ set _SKIP=2
6059
if "x%~1" == "x" goto execute
6160

6261
set CMD_LINE_ARGS=%*
63-
goto execute
64-
65-
:4NT_args
66-
@rem Get arguments from the 4NT Shell from JP Software
67-
set CMD_LINE_ARGS=%$
6862

6963
:execute
7064
@rem Setup the command line

spring-integration-zip/src/test/java/org/springframework/integration/zip/config/xml/ZipTransformerParserTests.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2015-2016 the original author or authors.
2+
* Copyright 2015-2017 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
55
* the License. You may obtain a copy of the License at
@@ -43,6 +43,8 @@
4343

4444
/**
4545
* @author Gunnar Hillert
46+
* @author Artem Bilan
47+
*
4648
* @since 1.0
4749
*/
4850
public class ZipTransformerParserTests {
@@ -139,8 +141,8 @@ public void testZipTransformerParserWithIncorrectResultType() {
139141
fail("Expected a BeanDefinitionParsingException to be thrown.");
140142
}
141143
catch (BeanCreationException e) {
142-
assertThat(e.getMessage(), containsString("Failed to convert property value of type [java.lang.String] " +
143-
"to required type [org.springframework.integration.zip.transformer.ZipResultType] "));
144+
assertThat(e.getMessage(), containsString("Failed to convert property value of type 'java.lang.String' " +
145+
"to required type 'org.springframework.integration.zip.transformer.ZipResultType'"));
144146
}
145147
}
146148

0 commit comments

Comments
 (0)