BootArchive Type — spring-boot Architecture
Architecture documentation for the BootArchive type/interface in BootArchive.java from the spring-boot codebase.
Entity Profile
Source Code
build-plugin/spring-boot-gradle-plugin/src/main/java/org/springframework/boot/gradle/tasks/bundling/BootArchive.java lines 42–123
public interface BootArchive extends Task {
/**
* Returns the fully-qualified name of the application's main class.
* @return the fully-qualified name of the application's main class
* @since 2.4.0
*/
@Input
Property<String> getMainClass();
/**
* Adds Ant-style patterns that identify files that must be unpacked from the archive
* when it is launched.
* @param patterns the patterns
*/
void requiresUnpack(String... patterns);
/**
* Adds a spec that identifies files that must be unpacked from the archive when it is
* launched.
* @param spec the spec
*/
void requiresUnpack(Spec<FileTreeElement> spec);
/**
* Returns the classpath that will be included in the archive.
* @return the classpath
*/
@Optional
@Classpath
@Nullable FileCollection getClasspath();
/**
* Adds files to the classpath to include in the archive. The given {@code classpath}
* is evaluated as per {@link Project#files(Object...)}.
* @param classpath the additions to the classpath
*/
void classpath(Object... classpath);
/**
* Sets the classpath to include in the archive. The given {@code classpath} is
* evaluated as per {@link Project#files(Object...)}.
* @param classpath the classpath
* @since 2.0.7
*/
void setClasspath(Object classpath);
/**
* Sets the classpath to include in the archive.
* @param classpath the classpath
* @since 2.0.7
*/
void setClasspath(FileCollection classpath);
/**
* Returns the target Java version of the project (e.g. as provided by the
* {@code targetCompatibility} build property).
* @return the target Java version
*/
@Input
@Optional
Property<JavaVersion> getTargetJavaVersion();
/**
* Registers the given lazily provided {@code resolvedArtifacts}. They are used to map
* from the files in the {@link #getClasspath classpath} to their dependency
* coordinates.
* @param resolvedArtifacts the lazily provided resolved artifacts
* @since 3.0.7
*/
void resolvedArtifacts(Provider<Set<ResolvedArtifactResult>> resolvedArtifacts);
/**
* Returns whether the JAR tools should be included as a dependency in the layered
* archive.
* @return whether the JAR tools should be included
* @since 3.3.0
*/
@Input
Property<Boolean> getIncludeTools();
}
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free