-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
95 lines (82 loc) · 2.52 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
buildscript {
ext.jackson_version = '2.9.2'
dependencies {
classpath group: 'de.dynamicfiles.projects.gradle.plugins', name: 'javafx-gradle-plugin', version: '8.8.2'
}
repositories {
mavenCentral()
}
}
plugins {
id 'java'
id 'application'
id 'idea'
id "org.jetbrains.kotlin.jvm" version "1.3.21"
id 'jacoco'
}
apply plugin: 'javafx-gradle-plugin'
repositories {
mavenCentral()
maven { url 'https://dl.bintray.com/kotlin/kotlinx' }
maven { url 'https://jitpack.io' }
}
version = "0.12.0"
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.1.1")
compile group: 'org.slf4j', name: 'slf4j-api', version: '1.7.25'
compile group: 'org.slf4j', name: 'slf4j-log4j12', version: '1.7.25'
compile "com.fasterxml.jackson.core:jackson-core:$jackson_version"
compile "com.fasterxml.jackson.core:jackson-databind:$jackson_version"
compile "com.fasterxml.jackson.module:jackson-module-parameter-names:$jackson_version"
compile "com.fasterxml.jackson.module:jackson-module-kotlin:$jackson_version"
compile 'io.github.microutils:kotlin-logging:1.4.4'
compile "org.jetbrains.kotlin:kotlin-reflect"
compile 'no.tornado:tornadofx:1.7.18'
compile 'no.tornado:tornadofx-controls:1.0.6'
compile 'com.github.wakingrufus:lib-elo:0.4.0'
testCompile "org.jetbrains.kotlin:kotlin-test"
testCompile "org.jetbrains.kotlin:kotlin-test-junit"
testCompile 'org.mockito:mockito-core:2.8.9'
testCompile group: 'junit', name: 'junit', version: '4.12'
testCompile "org.testfx:testfx-core:4.0.7-alpha"
testCompile "org.testfx:testfx-junit:4.0.6-alpha"
testCompile "com.nhaarman:mockito-kotlin-kt1.1:1.5.0"
}
jfx {
// minimal requirement for jfxJar-task
mainClassName = 'com.github.wakingrufus.eloleague.MainKt'
mainClass = 'com.github.wakingrufus.eloleague.MainKt'
appName = "elo-league-jfx"
// minimal requirement for jfxNative-task
vendor = 'wakingrufus'
bundler = "deb"
nativeReleaseVersion = project.version
verbose = true
}
idea {
project {
languageLevel = '1.8'
}
}
task wrapper(type: Wrapper) {
gradleVersion = '4.8.1'
}
jacocoTestReport {
reports {
xml.enabled true
}
}
jacocoTestReport.dependsOn test
build.dependsOn jfxNative
build.dependsOn jacocoTestReport
compileKotlin {
kotlinOptions {
jvmTarget = "1.8"
}
}
compileTestKotlin {
kotlinOptions {
jvmTarget = "1.8"
}
}