mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-08-29 03:06:45 +08:00
Exclude GradleBuild tasks on JDK 16 for now
See gh-25523
This commit is contained in:
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) {
|
||||
|
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user