2023-06-20 18:07:29 +03:00
|
|
|
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
|
2021-12-26 15:28:53 +03:00
|
|
|
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
|
|
|
|
|
|
|
plugins {
|
2023-06-16 11:23:04 +03:00
|
|
|
kotlin("jvm") version "1.8.22"
|
2021-12-26 15:28:53 +03:00
|
|
|
application
|
2023-06-19 19:54:50 +03:00
|
|
|
id("com.github.johnrengelman.shadow") version "8.1.1"
|
2021-12-26 15:28:53 +03:00
|
|
|
}
|
|
|
|
|
2023-07-03 10:03:36 +03:00
|
|
|
group = "center.sciprog"
|
2021-12-26 15:28:53 +03:00
|
|
|
version = "1.0-SNAPSHOT"
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
|
|
|
maven("https://maven.pkg.jetbrains.space/public/p/space/maven")
|
|
|
|
}
|
|
|
|
|
2023-07-03 10:03:36 +03:00
|
|
|
val ktorVersion = "2.3.1"
|
|
|
|
|
2021-12-26 15:28:53 +03:00
|
|
|
dependencies {
|
2023-07-03 10:03:36 +03:00
|
|
|
implementation("org.jetbrains:space-sdk-jvm:163093-beta")
|
|
|
|
implementation("io.ktor:ktor-client-cio-jvm:$ktorVersion")
|
|
|
|
implementation("io.ktor:ktor-server-core-jvm:$ktorVersion")
|
|
|
|
implementation("io.ktor:ktor-server-cio-jvm:$ktorVersion")
|
2023-06-16 11:23:04 +03:00
|
|
|
implementation("org.jetbrains.kotlinx:kotlinx-cli:0.3.5")
|
|
|
|
implementation("ch.qos.logback:logback-classic:1.4.8")
|
2021-12-26 15:28:53 +03:00
|
|
|
testImplementation(kotlin("test"))
|
|
|
|
}
|
|
|
|
|
|
|
|
tasks.test {
|
|
|
|
useJUnitPlatform()
|
|
|
|
}
|
|
|
|
|
2023-06-20 18:07:29 +03:00
|
|
|
kotlin {
|
|
|
|
jvmToolchain(11)
|
2021-12-26 15:28:53 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
application {
|
2023-07-03 10:03:36 +03:00
|
|
|
mainClass.set("center.sciprog.space.documentextractor.MainKt")
|
2023-06-20 18:07:29 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
tasks.withType<ShadowJar>{
|
|
|
|
archiveClassifier.set("")
|
|
|
|
archiveVersion.set("")
|
2021-12-26 15:28:53 +03:00
|
|
|
}
|