I am new to Gradle, so please excuse me if this question seems naive or simple.
My eclipse project exists and works well, and I want to add Logback for my logging. It's easy enough to get the dependencies installed in the build.gradle file ...
dependencies {
groovy group: 'org.codehaus.groovy', name: 'groovy', version: '1.8.3'
compile 'org.slf4j:slf4j-api:1.6.4'
compile 'ch.qos.logback:logback-core:1.0.3'
compile 'ch.qos.logback:logback-classic:1.0.3'
}
... and this allows my build to succeed, but how can I get it to update the Related Libraries section of my eclipse project? In other words, can I get gradle to update eclipse.classpath by adding the appropriate entries for any new libraries that have been contributed through the gradle dependencies?
As of now, I have to find out where in ~ / .gradle dependencies become JAR files, and manually create reference libraries to point to them. SK. There must be a way to automate this.
source
share