JavaScript is disabled on your browser.
@NullMarked
public abstract class JavaModulePackagingExtension
extends Object
Constructor Summary
Constructors
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods
void
abstract org.gradle.api.provider.ListProperty<String >
abstract org.gradle.api.provider.Property<String >
abstract org.gradle.api.provider.Property<String >
abstract org.gradle.api.provider.Property<String >
abstract org.gradle.api.provider.Property<String >
protected abstract org.gradle.jvm.toolchain.JavaToolchainService
abstract org.gradle.api.provider.ListProperty<String >
abstract org.gradle.api.file.DirectoryProperty
protected abstract org.gradle.api.model.ObjectFactory
abstract org.gradle.api.file.ConfigurableFileCollection
abstract org.gradle.api.provider.Property<String >
abstract org.gradle.api.provider.Property<Boolean >
org.gradle.testing.base.TestSuite
Set a test suite to be 'multi-target'.
Retrieve the target with the given 'label'.
Register or update a target with the given 'label'.
void
Configure all targets for the given OS.
Methods inherited from class java.lang.Object
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait
Constructor Details
JavaModulePackagingExtension
@Inject
public JavaModulePackagingExtension (org.gradle.api.Project project)
Method Details
getApplicationName
public abstract org.gradle.api.provider.Property<String > getApplicationName ()
getApplicationVersion
public abstract org.gradle.api.provider.Property<String > getApplicationVersion ()
getApplicationDescription
public abstract org.gradle.api.provider.Property<String > getApplicationDescription ()
getVendor
public abstract org.gradle.api.provider.Property<String > getVendor ()
getCopyright
public abstract org.gradle.api.provider.Property<String > getCopyright ()
getJlinkOptions
public abstract org.gradle.api.provider.ListProperty<String > getJlinkOptions ()
getAddModules
public abstract org.gradle.api.provider.ListProperty<String > getAddModules ()
getJpackageResources
public abstract org.gradle.api.file.DirectoryProperty getJpackageResources ()
getResources
public abstract org.gradle.api.file.ConfigurableFileCollection getResources ()
getVerbose
public abstract org.gradle.api.provider.Property<Boolean > getVerbose ()
getObjects
@Inject
protected abstract org.gradle.api.model.ObjectFactory getObjects ()
target
Retrieve the target with the given 'label'. If the target does not yet exist, it will be created.
target
Register or update a target with the given 'label'. The 'label' uniquely identifies the target.
It is used for task names and can be chosen freely.
Details of the target are configured in the
Target configuration action.
targetsWithOs
public void targetsWithOs (String operatingSystem,
org.gradle.api.Action<? super Target > action)
Configure all targets for the given OS.
allTargets
public void allTargets (org.gradle.api.Action<? super Target > action)
Configure all targets.
primaryTarget
Set a 'primary target'. Standard Gradle tasks that are not bound to a specific target – like 'assemble' – use
this 'primary target'.
multiTargetTestSuite
public org.gradle.testing.base.TestSuite multiTargetTestSuite (org.gradle.testing.base.TestSuite testSuite)
Set a test suite to be 'multi-target'. This registers an additional 'test' task for each target.