-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle
109 lines (92 loc) · 3.19 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
group 'me.avo'
version '1.2'
buildscript {
ext {
kotlin_version = '1.2.71'
log4j_version = '2.10.0'
deeplearning_version = '0.9.1'
junit_version = '5.2.0'
}
repositories {
mavenCentral()
jcenter()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "com.github.ben-manes:gradle-versions-plugin:0.20.0"
}
}
apply plugin: "com.github.ben-manes.versions"
apply plugin: 'kotlin'
task fatJar(type: Jar) {
manifest {
attributes 'Compile-Title': project.name,
'Compile-Version': version,
'Main-Class': 'me.avo.kumo.ApplicationKt'
}
baseName = project.name
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
exclude 'META-INF/*.RSA', 'META-INF/*.SF', 'META-INF/*.DSA'
with jar
}
kotlin {
experimental {
coroutines "enable"
}
}
repositories {
jcenter()
mavenCentral()
maven { url "http://dl.bintray.com/kotlin/exposed" }
}
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
/* Logging */
compile group: 'org.apache.logging.log4j', name: 'log4j-api', version: log4j_version
compile group: 'org.apache.logging.log4j', name: 'log4j-core', version: log4j_version
compile group: 'org.apache.logging.log4j', name: 'log4j-slf4j-impl', version: log4j_version
compile group: "org.slf4j", name: "slf4j-simple", version: "1.7.25"
/* Browser automation */
compile "org.seleniumhq.selenium:selenium-chrome-driver:3.12.0"
compile group: 'org.jsoup', name: 'jsoup', version: '1.11.3'
/* Audio Tools */
compile 'com.iheartradio.m3u8:open-m3u8:0.2.6'
compile 'org.jcodec:jcodec:0.2.3'
compile 'com.googlecode.soundlibs:jlayer:1.0.1.4'
compile 'com.googlecode.soundlibs:mp3spi:1.9.5.4'
/* Database */
compile 'org.jetbrains.exposed:exposed:0.10.3'
compile 'org.xerial:sqlite-jdbc:3.23.1'
compile 'org.mongodb:mongodb-driver:3.5.0'
/* NLP */
compile 'com.atilika.kuromoji:kuromoji-ipadic:0.9.0'
compile "org.deeplearning4j:deeplearning4j-nlp:$deeplearning_version"
compile "org.nd4j:nd4j-native-platform:$deeplearning_version"
/* Utility */
compile group: "org.apache.httpcomponents", name: "httpclient", version: "4.5.6"
compile 'com.github.salomonbrys.kotson:kotson:2.5.0'
compile 'com.apurebase:arkenv:1.2.0'
compile 'net.jodah:failsafe:1.1.1'
compile 'org.jetbrains.kotlinx:kotlinx-coroutines-jdk8:0.23.3'
compile 'org.kodein.di:kodein-di-generic-jvm:5.1.0'
testCompile "org.junit.jupiter:junit-jupiter-api:$junit_version"
testCompile "org.amshove.kluent:kluent:1.46"
testRuntime "org.junit.jupiter:junit-jupiter-engine:$junit_version"
}
test {
useJUnitPlatform {
excludeTags "local"
includeEngines 'junit-jupiter'
}
testLogging {
events "failed"
exceptionFormat "full"
}
failFast = false
}
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}