Skip to content

Commit

Permalink
Merge pull request #19 from Mitsugaru/master
Browse files Browse the repository at this point in the history
Use Maven resource filtering for common variables in YAML files.
  • Loading branch information
PatPeter committed Jan 15, 2014
2 parents d40a3b5 + 110d2c4 commit b6ca4f6
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 5 deletions.
13 changes: 12 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,17 @@
</dependencies>

<build>
<resources>
<resource>
<includes>
<include>config.yml</include>
<include>plugin.yml</include>
<include>properties.yml</include>
</includes>
<filtering>true</filtering>
<directory>${basedir}/src/main/resources</directory>
</resource>
</resources>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
Expand Down Expand Up @@ -99,4 +110,4 @@
</plugin>
</plugins>
</build>
</project>
</project>
4 changes: 2 additions & 2 deletions src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: SQLibrary
version: 7.1
name: ${project.artifactId}
version: ${project.version}
description: A facade similar to Vault that abstracts the coder from the JDBC and each database driver's implementation.
author: PatPeter
main: lib.PatPeter.SQLibrary.SQLibrary
4 changes: 2 additions & 2 deletions src/main/resources/properties.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: SQLibrary
version: 7.1
name: ${project.artifactId}
version: ${project.version}
description: A facade similar to Vault that abstracts the coder from the JDBC and each database driver's implementation.
author: PatPeter
platform: server
Expand Down

0 comments on commit b6ca4f6

Please sign in to comment.