Skip to content

0.9.5

Choose a tag to compare

@melix melix released this 08 Sep 13:08
· 785 commits to master since this release
bb634a4

Release highlights

This release is a major milestone towards 1.0 as it revamps the Gradle DSL and performs some renaming aimed at reducing confusion.

This preparation work is also needed to support more features in the future, in particular multiple test images, and to make it easier for other Gradle plugins to integrate with this plugin.

There are no changes to the Maven plugin in this release.

Full documentation for this version: https://graalvm.github.io/native-build-tools/0.9.5/index.html

Changes in the Gradle plugin DSL are the following:

  • The nativeBuild and nativeTest extensions are now deprecated. A top-level container for configuring native images has been introduced. Instead of:
nativeBuild {
   verbose = true
}

you need to use:

graalvmNative {
  binaries {
    main {
      verbose = true
    }
  }
}

and instead of:

nativeTest {
    buildArgs("...")
}

you need to use:

graalvmNative {
  binaries {
    test {
      buildArgs("...")
    }
  }
}
  • The nativeBuild task has been renamed to nativeCompile.
  • The nativeTestBuild task has been renamed to nativeTestCompile.

Both nativeBuild and nativeTestBuild task invocations are still supported but deprecated and will be removed in a future release.