From 1390c2b59fe82c4b0f76b18782e9ed28b82a71e8 Mon Sep 17 00:00:00 2001 From: Mikolaj Izdebski Date: Fri, 18 Nov 2016 08:51:46 +0100 Subject: [PATCH] Use exec-maven-plugin instead of groovy-maven-plugin --- maven-slf4j-provider/pom.xml | 20 ++++++++++++-------- .../src/main/script/patch-slf4j-simple.groovy | 2 +- 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/maven-slf4j-provider/pom.xml b/maven-slf4j-provider/pom.xml index ecb93e8..039b332 100644 --- a/maven-slf4j-provider/pom.xml +++ b/maven-slf4j-provider/pom.xml @@ -95,22 +95,26 @@ under the License. - org.codehaus.gmaven - groovy-maven-plugin - 2.0 + org.codehaus.mojo + exec-maven-plugin + 1.5.0 patch-slf4j-simple process-sources - execute + exec - - ${project.basedir}/src/main/script/patch-slf4j-simple.groovy - + + groovy + ${project.basedir} + + src/main/script/patch-slf4j-simple.groovy + + - \ No newline at end of file + diff --git a/maven-slf4j-provider/src/main/script/patch-slf4j-simple.groovy b/maven-slf4j-provider/src/main/script/patch-slf4j-simple.groovy index bba8646..a6ad10b 100644 --- a/maven-slf4j-provider/src/main/script/patch-slf4j-simple.groovy +++ b/maven-slf4j-provider/src/main/script/patch-slf4j-simple.groovy @@ -18,7 +18,7 @@ * under the License. */ -dir = new File( basedir, 'target/generated-sources/slf4j-simple/org/slf4j/impl' ); +dir = new File( '.', 'target/generated-sources/slf4j-simple/org/slf4j/impl' ); file = new File( dir, 'StaticLoggerBinder.java' ); content = file.text; -- 2.7.4