Class SourceSetExtension
java.lang.Object
de.infolektuell.gradle.jextract.extensions.SourceSetExtension
Configures a source Set to include libraries generated by Jextract
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe name of this extension how it is accessible from build.gradle or build.gradle.kts -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal org.gradle.api.NamedDomainObjectSet<@NonNull LibraryHandler> Libraries that were defined in the jextract extension.protected abstract org.gradle.api.model.ObjectFactoryInject an available instance of the object factory servicefinal voidlibraries(org.gradle.api.Action<@NonNull org.gradle.api.NamedDomainObjectSet<@NonNull LibraryHandler>> action) Configures the libraries that were defined in the jextract extension.
-
Field Details
-
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
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
-