#1539 Columns handler: finishing touches

- Add relocation rule for shading of the library
- Fix SQLite connection not being refreshed on reload
This commit is contained in:
ljacqu 2018-04-02 23:19:13 +02:00
parent ad9e6dbb6d
commit fc54c0311b
2 changed files with 5 additions and 2 deletions

View File

@ -258,6 +258,10 @@
<pattern>ch.jalu.configme</pattern>
<shadedPattern>fr.xephi.authme.libs.ch.jalu.configme</shadedPattern>
</relocation>
<relocation>
<pattern>ch.jalu.datasourcecolumns</pattern>
<shadedPattern>fr.xephi.authme.libs.ch.jalu.datasourcecolumns</shadedPattern>
</relocation>
<relocation>
<pattern>com.zaxxer.hikari</pattern>
<shadedPattern>fr.xephi.authme.libs.com.zaxxer.hikari</shadedPattern>
@ -792,7 +796,6 @@
<groupId>ch.jalu</groupId>
<artifactId>datasourcecolumns</artifactId>
<version>0.1-SNAPSHOT</version>
<scope>compile</scope>
<optional>true</optional>
</dependency>

View File

@ -60,7 +60,6 @@ public class SQLite extends AbstractSqlDataSource {
ConsoleLogger.logException("Error during SQLite initialization:", ex);
throw ex;
}
this.columnsHandler = AuthMeColumnsHandler.createForSqlite(con, settings);
}
@VisibleForTesting
@ -86,6 +85,7 @@ public class SQLite extends AbstractSqlDataSource {
ConsoleLogger.debug("SQLite driver loaded");
this.con = DriverManager.getConnection("jdbc:sqlite:plugins/AuthMe/" + database + ".db");
this.columnsHandler = AuthMeColumnsHandler.createForSqlite(con, settings);
}
/**