Class JavaModulePackagingExtension

java.lang.Object
org.gradlex.javamodule.packaging.JavaModulePackagingExtension

@NullMarked public abstract class JavaModulePackagingExtension extends Object
  • 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()
    • getJavaToolchains

      @Inject protected abstract org.gradle.jvm.toolchain.JavaToolchainService getJavaToolchains()
    • getObjects

      @Inject protected abstract org.gradle.api.model.ObjectFactory getObjects()
    • target

      public Target target(String label)
      Retrieve the target with the given 'label'. If the target does not yet exist, it will be created.
    • target

      public Target target(String label, org.gradle.api.Action<? super Target> action)
      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

      public Target primaryTarget(Target target)
      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.