mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-05-03 03:43:54 +01:00
Exclude GradleBuild tasks on JDK 16 for now
See gh-25523
This commit is contained in:
committed by
Stephane Nicoll
parent
ff5a6d9a2e
commit
1a803448f0
@@ -22,6 +22,7 @@ import java.util.List;
|
||||
import org.gradle.api.Plugin;
|
||||
import org.gradle.api.Project;
|
||||
import org.gradle.api.plugins.JavaPluginExtension;
|
||||
import org.gradle.api.tasks.GradleBuild;
|
||||
import org.gradle.api.tasks.compile.JavaCompile;
|
||||
import org.gradle.api.tasks.javadoc.Javadoc;
|
||||
import org.gradle.api.tasks.testing.Test;
|
||||
@@ -70,6 +71,7 @@ public class ToolchainPlugin implements Plugin<Project> {
|
||||
project.getTasks().withType(JavaCompile.class, (task) -> task.setEnabled(false));
|
||||
project.getTasks().withType(Javadoc.class, (task) -> task.setEnabled(false));
|
||||
project.getTasks().withType(Test.class, (task) -> task.setEnabled(false));
|
||||
project.getTasks().withType(GradleBuild.class, (task) -> task.setEnabled(false));
|
||||
}
|
||||
|
||||
private void configureJavaCompileToolchain(Project project, ToolchainExtension toolchain) {
|
||||
|
||||
+4
@@ -6,6 +6,10 @@ plugins {
|
||||
|
||||
description = "Spring Boot Launch Script Integration Tests"
|
||||
|
||||
toolchain {
|
||||
maximumCompatibleJavaVersion = JavaLanguageVersion.of(15)
|
||||
}
|
||||
|
||||
configurations {
|
||||
app
|
||||
}
|
||||
|
||||
@@ -6,6 +6,10 @@ plugins {
|
||||
|
||||
description = "Spring Boot Loader Integration Tests"
|
||||
|
||||
toolchain {
|
||||
maximumCompatibleJavaVersion = JavaLanguageVersion.of(15)
|
||||
}
|
||||
|
||||
configurations {
|
||||
app
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user