google / google/protobuf-gradle-plugin
Plugin not compiling java code after migration from 0.8.19 -> 0.9.0
- Dominant language
- Groovy
- Stars
- 1.8k
- Forks
- 288
- PR merge metrics
- No merged PRs in 30d
Description
Hello, I have an android project I'm trying to migrate. I updated the version of protobuf-gradle-plugin from 0.8.19 to 0.9.0 and now nothing is being generated by the plugin. I've tried several things but couldn't figure out what I'm doing wrong. I can confirm everything works with 0.8.19 but not with 0.9.0.
I'm not seeing any errors, just no `generated` folder in the build output and a jar file that only contains the input proto file.
Here's my build.gradle file for the project:
```
apply plugin: 'kotlin'
apply plugin: 'com.google.protobuf'
protobuf {
protoc {
artifact = "com.google.protobuf:protoc:3.14.0"
}
generateProtoTasks {
all().each { task ->
task.builtins {
java {
option "lite"
}
}
}
}
}
sourceSets {
main {
java {
srcDirs += file("${protobuf.generatedFilesBaseDir}/main/javalite")
}
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
implementation "com.google.protobuf:protobuf-javalite:3.14.0"
}
```
This is my folder structure:
```
│ build.gradle
│
│
└───src
└───main
└───proto
game.proto
```
Contributor guide
Assessment
This issue has not been assessed yet.