-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathbuild.gradle
51 lines (42 loc) · 1.44 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
plugins {
id 'application'
id 'com.google.protobuf' version '0.8.7'
id 'org.jetbrains.kotlin.jvm' version '1.3.21'
}
application {
mainClassName = "MainKt"
}
group 'com.github.marcoferrer.krotoplus'
version '1.0-SNAPSHOT'
allprojects {
repositories {
mavenCentral()
if(krotoplus_version.endsWith('SNAPSHOT')){
maven { url 'https://oss.jfrog.org/artifactory/oss-snapshot-local' }
}
}
}
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutines_version"
implementation "io.grpc:grpc-protobuf:$grpc_version"
implementation "io.grpc:grpc-stub:$grpc_version"
implementation "io.grpc:grpc-netty:$grpc_version"
implementation "com.github.marcoferrer.krotoplus:kroto-plus-coroutines:$krotoplus_version"
implementation "com.google.protobuf:protobuf-java:$protobuf_version"
implementation project(':api')
}
compileKotlin {
kotlinOptions{
jvmTarget = "1.8"
freeCompilerArgs += [
// This flag is required due to the current implementation using
// the coroutine builder [CoroutineScope.actor]. This can be removed
// once the coroutines stdlib is updated with a suitable replacement
"-Xuse-experimental=kotlinx.coroutines.ObsoleteCoroutinesApi"
]
}
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}