GoodforGod / graalvm-hint

🧰 Generates GraalVM configuration hints for native-image applications.
http://goodforgod.dev/graalvm-hint/
Apache License 2.0
35 stars 4 forks source link

@ResourceHint is not up-to-date #5

Closed GoodforGod closed 2 years ago

GoodforGod commented 2 years ago

Describe the bug Currently generating like:

{
  "resources": [
    { "pattern" : "application.yml" },
    { "pattern" : "simplelogger.properties" }
  ]
}

But in [documentation]() is like:

{
  "resources": {
    "includes": [
      {"pattern": "<Java regexp that matches resource(s) to be included in the image>"},
      {"pattern": "<another regexp>"},
      ...
    ],
    "excludes": [
      {"pattern": "<Java regexp that matches resource(s) to be excluded from the image>"},
      {"pattern": "<another regexp>"},
      ...
    ]
  }
}

Expected behavior A clear and concise description of what you expected to happen.

{
  "resources": {
    "includes": [
      {"pattern": "<Java regexp that matches resource(s) to be included in the image>"},
      {"pattern": "<another regexp>"},
      ...
    ],
    "excludes": [
      {"pattern": "<Java regexp that matches resource(s) to be excluded from the image>"},
      {"pattern": "<another regexp>"},
      ...
    ]
  }
}

Also add bundle options support. This will be breaking change.