-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
46 lines (34 loc) · 1002 Bytes
/
build.gradle
File metadata and controls
46 lines (34 loc) · 1002 Bytes
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
plugins {
id 'java'
id 'org.jetbrains.kotlin.jvm' version '1.2.71'
id 'application'
}
group 'pl.angulski.kotlin'
version '1.0.0'
sourceCompatibility = 1.8
mainClassName = 'pl.angulski.kotlin.xmlparser.ScriptKt'
repositories {
mavenCentral()
}
dependencies {
// Kotlin std lib
compile group: 'org.jetbrains.kotlin', name: 'kotlin-stdlib-jdk8'
// Unit testing
testCompile group: 'junit', name: 'junit', version: '4.12'
// Logs: sfl4j allows us to replace different loggers later
compile group: 'org.slf4j', name: 'slf4j-api', version: '1.7.22'
// Logs: logback - actual implementation of logger
compile group: 'ch.qos.logback', name: 'logback-classic', version: '1.1.8'
}
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}
jar {
manifest {
attributes 'Main-Class': mainClassName
}
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
}