2022-08-26 16:08:46 +02:00
|
|
|
plugins {
|
|
|
|
id "com.google.protobuf" version "0.8.19"
|
|
|
|
id "java"
|
|
|
|
}
|
|
|
|
repositories {
|
|
|
|
gradlePluginPortal()
|
|
|
|
}
|
2022-08-26 20:48:44 +02:00
|
|
|
|
|
|
|
java {
|
|
|
|
toolchain {
|
|
|
|
languageVersion.set(JavaLanguageVersion.of(17))
|
|
|
|
}
|
|
|
|
}
|
2022-08-26 16:08:46 +02:00
|
|
|
protobuf {
|
|
|
|
protoc {
|
|
|
|
artifact = 'com.google.protobuf:protoc:3.0.0'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
sourceSets {
|
|
|
|
main {
|
|
|
|
java {
|
|
|
|
srcDirs 'build/generated/source/proto/main/grpc'
|
|
|
|
srcDirs 'build/generated/source/proto/main/java'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
protobuf files ("def/")
|
|
|
|
|
|
|
|
implementation group: 'com.google.protobuf', name: 'protobuf-java', version: '3.0.0'
|
|
|
|
}
|