File tree 7 files changed +21
-16
lines changed
buildSrc/src/main/groovy/io/spring/gradle/convention 7 files changed +21
-16
lines changed Original file line number Diff line number Diff line change @@ -52,6 +52,15 @@ public class IntegrationTestPlugin implements Plugin<Project> {
52
52
// ensure we don't add if no tests to avoid adding Gretty
53
53
return
54
54
}
55
+ project. sourceSets {
56
+ integrationTest {
57
+ java. srcDir project. file(' src/integration-test/java' )
58
+ resources. srcDir project. file(' src/integration-test/resources' )
59
+ compileClasspath = project. sourceSets. main. output + project. sourceSets. test. output + project. configurations. integrationTestCompileClasspath
60
+ runtimeClasspath = output + compileClasspath + project. configurations. integrationTestRuntimeClasspath
61
+ }
62
+ }
63
+
55
64
project. configurations {
56
65
integrationTestCompile {
57
66
extendsFrom testImplementation
@@ -69,15 +78,6 @@ public class IntegrationTestPlugin implements Plugin<Project> {
69
78
}
70
79
}
71
80
72
- project. sourceSets {
73
- integrationTest {
74
- java. srcDir project. file(' src/integration-test/java' )
75
- resources. srcDir project. file(' src/integration-test/resources' )
76
- compileClasspath = project. sourceSets. main. output + project. sourceSets. test. output + project. configurations. integrationTestCompileClasspath
77
- runtimeClasspath = output + compileClasspath + project. configurations. integrationTestRuntimeClasspath
78
- }
79
- }
80
-
81
81
Task integrationTestTask = project. tasks. create(" integrationTest" , Test ) {
82
82
group = ' Verification'
83
83
description = ' Runs the integration tests.'
Original file line number Diff line number Diff line change @@ -18,7 +18,6 @@ package io.spring.gradle.convention;
18
18
19
19
import org.gradle.api.Project
20
20
import org.gradle.api.plugins.JavaLibraryPlugin ;
21
- import org.gradle.api.plugins.MavenPlugin ;
22
21
import org.gradle.api.plugins.PluginManager
23
22
import org.springframework.gradle.classpath.CheckClasspathForProhibitedDependenciesPlugin ;
24
23
import org.springframework.gradle.maven.SpringMavenPlugin ;
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ public class TestsConfigurationPlugin implements Plugin<Project> {
43
43
}
44
44
45
45
project. tasks. create(' testJar' , Jar ) {
46
- classifier = ' test'
46
+ archiveClassifier = ' test'
47
47
from project. sourceSets. test. output
48
48
}
49
49
Original file line number Diff line number Diff line change 1
1
distributionBase =GRADLE_USER_HOME
2
2
distributionPath =wrapper/dists
3
- distributionUrl =https\://services.gradle.org/distributions/gradle-7.6.2-bin.zip
3
+ distributionUrl =https\://services.gradle.org/distributions/gradle-8.3-bin.zip
4
+ networkTimeout =10000
4
5
zipStoreBase =GRADLE_USER_HOME
5
6
zipStorePath =wrapper/dists
Original file line number Diff line number Diff line change 55
55
# Darwin, MinGW, and NonStop.
56
56
#
57
57
# (3) This script is generated from the Groovy template
58
- # https://github.com/gradle/gradle/blob/master /subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
58
+ # https://github.com/gradle/gradle/blob/HEAD /subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
59
59
# within the Gradle project.
60
60
#
61
61
# You can find Gradle at https://github.com/gradle/gradle/.
80
80
esac
81
81
done
82
82
83
- APP_HOME=$( cd " ${APP_HOME:- ./ } " && pwd -P ) || exit
84
-
85
- APP_NAME=" Gradle"
83
+ # This is normally unused
84
+ # shellcheck disable=SC2034
86
85
APP_BASE_NAME=${0##*/ }
86
+ APP_HOME=$( cd " ${APP_HOME:- ./ } " && pwd -P ) || exit
87
87
88
88
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
89
89
DEFAULT_JVM_OPTS=' "-Xmx64m" "-Xms64m"'
143
143
if ! " $cygwin " && ! " $darwin " && ! " $nonstop " ; then
144
144
case $MAX_FD in # (
145
145
max* )
146
+ # In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked.
147
+ # shellcheck disable=SC3045
146
148
MAX_FD=$( ulimit -H -n ) ||
147
149
warn " Could not query maximum file descriptor limit"
148
150
esac
149
151
case $MAX_FD in # (
150
152
' ' | soft) : ;; # (
151
153
* )
154
+ # In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked.
155
+ # shellcheck disable=SC3045
152
156
ulimit -n " $MAX_FD " ||
153
157
warn " Could not set maximum file descriptor limit to $MAX_FD "
154
158
esac
Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ if "%OS%"=="Windows_NT" setlocal
26
26
27
27
set DIRNAME = %~dp0
28
28
if " %DIRNAME% " == " " set DIRNAME = .
29
+ @ rem This is normally unused
29
30
set APP_BASE_NAME = %~n0
30
31
set APP_HOME = %DIRNAME%
31
32
You can’t perform that action at this time.
0 commit comments