Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
MrPowerGamerBR committed Dec 12, 2023
1 parent a7506c3 commit a5cddde
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 132 deletions.
25 changes: 12 additions & 13 deletions loritta-bot-discord/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,14 @@ dependencies {
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-jdk8:${Versions.KOTLIN_COROUTINES}")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-debug:${Versions.KOTLIN_COROUTINES}")

implementation("com.google.guava:guava:31.1-jre")
implementation("org.jetbrains.kotlinx:kotlinx-html-jvm:0.7.3")
implementation("org.twitter4j:twitter4j-core:4.0.7")
implementation("com.github.ben-manes.caffeine:caffeine:3.1.1")
implementation("com.google.guava:guava:32.1.3-jre")
implementation("org.jetbrains.kotlinx:kotlinx-html-jvm:0.10.1")
implementation("com.github.ben-manes.caffeine:caffeine:3.1.8")

// Discord
implementation("com.github.LorittaBot:DeviousJDA:6644ac5cb9")
implementation("com.github.MinnDevelopment:jda-ktx:9370cb13cc")
implementation("club.minnced:discord-webhooks:0.8.2")
implementation("club.minnced:discord-webhooks:0.8.4")

// Used to serialize state on components
implementation("io.github.netvl.ecoji:ecoji:1.0.0")
Expand All @@ -49,8 +48,8 @@ dependencies {
implementation("dev.kord:kord-voice:0.8.x-lori-fork-20221109.172532-15")

// Exposed & Databases
implementation("org.postgresql:postgresql:42.5.0")
implementation("com.zaxxer:HikariCP:5.0.1")
implementation("org.postgresql:postgresql:42.7.1")
implementation("com.zaxxer:HikariCP:5.1.0")
api(libs.exposed.core)
api(libs.exposed.jdbc)
api(libs.exposed.javatime)
Expand All @@ -61,10 +60,10 @@ dependencies {
// DreamStorageService
implementation("net.perfectdreams.dreamstorageservice:client:2.0.2")

implementation("org.apache.commons:commons-lang3:3.12.0")
implementation("commons-codec:commons-codec:1.15")
implementation("commons-io:commons-io:2.11.0")
implementation("org.apache.commons:commons-text:1.9")
implementation("org.apache.commons:commons-lang3:3.14.0")
implementation("commons-codec:commons-codec:1.16.0")
implementation("commons-io:commons-io:2.15.1")
implementation("org.apache.commons:commons-text:1.11.0")
implementation("org.apache.commons:commons-collections4:4.4")

// Ktor
Expand All @@ -79,9 +78,9 @@ dependencies {
implementation("io.ktor:ktor-server-sessions:${Versions.KTOR}")
implementation("io.ktor:ktor-server-compression:${Versions.KTOR}")

implementation("com.google.code.gson:gson:2.9.1")
implementation("com.google.code.gson:gson:2.10.1")
implementation("io.pebbletemplates:pebble:3.1.4")
implementation("org.jsoup:jsoup:1.15.3")
implementation("org.jsoup:jsoup:1.17.1")
implementation("com.github.kevinsawicki:http-request:6.0")

// Jackson
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import net.perfectdreams.loritta.morenitta.website.routes.api.v1.guild.*
import net.perfectdreams.loritta.morenitta.website.routes.api.v1.languages.GetLanguageInfoRoute
import net.perfectdreams.loritta.morenitta.website.routes.api.v1.loritta.*
import net.perfectdreams.loritta.morenitta.website.routes.api.v1.twitch.GetTwitchInfoRoute
import net.perfectdreams.loritta.morenitta.website.routes.api.v1.twitter.GetShowTwitterUserRoute
import net.perfectdreams.loritta.morenitta.website.routes.api.v1.user.*
import net.perfectdreams.loritta.morenitta.website.routes.api.v1.youtube.GetChannelInfoRoute
import net.perfectdreams.loritta.morenitta.website.routes.dashboard.DashboardRoute
Expand Down Expand Up @@ -118,9 +117,6 @@ object DefaultRoutes {
// Twitch
GetTwitchInfoRoute(loritta),

// Twitter
GetShowTwitterUserRoute(loritta),

// User
GetMutualGuildsRoute(loritta),
GetSelfInfoRoute(loritta),
Expand Down

This file was deleted.

8 changes: 4 additions & 4 deletions pudding/client/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ dependencies {
api(libs.exposed.core)
api(libs.exposed.jdbc)
api(libs.exposed.javatime)
api("org.postgresql:postgresql:42.2.23")
api("org.postgresql:postgresql:42.7.1")
implementation(libs.hikaricp)
api("pw.forst", "exposed-upsert", "1.1.0")
api("net.perfectdreams.exposedpowerutils:exposed-power-utils:1.2.1")
api("net.perfectdreams.exposedpowerutils:postgres-power-utils:1.2.1")
api("net.perfectdreams.exposedpowerutils:postgres-java-time:1.2.1")
api("net.perfectdreams.exposedpowerutils:exposed-power-utils:1.3.0")
api("net.perfectdreams.exposedpowerutils:postgres-power-utils:1.3.0")
api("net.perfectdreams.exposedpowerutils:postgres-java-time:1.3.0")

testImplementation("org.jetbrains.kotlinx:kotlinx-coroutines-test:1.5.2")
testImplementation("org.junit.jupiter:junit-jupiter:5.8.2")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,12 @@ class Pudding(
// This is a workaround because "Table.exists()" does not work for partitioned tables!
private fun Transaction.checkIfTableExists(table: Table): Boolean {
val tableScheme = table.tableName.substringBefore('.', "").takeIf { it.isNotEmpty() }
val schema = tableScheme?.inProperCase() ?: TransactionManager.current().connection.metadata { currentScheme }
val schema = tableScheme?.inProperCase() ?: TransactionManager.current().connection.metadata {
// TODO: I'm not sure how to correctly get the schema names, before we used "this.currentScheme" but that's has since been removed
// The result of "schemaNames" is [information_schema, pg_catalog, public]
// We could hardcode the "public" result, but let's throw an error if it isn't found
this.schemaNames.firstOrNull { it == "public" } ?: error("Missing \"public\" schema")
}
val tableName = TransactionManager.current().identity(table) // Yes, because "Table.tableName" does not return the correct name...

return exec("SELECT EXISTS (\n" +
Expand Down
6 changes: 3 additions & 3 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ dependencyResolutionManagement {
val kotlinXSerialization = version("kotlinx-serialization", "1.6.0")
val ktor = version("ktor", "2.0.3")
val jib = version("jib", "3.2.1")
val exposed = version("exposed", "0.41.1")
val exposed = version("exposed", "0.45.0")
val i18nHelper = version("i18nhelper", "0.0.5-SNAPSHOT")
val logback = version("logback", "1.4.11")
val logback = version("logback", "1.4.14")
val kotlinxCoroutines = version("kotlinx-coroutines", "1.6.4")

library("kotlinx-coroutines-core", "org.jetbrains.kotlinx", "kotlinx-coroutines-core").version(kotlinxCoroutines)
Expand All @@ -42,7 +42,7 @@ dependencyResolutionManagement {

library("logback-classic", "ch.qos.logback", "logback-classic").versionRef(logback)

library("hikaricp", "com.zaxxer", "HikariCP").version("5.0.1")
library("hikaricp", "com.zaxxer", "HikariCP").version("5.1.0")
}
}
}
Expand Down

0 comments on commit a5cddde

Please sign in to comment.