generated from TBD54566975/tbd-project-template
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: remove Quarkus banner (#2620)
- Loading branch information
1 parent
c633e59
commit 1a8ec26
Showing
2 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
28 changes: 28 additions & 0 deletions
28
...-runtime/common/deployment/src/main/java/xyz/block/ftl/deployment/BannerConfigSource.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,28 @@ | ||
package xyz.block.ftl.deployment; | ||
|
||
import java.util.Set; | ||
|
||
import org.eclipse.microprofile.config.spi.ConfigSource; | ||
|
||
public class BannerConfigSource implements ConfigSource { | ||
|
||
public static final String QUARKUS_BANNER_ENABLED = "quarkus.banner.enabled"; | ||
|
||
@Override | ||
public Set<String> getPropertyNames() { | ||
return Set.of(QUARKUS_BANNER_ENABLED); | ||
} | ||
|
||
@Override | ||
public String getValue(String propertyName) { | ||
if (propertyName.equals(QUARKUS_BANNER_ENABLED)) { | ||
return "false"; | ||
} | ||
return null; | ||
} | ||
|
||
@Override | ||
public String getName() { | ||
return "Quarkus Banner"; | ||
} | ||
} |
1 change: 1 addition & 0 deletions
1
...ent/src/main/resources/META-INF/services/org.eclipse.microprofile.config.spi.ConfigSource
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 @@ | ||
xyz.block.ftl.deployment.BannerConfigSource |