migration onto toml versions keeper

This commit is contained in:
InsanusMokrassar 2022-03-03 12:12:02 +06:00
parent 1f2bd0b14a
commit 9f1ae5bd17
4 changed files with 27 additions and 9 deletions

View File

@ -4,14 +4,14 @@ buildscript {
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "org.jetbrains.kotlin:kotlin-serialization:$kotlin_version"
classpath libs.kotlin.gradle.plugin
classpath libs.kotlin.serialization.plugin
}
}
plugins {
id 'org.jetbrains.kotlin.jvm' version "$kotlin_version"
id "org.jetbrains.kotlin.plugin.serialization" version "$kotlin_version"
alias libs.plugins.kotlin.jvm
alias libs.plugins.kotlin.serialization
id 'application'
}
@ -20,9 +20,9 @@ repositories {
}
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
implementation libs.kotlin
implementation "dev.inmo:tgbotapi:$tgbotapi_version"
implementation libs.tgbotapi
}
application {

View File

@ -3,6 +3,3 @@ kotlin.code.style=official
org.gradle.parallel=true
kotlin.js.generate.externals=true
kotlin.incremental=true
kotlin_version=1.6.10
tgbotapi_version=0.38.5

19
gradle/libs.versions.toml Normal file
View File

@ -0,0 +1,19 @@
[versions]
kotlin = "1.6.10"
tgbotapi = "0.38.6"
[libraries]
kotlin = { module = "org.jetbrains.kotlin:kotlin-stdlib", version.ref = "kotlin" }
tgbotapi = { module = "dev.inmo:tgbotapi", version.ref = "tgbotapi" }
# Libs for classpath
kotlin-gradle-plugin = { module = "org.jetbrains.kotlin:kotlin-gradle-plugin", version.ref = "kotlin" }
kotlin-serialization-plugin = { module = "org.jetbrains.kotlin:kotlin-serialization", version.ref = "kotlin" }
[plugins]
kotlin-jvm = { id = "org.jetbrains.kotlin.jvm", version.ref = "kotlin" }
kotlin-serialization = { id = "org.jetbrains.kotlin.plugin.serialization", version.ref = "kotlin" }

View File

@ -1 +1,3 @@
rootProject.name = 'telegram_bot'
enableFeaturePreview("VERSION_CATALOGS")