Class JdkSpecOverride

java.lang.Object
com.dua3.gradle.jdkprovider.plugin.JdkSpecOverride

public abstract class JdkSpecOverride extends Object
Configuration for a specific JDK.
  • Constructor Summary

    Constructors
    Constructor
    Description
    JdkSpecOverride(String name, org.gradle.api.model.ObjectFactory objects)
    Constructs an instance of JdkSpecOverride with the specified name and object factory.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.gradle.api.provider.Property<SystemArchitecture>
    Retrieves the property representing the system architecture configuration.
    org.gradle.api.provider.Property<Boolean>
    Retrieves the property indicating whether JavaFX is bundled with the JDK.
    Retrieves the name of this JDK specification override configuration.
    org.gradle.api.provider.Property<Boolean>
    Retrieves the property indicating whether native image capabilities are supported.
    org.gradle.api.provider.Property<OSFamily>
    Retrieves the operating system family property for this configuration.
    org.gradle.api.provider.Property<org.gradle.jvm.toolchain.JvmVendorSpec>
    Returns the property representing the JDK vendor specification.
    org.gradle.api.provider.Property<Object>
    Retrieves the version property of this JDK specification override.
    void
    setVersion(int version)
    Sets the version of the JDK specification override.
    void
    setVersion(String version)
    Sets the version property for the JDK specification override.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • JdkSpecOverride

      @Inject public JdkSpecOverride(String name, org.gradle.api.model.ObjectFactory objects)
      Constructs an instance of JdkSpecOverride with the specified name and object factory.
      Parameters:
      name - the name of the JDK specification override, used to uniquely identify this configuration
      objects - the object factory used to create property instances for this configuration
  • Method Details

    • getName

      public String getName()
      Retrieves the name of this JDK specification override configuration.
      Returns:
      the name of the JDK specification override
    • getOs

      public org.gradle.api.provider.Property<OSFamily> getOs()
      Retrieves the operating system family property for this configuration.
      Returns:
      the Property representing the operating system family associated with this configuration.
    • getArch

      public org.gradle.api.provider.Property<SystemArchitecture> getArch()
      Retrieves the property representing the system architecture configuration.
      Returns:
      a Property<SystemArchitecture> instance that holds the value of the system architecture
    • getVersion

      public org.gradle.api.provider.Property<Object> getVersion()
      Retrieves the version property of this JDK specification override.
      Returns:
      the Property representing the version, which can hold various types of values such as an integer or a string.
    • setVersion

      public void setVersion(int version)
      Sets the version of the JDK specification override.
      Parameters:
      version - the version of the JDK specification as an integer
    • setVersion

      public void setVersion(String version)
      Sets the version property for the JDK specification override.
      Parameters:
      version - the version value to be set, represented as a String
    • getVendor

      public org.gradle.api.provider.Property<org.gradle.jvm.toolchain.JvmVendorSpec> getVendor()
      Returns the property representing the JDK vendor specification.
      Returns:
      a property encapsulating the vendor specification for the JDK
    • getNativeImageCapable

      public org.gradle.api.provider.Property<Boolean> getNativeImageCapable()
      Retrieves the property indicating whether native image capabilities are supported.
      Returns:
      a Property of type Boolean representing the native image capability status.
    • getJavaFxBundled

      public org.gradle.api.provider.Property<Boolean> getJavaFxBundled()
      Retrieves the property indicating whether JavaFX is bundled with the JDK.
      Returns:
      a property that contains a boolean value, where true indicates that JavaFX is bundled, and false indicates it is not bundled.