-
Notifications
You must be signed in to change notification settings - Fork 5
/
build.gradle
74 lines (62 loc) · 1.58 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
group 'spookyunknownuser'
version '1.0.0'
buildscript {
ext.kotlin_version = '1.1.4-3'
repositories {
jcenter()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
apply plugin: 'kotlin'
apply plugin: 'kotlin-kapt'
apply plugin: 'idea'
apply plugin: 'application'
mainClassName = "PremiereDowngraderApp"
repositories {
jcenter()
}
ext {
rxJava = '2.1.1'
rxKotlin = '2.1.0'
rxKotlinFx = '2.1.1'
okio = '1.13.0'
dagger = '2.11'
staticlog = '2.1.9'
tornadoFx = '1.7.10'
jdom = '2.0.6'
}
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib-jre8:$kotlin_version"
// Rx
compile "io.reactivex.rxjava2:rxjava:$rxJava"
compile "io.reactivex.rxjava2:rxkotlin:$rxKotlin"
compile "com.github.thomasnield:rxkotlinfx:$rxKotlinFx"
// Dagger
compile "com.google.dagger:dagger:$dagger"
kapt "com.google.dagger:dagger-compiler:$dagger"
// Misc
compile "no.tornado:tornadofx:$tornadoFx"
compile "io.github.jupf.staticlog:staticlog:$staticlog"
compile "com.squareup.okio:okio:$okio"
compile "org.jdom:jdom2:$jdom"
}
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}
idea {
module {
sourceDirs += file('build/generated/source/kapt/main')
generatedSourceDirs += file('build/generated/source/kapt/main')
}
}
jar {
manifest {
attributes 'Main-Class': mainClassName
}
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
}