-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #39604 from radcortez/local-config-sources-record-…
…defaults Do not record local sources in runtime config defaults.
- Loading branch information
Showing
13 changed files
with
110 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 0 additions & 2 deletions
2
...ed/projects/build-mode-quarkus-profile-override/src/main/resources/application.properties
This file was deleted.
Oops, something went wrong.
7 changes: 1 addition & 6 deletions
7
...red/projects/build-mode-quarkus-profile-property/src/main/java/org/acme/HelloService.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,13 @@ | ||
package org.acme; | ||
|
||
import io.quarkus.arc.profile.IfBuildProfile; | ||
import org.eclipse.microprofile.config.inject.ConfigProperty; | ||
|
||
import jakarta.enterprise.context.ApplicationScoped; | ||
|
||
@IfBuildProfile("foo") | ||
@ApplicationScoped | ||
public class HelloService { | ||
|
||
@ConfigProperty(name = "name") | ||
String name; | ||
|
||
public String name() { | ||
return name; | ||
return "from foo"; | ||
} | ||
} |
2 changes: 0 additions & 2 deletions
2
...ed/projects/build-mode-quarkus-profile-property/src/main/resources/application.properties
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
...on/runtime/src/main/java/io/quarkus/extest/runtime/config/DoNotRecordEnvConfigSource.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package io.quarkus.extest.runtime.config; | ||
|
||
import java.util.Map; | ||
|
||
import io.quarkus.runtime.annotations.StaticInitSafe; | ||
import io.smallrye.config.EnvConfigSource; | ||
|
||
@StaticInitSafe | ||
public class DoNotRecordEnvConfigSource extends EnvConfigSource { | ||
public DoNotRecordEnvConfigSource() { | ||
super(Map.of( | ||
"SHOULD_NOT_BE_RECORDED", "value", | ||
"should.not.be.recorded", "value", | ||
"quarkus.rt.do-not-record", "value", | ||
"quarkus.mapping.rt.do-not-record", "value", | ||
"%dev.quarkus.mapping.rt.do-not-record", "dev", | ||
"_PROD_QUARKUS_MAPPING_RT_DO_NOT_RECORD", "prod"), 300); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 0 additions & 18 deletions
18
...main/java/io/quarkus/extest/runtime/config/RecordQuarkusSystemPropertiesConfigSource.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters