|
|
@@ -1,5 +1,5 @@
|
|
|
plugins {
|
|
|
- val kotlinVersion = "1.4.10"
|
|
|
+ val kotlinVersion = "1.7.20"
|
|
|
kotlin("jvm") version kotlinVersion
|
|
|
kotlin("plugin.serialization") version kotlinVersion
|
|
|
application
|
|
|
@@ -10,28 +10,23 @@ version = "0.1"
|
|
|
|
|
|
repositories {
|
|
|
mavenCentral()
|
|
|
- jcenter {
|
|
|
- content {
|
|
|
- includeGroup("org.jetbrains.exposed")
|
|
|
- }
|
|
|
- }
|
|
|
}
|
|
|
|
|
|
dependencies {
|
|
|
- implementation("org.telegram:telegrambots:5.3.0")
|
|
|
- implementation("io.ktor:ktor-client-cio:1.4.0")
|
|
|
- implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.0.0")
|
|
|
- implementation("org.jetbrains.exposed:exposed-jdbc:0.28.1")
|
|
|
- implementation("org.jetbrains.lets-plot:lets-plot-common:2.1.0")
|
|
|
- implementation("org.jetbrains.lets-plot:lets-plot-image-export:2.1.0")
|
|
|
- implementation("org.jetbrains.lets-plot:lets-plot-kotlin-jvm:3.0.2")
|
|
|
- implementation("org.postgresql:postgresql:42.2.18")
|
|
|
- implementation("org.slf4j:slf4j-simple:1.7.30")
|
|
|
- testImplementation("junit:junit:4.13")
|
|
|
+ implementation("org.telegram:telegrambots:6.1.0")
|
|
|
+ implementation("io.ktor:ktor-client-cio:2.1.2")
|
|
|
+ implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.4.1")
|
|
|
+ implementation("org.jetbrains.exposed:exposed-jdbc:0.40.1")
|
|
|
+ implementation("org.jetbrains.lets-plot:lets-plot-common:2.5.0")
|
|
|
+ implementation("org.jetbrains.lets-plot:lets-plot-image-export:2.5.0")
|
|
|
+ implementation("org.jetbrains.lets-plot:lets-plot-kotlin-jvm:4.1.0")
|
|
|
+ implementation("org.postgresql:postgresql:42.5.0")
|
|
|
+ implementation("org.slf4j:slf4j-simple:2.0.3")
|
|
|
+ testImplementation("junit:junit:4.13.2")
|
|
|
}
|
|
|
|
|
|
application {
|
|
|
- mainClassName = "com.sirekanyan.andersrobot.Main"
|
|
|
+ mainClass.set("com.sirekanyan.andersrobot.Main")
|
|
|
if (hasProperty("debug")) {
|
|
|
applicationDefaultJvmArgs = listOf("-Ddebug")
|
|
|
}
|
|
|
@@ -39,7 +34,10 @@ application {
|
|
|
|
|
|
tasks {
|
|
|
compileKotlin {
|
|
|
- kotlinOptions.jvmTarget = "1.8"
|
|
|
+ kotlinOptions {
|
|
|
+ jvmTarget = "1.8"
|
|
|
+ allWarningsAsErrors = true
|
|
|
+ }
|
|
|
}
|
|
|
jar {
|
|
|
manifest.attributes["Main-Class"] = "com.sirekanyan.andersrobot.Main"
|