-
Notifications
You must be signed in to change notification settings - Fork 6
/
build.gradle
99 lines (86 loc) · 3.4 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
/*
* GPLv3 License
*
* Copyright (c) mr2tachiyomi by waicool20
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
buildscript {
ext.kotlin_version = '1.3.50'
ext.kotlin_coroutines_version = '1.3.0'
ext.jackson_version = '2.9.9'
repositories {
mavenCentral()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
plugins {
id 'com.github.johnrengelman.shadow' version '5.0.0'
}
group 'com.waicool20'
version '1.0-SNAPSHOT'
apply plugin: 'java'
apply plugin: 'kotlin'
defaultTasks 'build'
build.finalizedBy(tasks.shadowJar)
jar.enabled = false
repositories {
mavenCentral()
maven { url "https://dl.bintray.com/kotlin/exposed" }
}
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
compile "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
compile "org.jetbrains.kotlinx:kotlinx-coroutines-core:$kotlin_coroutines_version"
compile group: 'com.fasterxml.jackson.core', name: 'jackson-core', version: jackson_version
compile group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: jackson_version
compile group: 'com.fasterxml.jackson.core', name: 'jackson-annotations', version: jackson_version
compile group: 'com.fasterxml.jackson.module', name: 'jackson-module-kotlin', version: jackson_version
compile group: 'com.fasterxml.jackson.dataformat', name: 'jackson-dataformat-csv', version: jackson_version
//compile group: 'com.fasterxml.jackson.datatype', name: 'jackson-datatype-jsr310', version: jackson_version
compile group: 'commons-cli', name: 'commons-cli', version: '1.4'
compile 'org.jetbrains.exposed:exposed:0.17.3'
compile group: 'org.xerial', name: 'sqlite-jdbc', version: '3.28.0'
compile group: 'no.tornado', name: 'tornadofx', version: '1.7.19'
compile group: 'ch.qos.logback', name: 'logback-classic', version: '1.2.3'
}
shadowJar {
classifier = null
version = null
}
jar {
manifest {
attributes([
'Main-Class': 'com.waicool20.mr2tachiyomi.MR2TachiyomiKt'
])
}
}
compileKotlin.kotlinOptions {
jvmTarget = "1.8"
freeCompilerArgs += [
"-Xuse-experimental=kotlinx.coroutines.FlowPreview",
"-Xuse-experimental=kotlinx.coroutines.ExperimentalCoroutinesApi",
"-Xuse-experimental=kotlinx.coroutines.ObsoleteCoroutinesApi",
"-Xuse-experimental=kotlin.ExperimentalUnsignedTypes"]
}
compileTestKotlin.kotlinOptions {
jvmTarget = "1.8"
freeCompilerArgs += [
"-Xuse-experimental=kotlinx.coroutines.FlowPreview",
"-Xuse-experimental=kotlinx.coroutines.ExperimentalCoroutinesApi",
"-Xuse-experimental=kotlinx.coroutines.ObsoleteCoroutinesApi",
"-Xuse-experimental=kotlin.ExperimentalUnsignedTypes"]
}