-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
69 lines (54 loc) · 1.76 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
plugins {
id 'org.jetbrains.kotlin.jvm' version '1.3.10'
id 'jacoco'
}
group 'com.dineshsawant'
version '1.0-SNAPSHOT'
repositories {
mavenCentral()
jcenter()
}
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
compile "info.picocli:picocli:$picoliVersion"
compile "com.uchuhimo:konf:$konfVersion"
compile "com.github.ajalt:clikt:$cliktVersion"
// Connection pool
compile "com.zaxxer:HikariCP:$hikariCPVersion"
// Logging
compile group: 'ch.qos.logback', name: 'logback-core', version: logbackVersion
compile group: 'ch.qos.logback', name: 'logback-classic', version: logbackVersion
compile "io.github.microutils:kotlin-logging:$kotlinLoggingVersion"
// Database drivers
compile "org.xerial:sqlite-jdbc:$sqliteDriverVersion"
compile "mysql:mysql-connector-java:$mysqlDriverVersion"
// Testing
testCompile "org.spekframework.spek2:spek-dsl-jvm:$spekVersion"
testCompile "org.spekframework.spek2:spek-runner-junit5:$spekVersion"
testRuntimeOnly "org.jetbrains.kotlin:kotlin-reflect:$kotlinVersion"
testImplementation "org.junit.jupiter:junit-jupiter-api:$junitVersion"
testRuntime "org.junit.jupiter:junit-jupiter-engine:$junitVersion"
}
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}
test {
useJUnitPlatform {
includeEngines 'spek2'
}
}
jar {
manifest { attributes 'Main-Class': 'com.dineshsawant.simplymigrate.AppMainKt' }
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
exclude 'META-INF/*.RSA', 'META-INF/*.SF','META-INF/*.DSA'
}
jacocoTestReport {
reports {
xml.enabled true
html.enabled false
}
}
check.dependsOn jacocoTestReport