Skip to content

Using a Local Jextract Installation

Setting the Gradle property org.openjdk.jextract.installation-path to a directory path tells the plugin to use a local Jextract version. This can be useful to avoid network requests or for specific development/testing scenarios.

Configuring a local Jextract installation via Gradle property
# gradle.properties
org.openjdk.jextract.installation-path=/usr/local/opt/jextract-22/

Alternately, a local installation directory can be configured in the dSL extension.

Configuring a local Jextract installation via dSL
// build.gradle.kts
jextract {
installation.location = layout.projectDirectory.dir("/home/user/bin/jextract-25/")
}