diff --git a/0.9.28-SNAPSHOT/gradle-plugin.html b/0.9.28-SNAPSHOT/gradle-plugin.html index f3eb7f604..acb3aca6a 100644 --- a/0.9.28-SNAPSHOT/gradle-plugin.html +++ b/0.9.28-SNAPSHOT/gradle-plugin.html @@ -470,6 +470,7 @@

Gradle plugin for GraalVM Native Image building

  • Testing support @@ -710,7 +711,46 @@

    Availab

    Native image options

    -

    The NativeImageOptions allows you to tweak how the native image is going to be built.

    +

    The NativeImageOptions allows you to tweak how the native image is going to be built. +The plugin allows configuring the final binary, the tests one, as well as apply options to both.

    +
    +
    +
    +
    graalvmNative {
    +    binaries {
    +        main {
    +            imageName = "my-app"
    +            mainClass = "org.jackup.Runner"
    +            buildArgs.add("-O4")
    +        }
    +        test {
    +            buildArgs.add("-O0")
    +        }
    +    }
    +    binaries.all {
    +        buildArgs.add("--verbose")
    +    }
    +}
    +
    +
    +
    +
    +
    graalvmNative {
    +    binaries {
    +        named("main") {
    +            imageName.set("my-app")
    +            mainClass.set("org.jackup.Runner")
    +            buildArgs.add("-O4")
    +        }
    +        named("test") {
    +            buildArgs.add("-O0")
    +        }
    +    }
    +    binaries.all {
    +        buildArgs.add("--verbose")
    +    }
    +}
    +
    @@ -1058,6 +1098,38 @@

    Testing s

    +

    Configuring test image options

    +
    +

    You can fine-tune the test binary using the test binary configuration. +The following example prints additional data for troubleshooting and sets the minimal optimizations.

    +
    +
    +
    +
    graalvmNative {
    +    binaries {
    +        test {
    +            buildArgs.addAll('--verbose', '-O0')
    +        }
    +    }
    +}
    +
    +
    +
    +
    +
    graalvmNative {
    +    binaries {
    +        named("main") {
    +            mainClass.set("org.test.Main")
    +        }
    +        named("test") {
    +            buildArgs.addAll("--verbose", "-O0")
    +        }
    +    }
    +}
    +
    +
    +
    +

    Disabling testing support

    There are cases where you might want to disable native testing support:

    diff --git a/0.9.28-SNAPSHOT/javadocs/native-gradle-plugin/member-search-index.zip b/0.9.28-SNAPSHOT/javadocs/native-gradle-plugin/member-search-index.zip index 20e2552cc..b7d02f046 100644 Binary files a/0.9.28-SNAPSHOT/javadocs/native-gradle-plugin/member-search-index.zip and b/0.9.28-SNAPSHOT/javadocs/native-gradle-plugin/member-search-index.zip differ diff --git a/0.9.28-SNAPSHOT/javadocs/native-gradle-plugin/package-search-index.zip b/0.9.28-SNAPSHOT/javadocs/native-gradle-plugin/package-search-index.zip index e6da69fe7..f1cb2961c 100644 Binary files a/0.9.28-SNAPSHOT/javadocs/native-gradle-plugin/package-search-index.zip and b/0.9.28-SNAPSHOT/javadocs/native-gradle-plugin/package-search-index.zip differ diff --git a/0.9.28-SNAPSHOT/javadocs/native-gradle-plugin/type-search-index.zip b/0.9.28-SNAPSHOT/javadocs/native-gradle-plugin/type-search-index.zip index 7cf09186b..ce6293600 100644 Binary files a/0.9.28-SNAPSHOT/javadocs/native-gradle-plugin/type-search-index.zip and b/0.9.28-SNAPSHOT/javadocs/native-gradle-plugin/type-search-index.zip differ diff --git a/0.9.28-SNAPSHOT/javadocs/native-maven-plugin/member-search-index.zip b/0.9.28-SNAPSHOT/javadocs/native-maven-plugin/member-search-index.zip index fdc21ebfc..9fab1bcf2 100644 Binary files a/0.9.28-SNAPSHOT/javadocs/native-maven-plugin/member-search-index.zip and b/0.9.28-SNAPSHOT/javadocs/native-maven-plugin/member-search-index.zip differ diff --git a/0.9.28-SNAPSHOT/javadocs/native-maven-plugin/package-search-index.zip b/0.9.28-SNAPSHOT/javadocs/native-maven-plugin/package-search-index.zip index d1e936469..cc42ccc42 100644 Binary files a/0.9.28-SNAPSHOT/javadocs/native-maven-plugin/package-search-index.zip and b/0.9.28-SNAPSHOT/javadocs/native-maven-plugin/package-search-index.zip differ diff --git a/0.9.28-SNAPSHOT/javadocs/native-maven-plugin/type-search-index.zip b/0.9.28-SNAPSHOT/javadocs/native-maven-plugin/type-search-index.zip index e5f8369fc..3e8985f80 100644 Binary files a/0.9.28-SNAPSHOT/javadocs/native-maven-plugin/type-search-index.zip and b/0.9.28-SNAPSHOT/javadocs/native-maven-plugin/type-search-index.zip differ