-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle
65 lines (55 loc) · 1.81 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
buildscript {
ext.kotlin_version = '1.3.10'
repositories {
mavenCentral()
jcenter()
maven { url 'https://jitpack.io' }
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath 'com.github.jengelman.gradle.plugins:shadow:2.0.4'
}
}
group 'io.streamz'
version '0.1'
def arrow_version = "0.8.1"
apply plugin: 'kotlin'
apply plugin: 'com.github.johnrengelman.shadow'
apply plugin: 'kotlin-kapt'
sourceSets {
main.java.srcDirs += 'src/main/kotlin/'
test.java.srcDirs += 'src/test/kotlin/'
}
repositories {
mavenCentral()
}
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
compile group: 'io.undertow', name: 'undertow-core', version: '2.0.8.Final'
compile group: 'com.xenomachina', name: 'kotlin-argparser', version: '2.0.7'
compile group: 'org.apache.pulsar', name: 'pulsar-client', version: '2.2.0'
compile group: 'com.launchdarkly', name: 'okhttp-eventsource', version: '1.8.0'
compile "io.arrow-kt:arrow-core:$arrow_version"
compile "io.arrow-kt:arrow-syntax:$arrow_version"
compile "io.arrow-kt:arrow-typeclasses:$arrow_version"
compile "io.arrow-kt:arrow-data:$arrow_version"
compile "io.arrow-kt:arrow-optics:$arrow_version"
compile "io.arrow-kt:arrow-instances-core:$arrow_version"
compile "io.arrow-kt:arrow-instances-data:$arrow_version"
testCompile 'junit:junit:4.11'
testCompile "org.jetbrains.kotlin:kotlin-test-junit:$kotlin_version"
}
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}
jar {
manifest {
attributes 'Main-Class': "io.streamz.sse.service.Main"
}
from {
configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
}
}