55 lines
1.7 KiB
Diff
55 lines
1.7 KiB
Diff
From b54789188f2a61b5d58ff53986a5efe042d84fdf Mon Sep 17 00:00:00 2001
|
|
From: Michael Simacek <msimacek@redhat.com>
|
|
Date: Tue, 18 Apr 2017 16:51:34 +0200
|
|
Subject: [PATCH 3/4] Replace groovy invocation with antrun
|
|
|
|
---
|
|
maven-slf4j-provider/pom.xml | 23 ++++++++++++++---------
|
|
1 file changed, 14 insertions(+), 9 deletions(-)
|
|
|
|
diff --git a/maven-slf4j-provider/pom.xml b/maven-slf4j-provider/pom.xml
|
|
index 363e00d..9be251b 100644
|
|
--- a/maven-slf4j-provider/pom.xml
|
|
+++ b/maven-slf4j-provider/pom.xml
|
|
@@ -95,22 +95,27 @@ under the License.
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
- <groupId>org.codehaus.gmaven</groupId>
|
|
- <artifactId>groovy-maven-plugin</artifactId>
|
|
- <version>2.0</version>
|
|
+ <groupId>org.apache.maven.plugins</groupId>
|
|
+ <artifactId>maven-antrun-plugin</artifactId>
|
|
+ <version>1.8</version>
|
|
<executions>
|
|
<execution>
|
|
- <id>patch-slf4j-simple</id>
|
|
<phase>process-sources</phase>
|
|
- <goals>
|
|
- <goal>execute</goal>
|
|
- </goals>
|
|
<configuration>
|
|
- <source>${project.basedir}/src/main/script/patch-slf4j-simple.groovy</source>
|
|
+ <target>
|
|
+ <replace
|
|
+ file="${project.build.directory}/generated-sources/slf4j-simple/org/slf4j/impl/StaticLoggerBinder.java"
|
|
+ token="\\bSimpleLoggerFactory\\b"
|
|
+ value="MavenSimpleLoggerFactory"
|
|
+ />
|
|
+ </target>
|
|
</configuration>
|
|
+ <goals>
|
|
+ <goal>run</goal>
|
|
+ </goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
-</project>
|
|
\ No newline at end of file
|
|
+</project>
|
|
--
|
|
2.9.4
|
|
|