2019-09-07 23:18:57 +08:00
|
|
|
plugins {
|
2020-05-05 07:44:30 +08:00
|
|
|
id "java-library"
|
2019-09-08 00:27:32 +08:00
|
|
|
id "maven-publish"
|
|
|
|
|
2019-09-07 23:18:57 +08:00
|
|
|
id "com.google.protobuf"
|
2019-09-08 01:23:23 +08:00
|
|
|
id "me.champeau.gradle.japicmp"
|
2019-09-08 01:38:58 +08:00
|
|
|
id "ru.vyarus.animalsniffer"
|
2016-07-30 02:57:41 +08:00
|
|
|
}
|
|
|
|
|
2016-03-23 02:31:36 +08:00
|
|
|
description = 'gRPC: Protobuf Lite'
|
|
|
|
|
|
|
|
dependencies {
|
2020-05-05 07:44:30 +08:00
|
|
|
api project(':grpc-api'),
|
2022-06-14 03:09:30 +08:00
|
|
|
libraries.protobuf.javalite
|
2021-06-12 05:01:18 +08:00
|
|
|
implementation libraries.jsr305,
|
|
|
|
libraries.guava
|
2016-07-30 02:57:41 +08:00
|
|
|
|
2020-05-05 07:44:30 +08:00
|
|
|
testImplementation project(':grpc-core')
|
2017-02-03 05:48:12 +08:00
|
|
|
|
2022-08-11 03:41:57 +08:00
|
|
|
signature libraries.signature.java
|
|
|
|
signature libraries.signature.android
|
2016-07-30 02:57:41 +08:00
|
|
|
}
|
|
|
|
|
2023-07-26 00:00:11 +08:00
|
|
|
tasks.named("jar").configure {
|
|
|
|
manifest {
|
|
|
|
attributes('Automatic-Module-Name': 'io.grpc.protobuf.lite')
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-07-02 06:48:38 +08:00
|
|
|
tasks.named("compileTestJava").configure {
|
2018-06-12 09:35:18 +08:00
|
|
|
options.compilerArgs += [
|
2019-11-15 02:26:20 +08:00
|
|
|
"-Xlint:-cast"
|
2018-06-12 09:35:18 +08:00
|
|
|
]
|
2018-12-14 02:17:06 +08:00
|
|
|
options.errorprone.excludedPaths = ".*/build/generated/source/proto/.*"
|
2016-07-30 02:57:41 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
protobuf {
|
2018-06-12 09:35:18 +08:00
|
|
|
protoc {
|
|
|
|
if (project.hasProperty('protoc')) {
|
|
|
|
path = project.protoc
|
|
|
|
} else {
|
2022-06-14 03:09:30 +08:00
|
|
|
artifact = libs.protobuf.protoc.get()
|
2018-06-12 09:35:18 +08:00
|
|
|
}
|
2016-07-30 02:57:41 +08:00
|
|
|
}
|
2018-06-12 09:35:18 +08:00
|
|
|
generateProtoTasks {
|
|
|
|
ofSourceSet('test')*.each { task ->
|
2019-11-15 02:26:20 +08:00
|
|
|
task.builtins {
|
|
|
|
java { option 'lite' }
|
|
|
|
}
|
2018-06-12 09:35:18 +08:00
|
|
|
}
|
2016-07-30 02:57:41 +08:00
|
|
|
}
|
2016-03-23 02:31:36 +08:00
|
|
|
}
|