Class SourceSetExtension

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

public abstract class SourceSetExtension extends Object
Configures a source Set to include libraries generated by Jextract
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    The name of this extension how it is accessible from build.gradle or build.gradle.kts
  • Constructor Summary

    Constructors
    Constructor
    Description
    Used by Gradle
  • Method Summary

    Modifier and Type
    Method
    Description
    final org.gradle.api.NamedDomainObjectSet<@NonNull LibraryHandler>
    Libraries that were defined in the jextract extension.
    protected abstract org.gradle.api.model.ObjectFactory
    Inject an available instance of the object factory service
    final void
    libraries(org.gradle.api.Action<@NonNull org.gradle.api.NamedDomainObjectSet<@NonNull LibraryHandler>> action)
    Configures the libraries that were defined in the jextract extension.

    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 of this extension how it is accessible from build.gradle or build.gradle.kts
      See Also:
  • Constructor Details

    • SourceSetExtension

      public SourceSetExtension()
      Used by Gradle
  • Method Details

    • getLibraries

      public final org.gradle.api.NamedDomainObjectSet<@NonNull LibraryHandler> getLibraries()
      Libraries that were defined in the jextract extension. Their generated source and class outputs will be added to the source set.
      Returns:
      A set that contains the libraries to be added to a certain source set.
    • libraries

      public final void libraries(org.gradle.api.Action<@NonNull org.gradle.api.NamedDomainObjectSet<@NonNull LibraryHandler>> action)
      Configures the libraries that were defined in the jextract extension. Their generated source and class outputs will be added to the source set.
      Parameters:
      action - An action that is applied to the libraries set
    • getObjects

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