-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathbuild.gradle
45 lines (38 loc) · 1.08 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
plugins {
id 'java'
id 'application'
id 'org.jetbrains.kotlin.jvm' version '1.3.61'
id 'io.gitlab.arturbosch.detekt' version '1.10.0-RC1'
}
group 'com.mrcd'
version '1.0'
sourceCompatibility = 1.8
mainClassName = 'com.mrcd.MainKt'
repositories {
jcenter()
}
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}
jar {
manifest {
attributes 'Main-Class': 'com.mrcd.MainKt'
}
from {
configurations.compileClasspath.collect {
it.isDirectory() ? it : zipTree(it)
}
}
}
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
implementation group: 'org.dom4j', name: 'dom4j', version: '2.1.0'
implementation group: 'net.sourceforge.jexcelapi', name: 'jxl', version: '2.6.12'
testCompile group: 'junit', name: 'junit', version: '4.13'
detektPlugins "io.gitlab.arturbosch.detekt:detekt-formatting:1.10.0-RC1"
implementation group: 'org.apache.commons', name: 'commons-text', version: '1.8'
}
apply from: "config/detekt/detekt.gradle"