We are using Buildship’s plugin in Eclipse. We are using a protobuf compiler as part of the build that generates .class files from .proto files. The build works fine from the command line (it adds the directory containing the generated class files to the classpath) and everything builds and executes.
When doing a Gradle/Refresh Gradle Project in Eclipse, it regenerates the .classpath file without including that directory as a lib.
I have seen countless posts describing how to add a library in the build.gradle file but no matter what I try it doesn’t work. It is simple to add a ‘container’ classpath entry, but seems to be very difficult to add a ‘lib’ classpath entry. It baffles me.
Can someone please describe the steps that I need to take to add this to the .classpath file?
<classpathentry kind="lib" path="/conductor-grpc/build/classes/java/main"/>
I am using Eclipse Neon 4.6.2 with Buildship plugin 3.1.0.