-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
75 lines (65 loc) · 2.33 KB
/
build.gradle.kts
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
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
val ktor_version: String by project
val kotlin_version: String by project
val kotlin_coroutines_version: String by project
plugins {
kotlin("jvm") version "1.4.21"
id("com.github.johnrengelman.shadow") version "7.1.1"
}
repositories {
mavenLocal()
maven {
url = uri("https://repo.maven.apache.org/maven2/")
}
}
dependencies {
implementation("org.slf4j:slf4j-nop:1.7.30")
implementation("io.fluidsonic.mongo:fluid-mongo:1.1.3")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:$kotlin_coroutines_version")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-reactor:$kotlin_coroutines_version")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-reactive:$kotlin_coroutines_version")
implementation("io.ktor:ktor-client-core:$ktor_version")
implementation("io.ktor:ktor-client-core-jvm:$ktor_version")
implementation("io.ktor:ktor-client-cio:$ktor_version")
implementation("io.ktor:ktor-client-cio-jvm:$ktor_version")
implementation("io.ktor:ktor-network-tls:$ktor_version")
implementation("io.ktor:ktor-network-tls-jvm:$ktor_version")
implementation("io.ktor:ktor-server-core:$ktor_version")
implementation("io.ktor:ktor-server-cio:$ktor_version")
implementation("org.jsoup:jsoup:1.13.1")
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version")
implementation("info.picocli:picocli:4.1.4")
implementation("com.googlecode.json-simple:json-simple:1.1.1")
implementation("com.google.firebase:firebase-admin:6.12.1")
implementation("net.sourceforge.htmlunit:htmlunit:2.45.0")
}
kotlin.sourceSets["main"].kotlin.srcDirs("src")
group = "site.pegasis"
version = "BN62"
description = "fetch-ta-data"
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(11))
}
}
tasks.withType<KotlinCompile>().configureEach {
kotlinOptions {
languageVersion = "1.4"
jvmTarget = "11"
}
}
tasks {
named<ShadowJar>("shadowJar") {
archiveFileName.set("fetch_ta_data.jar")
mergeServiceFiles()
manifest {
attributes(mapOf("Main-Class" to "site.pegasis.ta.fetch.MainKt"))
}
}
}
tasks {
build {
dependsOn(shadowJar)
}
}