Class JextractExtension
java.lang.Object
de.infolektuell.gradle.jextract.extensions.JextractExtension
The dSL extension to configure the jextract plugin
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe name that is used to register the extension -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract org.gradle.api.file.RegularFilePropertyAPropertiesfile containing the remote locations where to download the Jextract distributionsabstract 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.abstract InstallationHandlerConfiguration of a Jextract installation to be used by the pluginfinal org.gradle.api.NamedDomainObjectContainer<@NonNull LibraryHandler> The libraries Jextract should generate bindings forprotected abstract org.gradle.api.model.ObjectFactoryInject an available instance of the object factory serviceabstract org.gradle.api.file.DirectoryPropertyspecify the directory to place generated files of all libraries by defaultfinal voidlibraries(@NonNull org.gradle.api.Action<@NonNull org.gradle.api.NamedDomainObjectContainer<@NonNull LibraryHandler>> action) Configures the libraries Jextract should generate bindings for
-
Field Details
-
EXTENSION_NAME
-
-
Constructor Details
-
JextractExtension
public JextractExtension()Used by Gradle
-
-
Method Details
-
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()APropertiesfile containing the remote locations where to download the Jextract distributions- Returns:
- a property
-
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
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
-