Skip to content

Commit

Permalink
[#11745] Replace groovy-maven-plugin with templating-maven-plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
emeroad committed Nov 20, 2024
1 parent 0acb8e7 commit 284194c
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 284194c

Please sign in to comment.