Skip to content

Commit

Permalink
Register default configuration smallrye configuration files as resources
Browse files Browse the repository at this point in the history
  • Loading branch information
zakkak committed Nov 22, 2024
1 parent 296ffde commit 289c24c
Showing 1 changed file with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
package io.quarkus.deployment;

import io.quarkus.deployment.annotations.BuildStep;
import io.quarkus.deployment.builditem.nativeimage.NativeImageResourceBuildItem;

public class SmallRyeConfigProcessor {

@BuildStep
NativeImageResourceBuildItem registerResources() {
// Accessed by SmallRye Config to load the default configuration
return new NativeImageResourceBuildItem("application.properties", "META-INF/microprofile-config.properties");
}

}

0 comments on commit 289c24c

Please sign in to comment.