-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
76 lines (60 loc) · 1.86 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
plugins {
id "com.github.ben-manes.versions" version "0.39.0"
id "org.jetbrains.kotlin.jvm" version "$kotlinVersion"
}
apply plugin: 'kotlin'
apply plugin: 'maven'
repositories {
google()
mavenCentral()
}
def jacksonVersion = "2.12.5"
sourceCompatibility = 1.8
targetCompatibility = 1.8
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlinVersion"
compile "org.jetbrains.kotlin:kotlin-reflect:$kotlinVersion"
// logging
compile "org.slf4j:slf4j-api:1.7.32"
compile "ch.qos.logback:logback-classic:1.2.6"
compile "ch.qos.logback:logback-core:1.2.6"
// utils
compile "joda-time:joda-time:2.10.10"
compile "commons-io:commons-io:2.11.0"
compile "org.apache.commons:commons-text:1.9"
compile "com.google.guava:guava:30.1.1-jre"
// ssh
compile "com.jcraft:jsch:0.1.55"
// persistence
compile "com.fasterxml.jackson.core:jackson-databind:$jacksonVersion"
compile "com.fasterxml.jackson.module:jackson-module-kotlin:$jacksonVersion"
// tests and scripts
testCompile "junit:junit:4.13.2"
testCompile "org.jsoup:jsoup:1.14.2"
}
test {
useJUnit()
maxHeapSize = '1G'
testLogging {
afterSuite { desc, result ->
if (!desc.parent) { // will match the outermost suite
println "Results: ${result.resultType} (${result.testCount} tests, ${result.successfulTestCount} successes, ${result.failedTestCount} failures, ${result.skippedTestCount} skipped)"
}
}
}
}
def mainClass = "be.encelade.vaporwave.MainKt"
jar {
setArchivesBaseName("vaporwave")
manifest {
attributes 'Main-Class': "$mainClass"
}
from {
configurations.compile.collect {
it.isDirectory() ? it : zipTree(it)
}
}
exclude 'org/testng/**'
exclude 'org/opentest4j/**'
exclude 'module-info.class'
}