-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
80 lines (63 loc) · 1.93 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
buildscript {
repositories {
mavenCentral()
mavenLocal()
jcenter()
maven { url "https://plugins.gradle.org/m2/" }
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "com.github.jengelman.gradle.plugins:shadow:$shadow_version"
}
}
repositories {
mavenLocal()
mavenCentral()
jcenter()
maven { url 'https://jitpack.io' }
}
apply plugin: 'kotlin'
apply plugin: "com.github.johnrengelman.shadow"
configurations {
shadow
compile.extendsFrom provided
provided.extendsFrom shadow
}
shadowJar {
classifier = null
version = version
}
artifacts {
archives shadowJar
}
jar {
manifest {
attributes 'Main-Class': "org.hexworks.microcline.MainKt"
}
}
build.dependsOn(shadowJar)
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
compile "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
compile "ch.qos.logback:logback-classic:$logback_version"
compile "org.hexworks.zircon:zircon.core-jvm:$zircon_version"
compile "org.hexworks.zircon:zircon.jvm.swing:$zircon_version"
compile "org.hexworks.cobalt:cobalt.databinding-jvm:$cobalt_version"
testCompile "org.junit.platform:junit-platform-runner:$junit_platform_runner_version"
testCompile "org.junit.jupiter:junit-jupiter-api:$junit_version"
testRuntime "org.junit.jupiter:junit-jupiter-params:$junit_version"
testRuntime "org.junit.jupiter:junit-jupiter-engine:$junit_version"
testCompile "org.mockito:mockito-core:$mockito_version"
testCompile "org.mockito:mockito-junit-jupiter:$mockito_version"
testCompile "org.assertj:assertj-core:$assertj_version"
}
test {
useJUnitPlatform()
reports.html.enabled = false
reports.junitXml.enabled = false
}
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all {
kotlinOptions {
jvmTarget = "1.8"
}
}