-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
62 lines (49 loc) · 1.51 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
buildscript {
ext.kotlin_version = '1.1.51'
repositories {
mavenCentral()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath 'com.google.protobuf:protobuf-gradle-plugin:0.8.1'
}
}
apply plugin: 'kotlin'
apply plugin: 'com.google.protobuf'
apply plugin: 'idea'
apply plugin: 'application'
mainClassName = 'org.botellier.MainKt'
repositories {
mavenCentral()
}
protobuf {
protoc {
artifact = 'com.google.protobuf:protoc:3.3.0'
}
}
compileKotlin {
dependsOn ':generateProto'
}
sourceSets {
main.java.srcDirs += "${protobuf.generatedFilesBaseDir}/main/java"
}
idea {
module {
sourceDirs += file("${protobuf.generatedFilesBaseDir}/main/java")
generatedSourceDirs += file("${protobuf.generatedFilesBaseDir}/main/java")
}
}
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
compile "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
compile group: 'com.google.protobuf', name: 'protobuf-java', version: '3.3.0'
compile group: 'org.apache.zookeeper', name: 'zookeeper', version: '3.4.10'
compile 'io.github.microutils:kotlin-logging:1.4.5'
compile group: 'org.slf4j', name: 'slf4j-simple', version: '1.7.25'
testCompile 'junit:junit:4.12'
testCompile "org.jetbrains.kotlin:kotlin-test:$kotlin_version"
testCompile "org.jetbrains.kotlin:kotlin-test-junit:$kotlin_version"
}
task wrapper(type: Wrapper) {
gradleVersion = '3.5'
}