Skip to content

Commit

Permalink
log application version
Browse files Browse the repository at this point in the history
  • Loading branch information
valasatava committed Jan 16, 2025
1 parent a75c7ac commit 08cd917
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
10 changes: 8 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
<guava.version>32.0.0-android</guava.version>
<rcsb.common.version>2.7.4</rcsb.common.version>
<rcsb.idmapper.client.version>0.0.10</rcsb.idmapper.client.version>
<rcsb.mojave.model.version>1.47.1</rcsb.mojave.model.version>
<undertow.version>2.3.13.Final</undertow.version>
<rcsb.mojave.model.version>1.48.0</rcsb.mojave.model.version>
<undertow.version>2.3.18.Final</undertow.version>
<rsocket.version>1.1.4</rsocket.version>
<gson.version>2.10.1</gson.version>
<jib.version>3.3.1</jib.version>
Expand Down Expand Up @@ -138,6 +138,12 @@
</dependencies>

<build>
<resources>
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
</resource>
</resources>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
Expand Down
7 changes: 6 additions & 1 deletion src/main/java/org/rcsb/idmapper/IdMapperServer.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@
import org.slf4j.LoggerFactory;

import java.util.Objects;
import java.util.Properties;
import java.util.concurrent.CompletableFuture;

public class IdMapperServer {

private static final Logger LOGGER = LoggerFactory.getLogger(IdMapperServer.class);


public static final String TRANSLATE = "/translate";
public static final String GROUP = "/group";
public static final String ALL = "/all";
Expand All @@ -37,6 +37,11 @@ public static void main(String[] args) {
var rsocket = new RSocketFrontendImpl<>(backend, AppConfigs.DEFAULT_RSOCKET_PORT, mapper);

try {

final Properties properties = new Properties();
properties.load(IdMapperServer.class.getClassLoader().getResourceAsStream("project.properties"));
LOGGER.info("==> Application version is {}", properties.get("version"));

backend.initialize();
undertow.initialize();
rsocket.initialize();
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/project.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
version=${project.version}

0 comments on commit 08cd917

Please sign in to comment.