forked from grpc/grpc-kotlin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
48 lines (40 loc) · 1.36 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
plugins {
id 'com.google.protobuf' version '0.8.11'
id 'org.jetbrains.dokka' version '0.10.1'
// Generate IntelliJ IDEA's .idea & .iml project files
// Starting with 0.8.4 of protobuf-gradle-plugin, *.proto and the gen output files are added
// to IntelliJ as sources. It is no longer necessary to add them manually to the idea {} block
// to jump to definitions from Java and Kotlin files.
// For best results, install the Protobuf and Kotlin plugins for IntelliJ.
id 'idea'
// Provide convenience executables for trying out the examples.
id 'application'
id 'maven-publish'
}
description = 'gRPC Kotlin: Stub Lite'
mainClassName = ''
repositories {
google()
jcenter()
mavenCentral()
mavenLocal()
}
dependencies {
// Kotlin
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:${rootProject.ext.coroutinesVersion}"
// Grpc and Protobuf
implementation "io.grpc:grpc-protobuf-lite:${rootProject.ext.grpcVersion}"
implementation "io.grpc:grpc-stub:${rootProject.ext.grpcVersion}"
implementation ("io.grpc:grpc-kotlin-stub:$version") {
exclude group: 'io.grpc', module: 'grpc-protobuf'
}
// Java
implementation "javax.annotation:javax.annotation-api:1.2"
}
publishing {
publications {
maven(MavenPublication) {
from components.java
}
}
}