-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
66 lines (53 loc) · 1.66 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
group = "ru.bravik"
version = "0.0.1"
val ktor_version: String = "2.3.5"
plugins {
kotlin("jvm") version "1.9.21"
// For building fat jar
id("com.github.johnrengelman.shadow") version "7.1.0"
}
kotlin {
jvmToolchain(17)
}
repositories {
mavenCentral()
// For kotlin-telegram-bot
maven("https://jitpack.io")
}
tasks {
jar {
manifest {
attributes["Main-Class"] = "ru.bravik.MainKt"
}
configurations["compileClasspath"].forEach { file: File ->
from(zipTree(file.absoluteFile))
}
duplicatesStrategy = DuplicatesStrategy.INCLUDE
}
shadowJar {
archiveBaseName.set("consul")
archiveClassifier.set("")
archiveVersion.set("")
duplicatesStrategy = DuplicatesStrategy.INCLUDE
manifest {
attributes["Main-Class"] = "ru.bravik.MainKt"
}
}
}
dependencies {
// Http client
implementation("io.ktor:ktor-client-core:$ktor_version")
implementation("io.ktor:ktor-client-cio:$ktor_version")
implementation("io.ktor:ktor-client-logging:$ktor_version")
// Logging
implementation("ch.qos.logback:logback-classic:1.4.12")
// HTML page parser
implementation("org.jsoup:jsoup:1.17.1")
// Anti-captcha client
implementation("com.github.2captcha:2captcha-java:1.1.1")
// For reading file from end of the line
implementation("commons-io:commons-io:2.11.0")
// Need to add this explicitly, because otherwise kotlin-telegram-bot throws errors
implementation("com.squareup.okhttp3:logging-interceptor:4.9.1")
implementation("io.github.kotlin-telegram-bot.kotlin-telegram-bot:telegram:6.1.0")
}