Skip to content

Commit

Permalink
🔧 add version information to configuration
Browse files Browse the repository at this point in the history
Signed-off-by: Marcus Fihlon <[email protected]>
  • Loading branch information
McPringle committed Mar 29, 2024
1 parent 08a1931 commit a80247c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/main/java/swiss/fihlon/apus/configuration/Configuration.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,24 @@
@SuppressWarnings("checkstyle:DesignForExtension") // Spring configurations can be subclassed by the Spring Framework
public class Configuration {

/**
* Version information of Apus.
*/
private String version;

/**
* Mastodon configuration.
*/
private Mastodon mastodon;

public String getVersion() {
return version;
}

public void setVersion(@NotNull final String version) {
this.version = version;
}

public Mastodon getMastodon() {
return mastodon;
}
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ vaadin.launch-browser=false
# Disabling the Pre-Compiled Bundle
vaadin.frontend.hotdeploy=true

apus.version=@project.version@
apus.mastodon.hashtag=${MASTODON_HASHTAG:java}

0 comments on commit a80247c

Please sign in to comment.