mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-09-03 04:26:12 +08:00
Add missing task output annotations to BootJar and BootWar
Closes gh-15488
This commit is contained in:
parent
3cfcc9e9a7
commit
83ce5dcee8
@ -27,6 +27,7 @@ import org.gradle.api.file.FileCopyDetails;
|
||||
import org.gradle.api.file.FileTreeElement;
|
||||
import org.gradle.api.internal.file.copy.CopyAction;
|
||||
import org.gradle.api.specs.Spec;
|
||||
import org.gradle.api.tasks.Internal;
|
||||
import org.gradle.api.tasks.bundling.Jar;
|
||||
|
||||
/**
|
||||
@ -153,6 +154,7 @@ public class BootJar extends Jar implements BootArchive {
|
||||
* @return a {@code CopySpec} for {@code BOOT-INF}
|
||||
* @since 2.0.3
|
||||
*/
|
||||
@Internal
|
||||
public CopySpec getBootInf() {
|
||||
CopySpec child = getProject().copySpec();
|
||||
this.bootInf.with(child);
|
||||
|
@ -27,6 +27,7 @@ import org.gradle.api.file.FileCopyDetails;
|
||||
import org.gradle.api.file.FileTreeElement;
|
||||
import org.gradle.api.internal.file.copy.CopyAction;
|
||||
import org.gradle.api.specs.Spec;
|
||||
import org.gradle.api.tasks.Classpath;
|
||||
import org.gradle.api.tasks.Optional;
|
||||
import org.gradle.api.tasks.bundling.War;
|
||||
|
||||
@ -114,6 +115,7 @@ public class BootWar extends War implements BootArchive {
|
||||
* @return the provided classpath
|
||||
*/
|
||||
@Optional
|
||||
@Classpath
|
||||
public FileCollection getProvidedClasspath() {
|
||||
return this.providedClasspath;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user