Skip to content

Commit

Permalink
fixes and updates
Browse files Browse the repository at this point in the history
  • Loading branch information
InsanusMokrassar committed Dec 10, 2023
1 parent dd15416 commit 9a2264f
Show file tree
Hide file tree
Showing 8 changed files with 25 additions and 21 deletions.
4 changes: 3 additions & 1 deletion common/src/jvmMain/kotlin/Plugin.kt
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@ import dev.inmo.micro_utils.koin.annotations.GenerateKoinDefinition
import dev.inmo.micro_utils.koin.getAllDistinct
import dev.inmo.micro_utils.language_codes.IetfLanguageCode
import dev.inmo.micro_utils.repos.KeyValueRepo
import dev.inmo.micro_utils.repos.MapKeyValueRepo
import dev.inmo.micro_utils.repos.cache.cache.FullKVCache
import dev.inmo.micro_utils.repos.cache.cached
import dev.inmo.micro_utils.repos.cache.full.fullyCached
import dev.inmo.micro_utils.repos.exposed.keyvalue.ExposedKeyValueRepo
import dev.inmo.micro_utils.repos.mappers.withMapper
import dev.inmo.plagubot.Plugin
Expand Down Expand Up @@ -71,7 +73,7 @@ object Plugin : Plugin {
{ code },
{ json.decodeFromString(FullChatIdentifierSerializer, this) as IdChatIdentifier },
{ IetfLanguageCode(this) }
).cached(FullKVCache(), get())
).fullyCached(MapKeyValueRepo(), get())
}
}

Expand Down
18 changes: 9 additions & 9 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
[versions]

kotlin = "1.8.22"
kotlin-serialization = "1.5.1"
kotlin = "1.9.21"
kotlin-serialization = "1.6.2"

plagubot = "6.0.1"
plagubot-plugins = "0.12.0"
tgbotapi-libraries = "0.12.1"
plagubot = "7.4.1"
plagubot-plugins = "0.17.1"
tgbotapi-libraries = "0.17.1"

moko-resources = "0.23.0"

tgbotapi = "8.0.1"
tgbotapi = "9.4.2"

psql = "42.6.0"

microutils = "0.19.2"
microutils = "0.20.19"

ksp = "1.8.22-1.0.11"
ksp = "1.9.21-1.0.15"

dokka = "1.8.20"
dokka = "1.9.10"

[libraries]

Expand Down
6 changes: 3 additions & 3 deletions mppJavaProject.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ kotlin {
jvm {
compilations.main {
kotlinOptions {
jvmTarget = "1.8"
jvmTarget = "17"
}
}
}
Expand All @@ -33,6 +33,6 @@ kotlin {
}

java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
6 changes: 3 additions & 3 deletions mppProjectWithSerialization.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ kotlin {
jvm {
compilations.main {
kotlinOptions {
jvmTarget = "1.8"
jvmTarget = "17"
}
}
}
Expand Down Expand Up @@ -43,6 +43,6 @@ kotlin {
}

java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
3 changes: 3 additions & 0 deletions registrar/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ kotlin {
api libs.moko.resources
}
}
jvmMain {
dependsOn(commonMain)
}
}
}

Expand Down
3 changes: 3 additions & 0 deletions reviews/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ kotlin {
api project(":plagubot.suggestionsbot.suggestions")
}
}
jvmMain {
dependsOn(commonMain)
}
}
}

Expand Down
5 changes: 0 additions & 5 deletions reviews/src/jvmMain/kotlin/Plugin.kt
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ import dev.inmo.micro_utils.repos.set
import dev.inmo.micro_utils.repos.unset
import dev.inmo.plagubot.Plugin
import dev.inmo.plagubot.suggestionsbot.common.ChatsConfig
import dev.inmo.plagubot.suggestionsbot.common.locale
import dev.inmo.plagubot.suggestionsbot.reviews.ReviewsResources
import dev.inmo.plagubot.suggestionsbot.reviews.repo.ExposedReviewMessagesInfo
import dev.inmo.plagubot.suggestionsbot.suggestions.exposed.SuggestionsMessageMetaInfosExposedRepo
import dev.inmo.plagubot.suggestionsbot.suggestions.models.RegisteredSuggestion
Expand All @@ -28,8 +26,6 @@ import dev.inmo.tgbotapi.extensions.behaviour_builder.triggers_handling.onMessag
import dev.inmo.tgbotapi.extensions.utils.privateChatOrNull
import dev.inmo.tgbotapi.extensions.utils.types.buttons.dataButton
import dev.inmo.tgbotapi.extensions.utils.types.buttons.flatInlineKeyboard
import dev.inmo.tgbotapi.extensions.utils.types.buttons.inlineKeyboard
import dev.inmo.tgbotapi.extensions.utils.userOrNull
import dev.inmo.tgbotapi.libraries.resender.MessageMetaInfo
import dev.inmo.tgbotapi.libraries.resender.MessagesResender
import dev.inmo.tgbotapi.libraries.resender.invoke
Expand All @@ -39,7 +35,6 @@ import dev.inmo.tgbotapi.types.message.textsources.mention
import dev.inmo.tgbotapi.utils.buildEntities
import dev.inmo.tgbotapi.types.queries.callback.MessageCallbackQuery
import dev.inmo.tgbotapi.types.userLink
import dev.inmo.tgbotapi.utils.bold
import dev.inmo.tgbotapi.utils.underline
import kotlinx.serialization.Serializable
import kotlinx.serialization.json.Json
Expand Down
1 change: 1 addition & 0 deletions suggestions/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ kotlin {
api libs.microutils.repos.exposed
api libs.plagubot.plugin
}
dependsOn(commonMain)
}
}
}
Expand Down

0 comments on commit 9a2264f

Please sign in to comment.