Quantcast
Channel: Gradle Forums - Latest posts
Viewing all articles
Browse latest Browse all 19854

Adding a library to .classpath file in Eclipse

$
0
0

Not sure how to declare the lib entry in the gradle classpath container - how to do that?. Using the link you referenced, I tried the below. I could see, using println statements, that the library was added to entries but there was no affect on the .classpath file (the ‘lib’ entry did not go in there even though it was in the ‘entries’ object).

import org.gradle.plugins.ide.eclipse.model.Library
apply plugin: ‘eclipse’

eclipse {
classpath {
file {
whenMerged {
entries += new Library(fileReference(file(’/conductor- grpc/build/classes/java/main’)))
}
}
}
}


Viewing all articles
Browse latest Browse all 19854

Trending Articles