Skip to content

Commit

Permalink
Upgrade string-template-maven-plugin.
Browse files Browse the repository at this point in the history
  • Loading branch information
io7m committed Sep 20, 2024
1 parent a18c046 commit a95f78f
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 15 deletions.
51 changes: 37 additions & 14 deletions com.io7m.medrina.cmdline/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -99,22 +99,45 @@
<id>generate-version</id>
<phase>generate-sources</phase>
<goals>
<goal>render</goal>
<goal>renderTemplate</goal>
</goals>
<configuration>
<templates>
<template>
<directory>src/main/string-template</directory>
<name>MVersion</name>
<target>
${project.build.directory}/generated-sources/string-template/com/io7m/medrina/cmdline/internal/MVersion.java
</target>
<properties>
<appVersion>${project.version}</appVersion>
<appBuild>${buildNumber}</appBuild>
</properties>
</template>
</templates>
<template>
<name>MVersion</name>
<inputFile>
${project.basedir}/src/main/string-template/MVersion.st
</inputFile>
<outputFile>
${project.build.directory}/generated-sources/string-template/com/io7m/medrina/cmdline/internal/MVersion.java
</outputFile>
<properties>
<appVersion>${project.version}</appVersion>
<appBuild>${buildNumber}</appBuild>
</properties>
</template>
</configuration>
</execution>
</executions>
</plugin>

<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<executions>
<execution>
<id>add-sources</id>
<goals>
<goal>add-source</goal>
</goals>
<phase>
generate-sources
</phase>
<configuration>
<sources>
<source>
${project.build.directory}/generated-sources/string-template
</source>
</sources>
</configuration>
</execution>
</executions>
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@
<plugin>
<groupId>com.io7m.stmp</groupId>
<artifactId>string-template-maven-plugin</artifactId>
<version>1.2.0</version>
<version>2.0.0</version>
</plugin>

<!-- Generate a site -->
Expand Down

0 comments on commit a95f78f

Please sign in to comment.