Skip to content

Commit

Permalink
Don't relocate sqlite jdbc on Forge
Browse files Browse the repository at this point in the history
  • Loading branch information
Erdragh committed Jan 3, 2024
1 parent 5368821 commit c3a8b51
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ subprojects {
val modLoader = project.name
val modId = rootProject.name
val isCommon = modLoader == rootProject.projects.common.name
val isForge = modLoader == rootProject.projects.forge.name

base {
// This will be the final name of the exported JAR file
Expand Down Expand Up @@ -191,7 +192,11 @@ subprojects {

// Relocating Exposed and the sqlite driver somewhere different so other mods not doing that don't run into issues (e.g. Ledger)
relocate("org.jetbrains.exposed", "dev.erdragh.shadowed.org.jetbrains.exposed")
relocate("org.sqlite", "dev.erdragh.shadowed.org.sqlite")
if (!isForge) {
// Relocating SQLite on Forge breaks things. TODO: Depend on SQLite JDBC externally
relocate("org.sqlite", "dev.erdragh.shadowed.org.sqlite")
}


// Transforms the reference to point to the relocated sqlite driver (see: https://github.com/xerial/sqlite-jdbc/issues/145)
transform(AppendingTransformer::class.java) {
Expand Down

0 comments on commit c3a8b51

Please sign in to comment.