Skip to content

Commit

Permalink
Update spigot-api and ormlite-jdbc
Browse files Browse the repository at this point in the history
This might fix the Xerial driver warning from #9/BUKKIT-1073
  • Loading branch information
Phoenix616 committed Apr 18, 2018
1 parent 88bffc6 commit 34b6ab2
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
10 changes: 6 additions & 4 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
<dependency>
<groupId>com.j256.ormlite</groupId>
<artifactId>ormlite-jdbc</artifactId>
<version>4.48</version>
<version>5.1</version>
<scope>compile</scope>
</dependency>

Expand All @@ -77,7 +77,7 @@
<dependency>
<groupId>org.spigotmc</groupId>
<artifactId>spigot-api</artifactId>
<version>1.12-R0.1-SNAPSHOT</version>
<version>1.12.2-R0.1-SNAPSHOT</version>
<scope>provided</scope>
</dependency>

Expand All @@ -101,7 +101,8 @@
<dependency>
<groupId>org.bstats</groupId>
<artifactId>bstats-bukkit-lite</artifactId>
<version>1.1</version>
<version>1.2</version>
<scope>compile</scope>
</dependency>

<dependency>
Expand All @@ -125,7 +126,7 @@
<groupId>info.somethingodd</groupId>
<artifactId>odditem</artifactId>
<version>0.9.5</version>
<scope>compile</scope>
<scope>provided</scope>
<exclusions>
<exclusion>
<groupId>org.bukkit</groupId>
Expand Down Expand Up @@ -249,6 +250,7 @@
</exclusion>
</exclusions>
</dependency>

<dependency>
<groupId>com.bekvon.bukkit</groupId>
<artifactId>residence</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/Acrobot/ChestShop/ChestShop.java
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ private void startStatistics() {
} catch (IOException ex) {
ChestShop.getBukkitLogger().severe("There was an error while submitting MCStats statistics.");
}
new org.bstats.MetricsLite(this);
new org.bstats.bukkit.MetricsLite(this);
}

private static final int PROJECT_BUKKITDEV_ID = 31263;
Expand Down
7 changes: 6 additions & 1 deletion src/main/java/com/Acrobot/ChestShop/Database/Migrations.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import com.j256.ormlite.dao.Dao;
import com.j256.ormlite.dao.GenericRawResults;

import java.io.IOException;
import java.sql.SQLException;
import java.util.Date;
import java.util.UUID;
Expand Down Expand Up @@ -104,7 +105,11 @@ private static boolean migrateTo3() {
lastInfo = System.currentTimeMillis();
}
}
results.close();
try {
results.close();
} catch (IOException e1) {
ChestShop.getBukkitLogger().log(Level.WARNING, "Error while closing results! " + e.getMessage());
}
ChestShop.getBukkitLogger().log(Level.INFO, success + " accounts successfully migrated. " + error + " accounts failed to migrate!");
}
ChestShop.getBukkitLogger().log(Level.INFO, "Migration of accounts table finished in " + (System.currentTimeMillis() - start) / 1000.0 + "s!");
Expand Down

1 comment on commit 34b6ab2

@Phoenix616
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I meant issue #49 :/

Please sign in to comment.