Class JextractExtension

java.lang.Object
de.infolektuell.gradle.jextract.extensions.JextractExtension

public abstract class JextractExtension extends Object
The dSL extension to configure the jextract plugin
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    The name that is used to register the extension
  • Constructor Summary

    Constructors
    Constructor
    Description
    Used by Gradle
  • Method Summary

    Modifier and Type
    Method
    Description
    abstract org.gradle.api.file.RegularFileProperty
    A Properties file containing the remote locations where to download the Jextract distributions
    abstract org.gradle.api.provider.Property<@NonNull Boolean>
    Generate source files instead of class files for all libraries where not set explicitly (Jextract 21 and below) This becomes the convention for all libraries.
    Configuration of a Jextract installation to be used by the plugin
    final org.gradle.api.NamedDomainObjectContainer<@NonNull LibraryHandler>
    The libraries Jextract should generate bindings for
    protected abstract org.gradle.api.model.ObjectFactory
    Inject an available instance of the object factory service
    abstract org.gradle.api.file.DirectoryProperty
    specify the directory to place generated files of all libraries by default
    final void
    libraries(@NonNull org.gradle.api.Action<@NonNull org.gradle.api.NamedDomainObjectContainer<@NonNull LibraryHandler>> action)
    Configures the libraries Jextract should generate bindings for

    Methods inherited from class Object

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

    • EXTENSION_NAME

      public static final String EXTENSION_NAME
      The name that is used to register the extension
      See Also:
  • Constructor Details

    • JextractExtension

      public JextractExtension()
      Used by Gradle
  • Method Details

    • getInstallation

      public abstract InstallationHandler getInstallation()
      Configuration of a Jextract installation to be used by the plugin
      Returns:
      a managed type to configure the jextract installation
    • getDistributions

      public abstract org.gradle.api.file.RegularFileProperty getDistributions()
      A Properties file containing the remote locations where to download the Jextract distributions
      Returns:
      a property
    • getLibraries

      public final org.gradle.api.NamedDomainObjectContainer<@NonNull LibraryHandler> getLibraries()
      The libraries Jextract should generate bindings for
      Returns:
      a container to register libraries
    • libraries

      public final void libraries(@NonNull org.gradle.api.Action<@NonNull org.gradle.api.NamedDomainObjectContainer<@NonNull LibraryHandler>> action)
      Configures the libraries Jextract should generate bindings for
      Parameters:
      action - A configuration action that is applied to the libraries container
    • getOutput

      public abstract org.gradle.api.file.DirectoryProperty getOutput()
      specify the directory to place generated files of all libraries by default
      Returns:
      a property
    • getGenerateSourceFiles

      public abstract org.gradle.api.provider.Property<@NonNull Boolean> getGenerateSourceFiles()
      Generate source files instead of class files for all libraries where not set explicitly (Jextract 21 and below) This becomes the convention for all libraries.
      Returns:
      a boolean property
    • getObjects

      @Inject protected abstract org.gradle.api.model.ObjectFactory getObjects()
      Inject an available instance of the object factory service
      Returns:
      The injected service instance