Skip to content

Commit b4c8fd8

Browse files
author
BastouP411
committed
Fixed bug that prevented SQL Driver load in compiled environement.
1 parent 556ae13 commit b4c8fd8

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ apply plugin: 'eclipse'
1616
apply plugin: 'maven-publish'
1717
apply plugin: "com.wynprice.cursemaven"
1818

19-
version = '1.1.0'
19+
version = '1.1.1'
2020
group = 'fr.bastoup.bperipherals' // http://maven.apache.org/guides/mini/guide-naming-conventions.html
2121
archivesBaseName = 'bperipherals'
2222

src/main/java/fr/bastoup/bperipherals/database/DBFactory.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,14 @@ public class DBFactory {
1212
private static final String URL_PREFIX = "jdbc:sqlite:";
1313
private static final String URL_SUFFIX = "?limit_attached=0";
1414

15+
static {
16+
try {
17+
Class.forName("org.sqlite.JDBC");
18+
} catch (ClassNotFoundException e) {
19+
throw new RuntimeException(e);
20+
}
21+
}
22+
1523
public static DBFactory getInstance() {
1624

1725
return new DBFactory();

src/main/resources/META-INF/mods.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ issueTrackerURL = "https://github.com/BastouP411/bperipherals/issues"
55

66
[[mods]]
77
modId = "bperipherals"
8-
version = "1.1.0"
8+
version = "1.1.1"
99
displayName = "BPeripherals"
1010
#updateJSONURL="http://myurl.me/"
11-
#displayURL="http://example.com/"
11+
displayURL = "https://github.com/BastouP411/bperipherals/wiki"
1212
logoFile = "logo.png"
1313
#credits="Thanks for this example mod goes to Java"
1414
authors = "BastouP"

0 commit comments

Comments
 (0)