File tree Expand file tree Collapse file tree 4 files changed +25
-3
lines changed
src/main/java/org/gradlex/javamodule/dependencies/tasks Expand file tree Collapse file tree 4 files changed +25
-3
lines changed Original file line number Diff line number Diff line change @@ -63,3 +63,24 @@ tasks.test {
63
63
maxParallelForks = 4
64
64
inputs.dir(layout.projectDirectory.dir(" samples" ))
65
65
}
66
+
67
+ testing.suites.named<JvmTestSuite >(" test" ) {
68
+ useJUnitJupiter()
69
+ listOf (" 7.4" , " 7.6.4" , " 8.0.2" ).forEach { gradleVersionUnderTest ->
70
+ targets.register(" test${gradleVersionUnderTest} " ) {
71
+ testTask {
72
+ group = LifecycleBasePlugin .VERIFICATION_GROUP
73
+ description = " Runs tests against Gradle $gradleVersionUnderTest "
74
+ systemProperty(" gradleVersionUnderTest" , gradleVersionUnderTest)
75
+ exclude(" **/*SamplesTest.class" ) // Not yet cross-version ready
76
+ }
77
+ }
78
+ }
79
+ targets.all {
80
+ testTask {
81
+ maxParallelForks = 4
82
+ inputs.dir(layout.projectDirectory.dir(" samples" ))
83
+ inputs.dir(" samples" )
84
+ }
85
+ }
86
+ }
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-8.7 -bin.zip
3
+ distributionUrl =https\://services.gradle.org/distributions/gradle-8.8 -bin.zip
4
4
networkTimeout =10000
5
5
validateDistributionUrl =true
6
6
zipStoreBase =GRADLE_USER_HOME
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/HEAD/subprojects/ plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
58
+ # https://github.com/gradle/gradle/blob/HEAD/platforms/jvm/ plugins-application /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/.
Original file line number Diff line number Diff line change 28
28
import org .gradlex .javamodule .dependencies .internal .diagnostics .AsciiModuleDependencyReportRenderer ;
29
29
30
30
import javax .inject .Inject ;
31
+ import java .util .Collections ;
31
32
import java .util .Set ;
32
33
33
34
@ NonNullApi
@@ -64,7 +65,7 @@ public void setConfigurations(Set<Configuration> configurations) {
64
65
65
66
private void configurationsChanged () {
66
67
getModulePath ().setFrom ();
67
- getModuleArtifacts ().unset ( );
68
+ getModuleArtifacts ().set ( Collections . emptyMap () );
68
69
for (Configuration conf : getConfigurations ()) {
69
70
getModulePath ().from (conf );
70
71
getModuleArtifacts ().put (conf .getName (), getProviders ().provider (() -> conf .getIncoming ().getArtifacts ()));
You can’t perform that action at this time.
0 commit comments