81 lines
2.9 KiB
Text
81 lines
2.9 KiB
Text
|
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"
|
||
|
val springBootVersion = "3.1.0"
|
||
|
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")
|
||
|
|
||
|
implementation("org.springframework.boot:spring-boot-starter:$springBootVersion") {
|
||
|
exclude("org.springframework.boot:spring-boot-starter-tomcat")
|
||
|
}
|
||
|
implementation("org.springframework.boot:spring-boot-starter-web:$springBootVersion") {
|
||
|
exclude("org.springframework.boot:spring-boot-starter-tomcat")
|
||
|
}
|
||
|
implementation("org.springframework.boot:spring-boot-starter-security:$springBootVersion") {
|
||
|
exclude("org.springframework.boot:spring-boot-starter-tomcat")
|
||
|
}
|
||
|
implementation("org.springframework.boot:spring-boot-starter-jetty:$springBootVersion")
|
||
|
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")
|
||
|
}
|
||
|
|
||
|
configurations.all {
|
||
|
resolutionStrategy {
|
||
|
eachDependency {
|
||
|
if (requested.group == "jakarta.servlet") {
|
||
|
useVersion("5.0.0")
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
tasks.withType<KotlinCompile> {
|
||
|
kotlinOptions {
|
||
|
freeCompilerArgs = listOf("-Xjsr305=strict")
|
||
|
jvmTarget = "17"
|
||
|
}
|
||
|
}
|
||
|
|
||
|
tasks.withType<Test> {
|
||
|
useJUnitPlatform()
|
||
|
}
|