Application
, ApplicationJar
public interface ApplicationSpec
Application
,
ApplicationJar
Modifier and Type | Method | Description |
---|---|---|
default void |
fromSourceSet(Provider<SourceSet> sourceSet) |
Configures the application to build from a
SourceSet . |
default void |
fromSourceSet(SourceSet sourceSet) |
Configures the application to build from a
SourceSet . |
Property<Configuration> |
getDependencies() |
Configuration to resolve the application's dependencies from. |
Property<String> |
getDependencyDirectoryName() |
Name of the directory that will contain the application's dependencies.
|
Property<String> |
getMainClass() |
The fully qualified name of the application's main class.
|
Project |
getProject() |
Returns the project that this
ApplicationSpec belongs to. |
Property<Jar> |
getRawJar() |
Jar task whose output to enhance with the application's classpath and main class metadata. |
default Provider<Configuration> |
locateDependencies(Provider<SourceSet> sourceSet) |
Locates the dependencies configuration associated with the given
SourceSet . |
default Provider<Configuration> |
locateDependencies(SourceSet sourceSet) |
Locates the dependencies configuration associated with the given
SourceSet . |
default Provider<Jar> |
locateRawJar(Provider<SourceSet> sourceSet) |
|
default Provider<Jar> |
locateRawJar(SourceSet sourceSet) |
@Internal @Nonnull Project getProject()
ApplicationSpec
belongs to.ApplicationSpec
belongs to.@Nonnull default Provider<Jar> locateRawJar(@Nonnull SourceSet sourceSet)
sourceSet
- The SourceSet
whose raw JAR task to locate.SourceSet
.locateRawJar(Provider)
@Nonnull default Provider<Jar> locateRawJar(@Nonnull Provider<SourceSet> sourceSet)
sourceSet
- The SourceSet
whose raw JAR task to locate.SourceSet
.locateRawJar(SourceSet)
@Nonnull default Provider<Configuration> locateDependencies(@Nonnull SourceSet sourceSet)
SourceSet
.sourceSet
- The SourceSet
whose dependencies configuration to locate.SourceSet
.locateDependencies(Provider)
@Nonnull default Provider<Configuration> locateDependencies(@Nonnull Provider<SourceSet> sourceSet)
SourceSet
.sourceSet
- The SourceSet
whose dependencies configuration to locate.SourceSet
.locateDependencies(SourceSet)
default void fromSourceSet(@Nullable SourceSet sourceSet)
Configures the application to build from a SourceSet
.
Calling this method is equivalent to setting the following properties:
sourceSet
- The SourceSet
to build the application from.fromSourceSet(Provider)
default void fromSourceSet(@Nonnull Provider<SourceSet> sourceSet)
Configures the application to build from a SourceSet
.
Calling this method is equivalent to setting the following properties:
sourceSet
- The SourceSet
to build the application from.fromSourceSet(SourceSet)
@InputFiles @PathSensitive(NONE) @Optional @Nonnull Property<Jar> getRawJar()
Jar
task whose output to enhance with the application's classpath and main class metadata.Property
object specifying the application's raw JAR.locateRawJar(SourceSet)
,
fromSourceSet(SourceSet)
,
fromSourceSet(Provider)
@Classpath @Optional @Nonnull Property<Configuration> getDependencies()
Configuration
to resolve the application's dependencies from. The application's classpath will consist of
the resolved dependency artifact files.Property
object specifying the application's dependencies.locateDependencies(SourceSet)
,
fromSourceSet(SourceSet)
,
fromSourceSet(Provider)
@Input @Nonnull Property<String> getDependencyDirectoryName()
Property
object specifying the application's dependency directory name.