-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Allow extensions to suppress build time config change warnings
- Loading branch information
Showing
3 changed files
with
52 additions
and
6 deletions.
There are no files selected for viewing
23 changes: 23 additions & 0 deletions
23
...java/io/quarkus/deployment/builditem/SuppressNonRuntimeConfigChangedWarningBuildItem.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,23 @@ | ||
package io.quarkus.deployment.builditem; | ||
|
||
import io.quarkus.builder.item.MultiBuildItem; | ||
|
||
/** | ||
* Allows extensions to suppress the runtime warning that Quarkus emits on startup when a non-runtime configuration | ||
* options is different at runtime than build time. | ||
* An example usage of this is when a user provides some test value in {@code application.properties} | ||
* for a build-time only property and only provides the actual value on the command line when building Quarkus. | ||
* In such a case we don't want the value set at build time to be revealed at runtime as it could be sensitive. | ||
*/ | ||
public final class SuppressNonRuntimeConfigChangedWarningBuildItem extends MultiBuildItem { | ||
|
||
private final String configKey; | ||
|
||
public SuppressNonRuntimeConfigChangedWarningBuildItem(String configKey) { | ||
this.configKey = configKey; | ||
} | ||
|
||
public String getConfigKey() { | ||
return configKey; | ||
} | ||
} |
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