I've been using com.google.guava 19 for a while now for property substitution.
I have maven pom profiles
<profiles>
<profile>
<id>dev</id>
<properties>
<environment>dev</environment>
...
with below pom details
<!-- Add configuration for property substitution -->
<build>
<testOutputDirectory>${basedir}/target/classes</testOutputDirectory>
<filters>
<filter>src/main/resources/config.properties</filter>
</filters>
<resources>
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
</resource>
</resources>
</build>
That replaces environment=${environment} in the config file with the profile property.
How can I do this in the later versions or is there a lighter way of doing this without using spring?
It seems that guava 30.0-jre reintroduces these capabilities and no other changes are required.