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