Created
December 21, 2021 16:08
-
-
Save kyze8439690/1afc40dae6ba59f8de5041dd7cecacd3 to your computer and use it in GitHub Desktop.
Protobuf gradle plugin with gradle kotlin dsl
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.google.protobuf.gradle.* | |
plugins { | |
id("com.google.protobuf") version "0.8.18" | |
} | |
protobuf { | |
protoc { | |
artifact = "com.google.protobuf:protoc:3.19.1" | |
} | |
generateProtoTasks { | |
all().forEach { task -> | |
task.plugins { | |
id("kotlin") | |
} | |
task.builtins { | |
id("java") | |
} | |
} | |
} | |
} | |
dependencies { | |
implementation("com.google.protobuf:protobuf-kotlin:3.19.1") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment