mike-neck / graalvm-native-image-plugin

A Gradle plugin which creates a native executable via GraalVM's native-image. This is a thin wrapper of the native-image command.
Apache License 2.0
89 stars 14 forks source link

Fix `Gradle Kotlin DSL` part of README #153

Closed tammoippen closed 3 years ago

tammoippen commented 3 years ago

As a separate issue: if I leave mainClass from my kotlin build I get the following error:

> Task :generateNativeImageConfig FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Some problems were found with the configuration of task ':generateNativeImageConfig' (type 'DefaultGenerateNativeImageConfigTask').
  - Type 'org.mikeneck.graalvm.DefaultGenerateNativeImageConfigTask' property 'javaExecutions.$0.mainClass' doesn't have a configured value.

    Reason: This property isn't marked as optional and no value has been configured.

    Possible solutions:
      1. Assign a value to 'javaExecutions.$0.mainClass'.
      2. Mark property 'javaExecutions.$0.mainClass' as optional.

    Please refer to https://docs.gradle.org/7.0.2/userguide/validation_problems.html#value_not_set for more details about this problem.
...
tammoippen commented 3 years ago

Here is the project, just in case: https://github.com/tammoippen/xls2json

mike-neck commented 3 years ago

Thanks for your PR.