Skip to content

Commit c618757

Browse files
committed
fix(native): include build.properties in native image via resource-config.json
The unified reachability-metadata.json resources globs are not reliably processed by GraalVM 21 native-image when scanning classpath JARs. Replace with a classic resource-config.json at the recommended META-INF/native-image/{groupId}/{artifactId}/ path, which native-image has always picked up automatically. Fixes version showing as 'dev' in the native binary --help banner.
1 parent dffb0b7 commit c618757

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"resources": {
3+
"includes": [
4+
{"pattern": "\\Qbuild.properties\\E"}
5+
]
6+
}
7+
}

src/main/resources/META-INF/native-image/reachability-metadata.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
{"glob": "META-INF/services/io.modelcontextprotocol.json.schema.JsonSchemaValidatorSupplier"},
2222
{"glob": "META-INF/services/org.slf4j.spi.SLF4JServiceProvider"},
2323
{"glob": "META-INF/services/ch.qos.logback.classic.spi.Configurator"},
24-
{"glob": "logback.xml"},
25-
{"glob": "build.properties"}
24+
{"glob": "logback.xml"}
2625
]
2726
}

0 commit comments

Comments
 (0)