scalameta / sbt-native-image

Plugin to generate native-image binaries with sbt
251 stars 22 forks source link

Unused Keys Warning But The Versions and NativeImage JVM Defined Are Followed #21

Open sshark opened 3 years ago

sshark commented 3 years ago

Warnings are seen after SBT is started

[warn] there are 2 keys that are not used by any other settings/tasks:                             
[warn] * root / nativeImageJvm
[warn]   +- /project/foo/build.sbt:31
[warn] * root / nativeImageVersion
[warn]   +- /project/foo/build.sbt:30                     

when nativeImageJvm and nativeImageVersion are defined in project settings i.e.

    .settings(
      name = "foo-bar",
      nativeImageVersion := "20.3.0",
      nativeImageJvm := "graalvm-ce-11",
      ...)

To Reproduce Steps to reproduce the behavior:

    1. Run sbt with these properties defiend

Expected behavior

No warning or how to disable these warnings

Installation:

Additional context

SBT v1.4.1 and sbt-native-image v0.2.2