I am using a custom gradle plugin for Velocity 1.7 that is working without a problem in Gradle 1.2 and 1.3. Starting with 1.4-rc-1 I am getting:
Caused by: java.lang.NoSuchMethodError: org.apache.log4j.PatternLayout.(Ljava/lang/String;)V
at org.apache.velocity.runtime.log.Log4JLogChute.initAppender(Log4JLogChute.java:117)
at org.apache.velocity.runtime.log.Log4JLogChute.init(Log4JLogChute.java:85)
at org.apache.velocity.runtime.log.LogManager.createLogChute(LogManager.java:157)
at org.apache.velocity.runtime.log.LogManager.updateLog(LogManager.java:269)
at org.apache.velocity.runtime.RuntimeInstance.initializeLog(RuntimeInstance.java:871)
at org.apache.velocity.runtime.RuntimeInstance.init(RuntimeInstance.java:262)
at org.apache.velocity.runtime.RuntimeSingleton.init(RuntimeSingleton.java:112)
at org.apache.velocity.app.Velocity.init(Velocity.java:74)
at org.apache.velocity.app.Velocity$init.call(Unknown Source) … Even if I explicitly add the log4j jar to the buildscript section in my build file that initializes the custom plugin I get this error.
Thanks!