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"
|
2017-03-22 05:03:46 +08:00
|
|
|
}
|
|
|
|
|
2019-09-07 23:18:57 +08:00
|
|
|
description = 'gRPC: Protobuf'
|
|
|
|
|
2023-07-26 00:00:11 +08:00
|
|
|
tasks.named("jar").configure {
|
|
|
|
manifest {
|
|
|
|
attributes('Automatic-Module-Name': 'io.grpc.protobuf')
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-04-11 06:40:44 +08:00
|
|
|
dependencies {
|
2020-05-05 07:44:30 +08:00
|
|
|
api project(':grpc-api'),
|
|
|
|
libraries.jsr305,
|
2022-06-14 03:09:30 +08:00
|
|
|
libraries.protobuf.java
|
2021-06-12 05:01:18 +08:00
|
|
|
implementation libraries.guava
|
2018-03-24 06:45:05 +08:00
|
|
|
|
2022-06-14 03:09:30 +08:00
|
|
|
api (libraries.google.api.protos) {
|
2017-05-02 05:43:53 +08:00
|
|
|
// 'com.google.api:api-common' transitively depends on auto-value, which breaks our
|
|
|
|
// annotations.
|
|
|
|
exclude group: 'com.google.api', module: 'api-common'
|
2017-03-22 05:03:46 +08:00
|
|
|
}
|
|
|
|
|
2023-12-16 07:14:29 +08:00
|
|
|
implementation (project(':grpc-protobuf-lite')) {
|
2019-11-19 11:54:05 +08:00
|
|
|
exclude group: 'com.google.protobuf', module: 'protobuf-javalite'
|
2016-07-30 02:57:41 +08:00
|
|
|
}
|
2015-08-14 05:39:34 +08:00
|
|
|
|
2022-08-11 03:41:57 +08:00
|
|
|
signature libraries.signature.java
|
|
|
|
signature libraries.signature.android
|
2015-08-14 05:39:34 +08:00
|
|
|
}
|
2015-08-19 05:04:30 +08:00
|
|
|
|
2022-07-02 06:48:38 +08:00
|
|
|
tasks.named("javadoc").configure {
|
2024-02-24 08:27:18 +08:00
|
|
|
options.linksOffline 'https://protobuf.dev/reference/java/api-docs/',
|
|
|
|
"${rootProject.projectDir}/gradle/javadoc/protobuf.dev-reference-java-api-docs/"
|
2022-07-02 06:48:38 +08:00
|
|
|
}
|