mirror of
https://github.com/aljazceru/lnd-manageJ.git
synced 2026-01-30 03:04:38 +01:00
48 lines
1012 B
Groovy
48 lines
1012 B
Groovy
plugins {
|
|
id 'java-library'
|
|
id 'com.google.protobuf' version '0.8.18'
|
|
}
|
|
|
|
dependencies {
|
|
api 'io.grpc:grpc-stub:1.45.1'
|
|
api 'io.grpc:grpc-protobuf:1.45.1'
|
|
implementation 'io.grpc:grpc-netty:1.45.1'
|
|
implementation 'commons-codec:commons-codec:1.13'
|
|
implementation 'javax.annotation:javax.annotation-api:1.3.2'
|
|
}
|
|
|
|
protobuf {
|
|
protoc {
|
|
artifact = "com.google.protobuf:protoc:3.20.0"
|
|
}
|
|
plugins {
|
|
grpc {
|
|
artifact = 'io.grpc:protoc-gen-grpc-java:1.45.1'
|
|
}
|
|
}
|
|
generateProtoTasks {
|
|
all()*.plugins {
|
|
grpc {}
|
|
}
|
|
}
|
|
}
|
|
sourceSets {
|
|
main {
|
|
java {
|
|
srcDirs 'build/generated/source/proto/main/grpc'
|
|
srcDirs 'build/generated/source/proto/main/java'
|
|
}
|
|
}
|
|
}
|
|
|
|
java {
|
|
sourceCompatibility = JavaVersion.VERSION_17
|
|
targetCompatibility = JavaVersion.VERSION_17
|
|
consistentResolution {
|
|
useCompileClasspathVersions()
|
|
}
|
|
}
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
} |