-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle
79 lines (62 loc) · 1.67 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
plugins {
id 'org.jetbrains.kotlin.jvm' version '1.2.71'
id "com.google.protobuf" version "0.8.6"
}
apply plugin: 'idea'
apply plugin: 'java'
apply plugin: 'kotlin'
group 'ua.org.kug'
version '1.0-SNAPSHOT'
repositories {
mavenCentral()
jcenter()
maven { url "https://dl.bintray.com/kotlin/ktor" }
//maven("https://plugins.gradle.org/m2/")
}
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:0.30.0'
compile("com.google.protobuf:protobuf-java:3.6.1")
compile("io.grpc:grpc-stub:1.15.1")
compile("io.grpc:grpc-protobuf:1.15.1")
compile("io.grpc:grpc-netty:1.15.1")
compile("io.github.microutils:kotlin-logging:1.6.10")
compile("io.javalin:javalin:2.3.0")
compile("io.ktor:ktor-server-core:0.9.5")
compile("io.ktor:ktor-server-netty:0.9.5")
compile("org.slf4j:slf4j-simple:1.7.25")
}
kotlin {
experimental {
coroutines "enable"
}
}
def protobufVersion = '3.5.1-1'
def grpcVersion = '1.15.1'
protobuf {
//generatedFilesBaseDir = "$projectDir/src/generated"
protoc {
// The artifact spec for the Protobuf Compiler
artifact = "com.google.protobuf:protoc:${protobufVersion}"
}
plugins {
grpc {
artifact = "io.grpc:protoc-gen-grpc-java:${grpcVersion}"
}
grpckotlin {
artifact = "io.rouz:grpc-kotlin-gen:0.0.4:jdk8@jar"
}
}
generateProtoTasks {
all()*.plugins {
grpc {}
grpckotlin {}
}
}
}
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}