mirror of
https://github.com/jlengrand/quarkus.git
synced 2026-03-10 08:41:22 +00:00
Make application version and name available as runtime properties
Fixes: #6255 Co-authored-by: Guillaume Smet <guillaume.smet@gmail.com>
This commit is contained in:
@@ -490,7 +490,13 @@ public class DevMojo extends AbstractMojo {
|
||||
for (Map.Entry<Object, Object> e : System.getProperties().entrySet()) {
|
||||
devModeContext.getSystemProperties().put(e.getKey().toString(), (String) e.getValue());
|
||||
}
|
||||
|
||||
devModeContext.getBuildSystemProperties().putAll((Map) project.getProperties());
|
||||
|
||||
// this is a minor hack to allow ApplicationConfig to be populated with defaults
|
||||
devModeContext.getBuildSystemProperties().putIfAbsent("quarkus.application.name", project.getArtifactId());
|
||||
devModeContext.getBuildSystemProperties().putIfAbsent("quarkus.application.version", project.getVersion());
|
||||
|
||||
devModeContext.setSourceEncoding(getSourceEncoding());
|
||||
devModeContext.setSourceJavaVersion(source);
|
||||
devModeContext.setTargetJvmVersion(target);
|
||||
|
||||
Reference in New Issue
Block a user