wumo / gradle-graalvm-plugin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Release

This plugin eases the use of graalvm.

Inspired by org.mikeneck.graalvm-native-image

Usage

Make sure you have installed native compilation toolchain such as gcc or Visual Studio 2019 (or above)

Enable plugin com.github.wumo.graalvm in your build.gradle.kts:

import org.bytedeco.javacpp.tools.Info

plugins {
  id("com.github.wumo.graalvm") version "0.0.1"
}

graalvm {
  graalvmHome = System.getenv("GRAALVM_HOME")
    mainClassName = "com.github.wumo.MainKt"
    arguments = listOf(
      "--no-fallback",
      "--enable-all-security-services",
      "--report-unsupported-elements-at-runtime",
      "--allow-incomplete-classpath"
    )
}

About

License:MIT License


Languages

Language:Kotlin 100.0%