mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-08-29 03:06:45 +08:00
Merge branch '2.6.x' into 2.7.x
This commit is contained in:
commit
3f779191e6
@ -23,8 +23,6 @@ import java.util.List;
|
|||||||
import org.gradle.api.Plugin;
|
import org.gradle.api.Plugin;
|
||||||
import org.gradle.api.Project;
|
import org.gradle.api.Project;
|
||||||
import org.gradle.api.plugins.JavaPluginExtension;
|
import org.gradle.api.plugins.JavaPluginExtension;
|
||||||
import org.gradle.api.tasks.compile.JavaCompile;
|
|
||||||
import org.gradle.api.tasks.javadoc.Javadoc;
|
|
||||||
import org.gradle.api.tasks.testing.Test;
|
import org.gradle.api.tasks.testing.Test;
|
||||||
import org.gradle.jvm.toolchain.JavaLanguageVersion;
|
import org.gradle.jvm.toolchain.JavaLanguageVersion;
|
||||||
import org.gradle.jvm.toolchain.JavaToolchainSpec;
|
import org.gradle.jvm.toolchain.JavaToolchainSpec;
|
||||||
@ -67,8 +65,6 @@ public class ToolchainPlugin implements Plugin<Project> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void disableToolchainTasks(Project project) {
|
private void disableToolchainTasks(Project 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(Test.class, (task) -> task.setEnabled(false));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user