|
|
@ -19,17 +19,16 @@ package org.springframework.boot.gradle.dsl;
|
|
|
|
import java.io.File;
|
|
|
|
import java.io.File;
|
|
|
|
import java.util.concurrent.Callable;
|
|
|
|
import java.util.concurrent.Callable;
|
|
|
|
|
|
|
|
|
|
|
|
import javax.swing.Action;
|
|
|
|
import org.gradle.api.Action;
|
|
|
|
|
|
|
|
|
|
|
|
import org.gradle.api.Project;
|
|
|
|
import org.gradle.api.Project;
|
|
|
|
import org.gradle.api.plugins.BasePlugin;
|
|
|
|
import org.gradle.api.plugins.BasePlugin;
|
|
|
|
import org.gradle.api.plugins.JavaPlugin;
|
|
|
|
import org.gradle.api.plugins.JavaPlugin;
|
|
|
|
import org.gradle.api.plugins.JavaPluginConvention;
|
|
|
|
import org.gradle.api.plugins.JavaPluginConvention;
|
|
|
|
import org.gradle.api.tasks.SourceSet;
|
|
|
|
import org.gradle.api.tasks.SourceSet;
|
|
|
|
|
|
|
|
import org.gradle.jvm.tasks.Jar;
|
|
|
|
|
|
|
|
|
|
|
|
import org.springframework.boot.gradle.tasks.buildinfo.BuildInfo;
|
|
|
|
import org.springframework.boot.gradle.tasks.buildinfo.BuildInfo;
|
|
|
|
import org.springframework.boot.gradle.tasks.buildinfo.BuildInfoProperties;
|
|
|
|
import org.springframework.boot.gradle.tasks.buildinfo.BuildInfoProperties;
|
|
|
|
import org.springframework.boot.loader.tools.Layouts.Jar;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Entry point to Spring Boot's Gradle DSL.
|
|
|
|
* Entry point to Spring Boot's Gradle DSL.
|
|
|
@ -107,7 +106,7 @@ public class SpringBootExtension {
|
|
|
|
|
|
|
|
|
|
|
|
private String determineArtifactBaseName() {
|
|
|
|
private String determineArtifactBaseName() {
|
|
|
|
Jar artifactTask = findArtifactTask();
|
|
|
|
Jar artifactTask = findArtifactTask();
|
|
|
|
return artifactTask == null ? null : artifactTask.getBaseName();
|
|
|
|
return (artifactTask == null ? null : artifactTask.getBaseName());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private Jar findArtifactTask() {
|
|
|
|
private Jar findArtifactTask() {
|
|
|
|