Skip to content

Commit

Permalink
[pinpoint-apm#11745] Replace groovy-maven-plugin with templating-mave…
Browse files Browse the repository at this point in the history
…n-plugin
  • Loading branch information
emeroad committed Nov 20, 2024
1 parent 0acb8e7 commit a16cc6e
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 42 deletions.
35 changes: 0 additions & 35 deletions commons/VersionScript.groovy

This file was deleted.

13 changes: 7 additions & 6 deletions commons/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,17 +38,18 @@
<build>
<plugins>
<plugin>
<groupId>org.codehaus.gmaven</groupId>
<artifactId>groovy-maven-plugin</artifactId>
<version>2.1.1</version>
<groupId>org.codehaus.mojo</groupId>
<artifactId>templating-maven-plugin</artifactId>
<version>3.0.0</version>
<executions>
<execution>
<phase>generate-sources</phase>
<id>filter-src</id>
<goals>
<goal>execute</goal>
<goal>filter-sources</goal>
</goals>
<configuration>
<source>${project.basedir}/VersionScript.groovy</source>
<sourceDirectory>${basedir}/src/main/java-templates</sourceDirectory>
<outputDirectory>${project.build.directory}/generated-sources/java-templates</outputDirectory>
</configuration>
</execution>
</executions>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package com.navercorp.pinpoint.common;
public final class VersionTemplate {
static final String VERSION_TEMPLATE = "${project.version}";
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.navercorp.pinpoint.common;
public final class Version {
public static final String VERSION = "3.1.0-SNAPSHOT";
public static final String VERSION = VersionTemplate.VERSION_TEMPLATE;
}

0 comments on commit a16cc6e

Please sign in to comment.