commit
37342aff69
|
|
@ -25,6 +25,9 @@ jobs:
|
|||
toolchain: true
|
||||
- version: 24
|
||||
toolchain: false
|
||||
- version: 25
|
||||
early-access: true
|
||||
toolchain: true
|
||||
exclude:
|
||||
- os:
|
||||
name: Linux
|
||||
|
|
|
|||
|
|
@ -31,6 +31,7 @@ import org.springframework.boot.testsupport.BuildOutput;
|
|||
import org.springframework.boot.testsupport.gradle.testkit.Dsl;
|
||||
import org.springframework.boot.testsupport.gradle.testkit.GradleBuild;
|
||||
import org.springframework.boot.testsupport.gradle.testkit.GradleBuildExtension;
|
||||
import org.springframework.boot.testsupport.gradle.testkit.GradleVersions;
|
||||
|
||||
/**
|
||||
* {@link Extension} that runs {@link TestTemplate templated tests} against the Groovy and
|
||||
|
|
@ -65,7 +66,11 @@ public class GradleMultiDslExtension implements TestTemplateInvocationContextPro
|
|||
|
||||
@Override
|
||||
public List<Extension> getAdditionalExtensions() {
|
||||
GradleBuild gradleBuild = new PluginClasspathGradleBuild(this.buildOutput, this.dsl);
|
||||
PluginClasspathGradleBuild gradleBuild = new PluginClasspathGradleBuild(this.buildOutput, this.dsl);
|
||||
if (this.dsl == Dsl.KOTLIN) {
|
||||
gradleBuild.kotlin();
|
||||
}
|
||||
gradleBuild.gradleVersion(GradleVersions.minimumCompatible());
|
||||
return Arrays.asList(new GradleBuildFieldSetter(gradleBuild), new GradleBuildExtension());
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -29,6 +29,8 @@ import java.util.jar.JarEntry;
|
|||
import java.util.jar.JarOutputStream;
|
||||
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.condition.DisabledForJreRange;
|
||||
import org.junit.jupiter.api.condition.JRE;
|
||||
import org.junit.jupiter.api.io.TempDir;
|
||||
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
|
|
@ -75,6 +77,7 @@ class StaticResourceJarsTests {
|
|||
}
|
||||
|
||||
@Test
|
||||
@DisabledForJreRange(min = JRE.JAVA_25) // Requires -Djdk.net.file.ftpfallback=true
|
||||
void uncPathsAreTolerated() throws Exception {
|
||||
File jarFile = createResourcesJar("test-resources.jar");
|
||||
List<URL> staticResourceJarUrls = new StaticResourceJars().getUrlsFrom(jarFile.toURI().toURL(),
|
||||
|
|
|
|||
|
|
@ -33,6 +33,9 @@ public final class GradleVersions {
|
|||
}
|
||||
|
||||
public static List<String> allCompatible() {
|
||||
if (isJavaVersion(JavaVersion.VERSION_25)) {
|
||||
return Arrays.asList("9.0.0", "9.1.0-rc-1");
|
||||
}
|
||||
return Arrays.asList(GradleVersion.current().getVersion(), "9.0.0", "9.1.0-rc-1");
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue