Skip to content

Commit

Permalink
[pinpoint-apm#11745] Apply log4j2 templating to plugin-test module
Browse files Browse the repository at this point in the history
  • Loading branch information
emeroad committed Nov 21, 2024
1 parent 4ff30ff commit 796327f
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
7 changes: 6 additions & 1 deletion agent-module/plugins-test-module/plugins-test/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,11 @@
<filtering>true</filtering>
</resource>
</resources>

<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>templating-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
</project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package com.navercorp.pinpoint.test.plugin;

class Log4j2VersionTemplate {
private Log4j2VersionTemplate() {
}

static final String VERSION = "${log4j2.version}";
}
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public static String[] getGlobMatchesCheckClassPath() {
"slf4j-tinylog"
};

private static final String LOG4J2_VERSION = "2.12.1";
private static final String LOG4J2_VERSION = Log4j2VersionTemplate.VERSION;
private static final String[] LOGGER_DEPENDENCY_ID = new String[]{
"org.apache.logging.log4j:log4j-api:%s",
"org.apache.logging.log4j:log4j-core:%s",
Expand Down

0 comments on commit 796327f

Please sign in to comment.