batrac
1
I’m trying to get some existing Gradle 4.5 config running against Gradle 3.1, and I’m kind of baffled how to rewrite this:
modules {
module("org.springframework.boot:spring-boot-starter-logging") {
replacedBy("org.springframework.boot:spring-boot-starter-log4j2", "Use Log4j2 instead of Logback")
}
}
I apologize for the total noob question, but I genuinely have no idea how to proceed, and searches have been unfruitful. Thank you in advance!
Vampire
(Björn Kautler)
2
To begin with, maybe you should not try to switch from a 7 year old version to a 9 year old version, but instead use newer versions instead. 
But besides that, if you remove the second argument it will probably work, as only the method with two parameters was added in 4.5:
1 Like
batrac
3
Circumstances dictated that I deal with two ancient build environments. Believe me, I’d rather have done just about anything else, but there I was.
Thank you for the pointers! I did manage to get it working, and hopefully this will never come up again.
1 Like