Skip to content

Commit

Permalink
fix: shade h2
Browse files Browse the repository at this point in the history
  • Loading branch information
broccoli committed Nov 18, 2022
1 parent e4e6931 commit de9356e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,6 @@ dependencies {
api("net.kyori", "coffee-functional", Versions.COFFEE)

api("net.kyori", "event-method-asm", Versions.EVENT)

implementation( "com.h2database", "h2", "2.1.214")
}
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public final class PluginModule extends AbstractModule {
if (!file.exists()) {
file.createNewFile();
}
hikariConfig.setJdbcUrl("jdbc:h2:" + file);
hikariConfig.setJdbcUrl("jdbc:h2:" + file.getAbsolutePath() + ";MODE=MySQL;DATABASE_TO_LOWER=TRUE");
}

hikariConfig.setMaximumPoolSize(10);
Expand Down

0 comments on commit de9356e

Please sign in to comment.