2023-07-22 04:09:39 +00:00
|
|
|
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
|
|
|
|
|
|
|
plugins {
|
|
|
|
id("org.springframework.boot") version "3.1.0"
|
|
|
|
id("io.spring.dependency-management") version "1.1.0"
|
|
|
|
kotlin("jvm") version "1.8.21"
|
|
|
|
kotlin("plugin.spring") version "1.8.21"
|
|
|
|
kotlin("plugin.serialization") version "1.8.21"
|
|
|
|
kotlin("kapt") version "1.8.21"
|
|
|
|
}
|
|
|
|
|
|
|
|
group = "ru.sicamp"
|
|
|
|
version = "0.0.1-SNAPSHOT"
|
|
|
|
java.sourceCompatibility = JavaVersion.VERSION_17
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
|
|
|
maven { url = uri("https://maven.pkg.jetbrains.space/public/p/kotlinx-html/maven") }
|
|
|
|
}
|
|
|
|
|
|
|
|
val exposedVersion = "0.41.1"
|
|
|
|
val postgresVersion = "42.5.4"
|
|
|
|
val telegramBotVersion = "6.5.0"
|
2023-08-11 09:15:29 +00:00
|
|
|
val springBootVersion = "2.7.14"
|
2023-07-22 04:09:39 +00:00
|
|
|
val serializationVersion = "1.5.0"
|
|
|
|
val loggingVersion = "3.0.5"
|
|
|
|
val securityTestVersion = "6.0.2"
|
|
|
|
val thymeleafVersion = "3.1.1.RELEASE"
|
|
|
|
val jacksonVersion = "2.15.0"
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
kapt("org.springframework.boot:spring-boot-configuration-processor:$springBootVersion")
|
|
|
|
implementation("org.telegram:telegrambots:$telegramBotVersion")
|
|
|
|
implementation("org.telegram:telegrambotsextensions:$telegramBotVersion")
|
|
|
|
implementation("org.telegram:telegrambots-spring-boot-starter:$telegramBotVersion")
|
|
|
|
|
2023-08-11 09:15:29 +00:00
|
|
|
implementation("org.springframework.boot:spring-boot-starter:$springBootVersion")
|
|
|
|
implementation("org.springframework.boot:spring-boot-starter-web:$springBootVersion")
|
|
|
|
implementation("org.springframework.boot:spring-boot-starter-security:$springBootVersion")
|
2023-07-22 04:09:39 +00:00
|
|
|
implementation("com.fasterxml.jackson.module:jackson-module-kotlin:$jacksonVersion")
|
|
|
|
|
|
|
|
implementation("org.jetbrains.kotlin:kotlin-reflect")
|
|
|
|
implementation("org.jetbrains.exposed:exposed-core:$exposedVersion")
|
|
|
|
implementation("org.jetbrains.exposed:exposed-dao:$exposedVersion")
|
|
|
|
implementation("org.jetbrains.exposed:exposed-jdbc:$exposedVersion")
|
|
|
|
implementation("org.jetbrains.exposed:exposed-java-time:$exposedVersion")
|
|
|
|
implementation("io.github.microutils:kotlin-logging-jvm:$loggingVersion")
|
|
|
|
implementation("org.postgresql:postgresql:$postgresVersion")
|
|
|
|
|
|
|
|
//testImplementation("org.springframework.security:spring-security-test:$securityTestVersion")
|
|
|
|
testImplementation("org.springframework.boot:spring-boot-starter-test:$springBootVersion")
|
|
|
|
}
|
|
|
|
|
|
|
|
tasks.withType<KotlinCompile> {
|
|
|
|
kotlinOptions {
|
|
|
|
freeCompilerArgs = listOf("-Xjsr305=strict")
|
|
|
|
jvmTarget = "17"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
tasks.withType<Test> {
|
|
|
|
useJUnitPlatform()
|
|
|
|
}
|