I placed the output of protoc in a JAR and I want to use that JAR in my project. I added these lines to my build.gradle:
sourceSets {
main {
java {
srcDir 'src/main/java'
srcDir 'src/main/resources/libs'
}
}
}
dependencies {
compile files('src/main/resources/libs/bf-proto-api.jar')
}
When I try to use the generated class, the project doesn't compile. It says that my generated code (which is in src/main/resources/libs/bf-proto-api.jar) doesn't exist. Although IDEA does see src/main/resources/libs as a source directory, it provides no autocomplete.