Skip to content

Commit

Permalink
Upgrade sqlite-jdbc dependency (#612)
Browse files Browse the repository at this point in the history
Before sqlite-jdbc version 3.32.3.3 the test would not run on a m1 machine:

```
Error opening connection
java.sql.SQLException: Error opening connection
	at org.sqlite.SQLiteConnection.open(SQLiteConnection.java:239)
	...
	at worker.org.gradle.process.internal.worker.GradleWorkerMain.main(GradleWorkerMain.java:74)
Caused by: java.lang.Exception: No native library found for os.name=Mac, os.arch=aarch64, paths=[/Users/<user>/Library/Java/Extensions:/Library/Java/Extensions:/Network/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java:.]
	at org.sqlite.SQLiteJDBCLoader.loadSQLiteNativeLibrary(SQLiteJDBCLoader.java:367)
	at org.sqlite.SQLiteJDBCLoader.initialize(SQLiteJDBCLoader.java:67)
	at org.sqlite.core.NativeDB.load(NativeDB.java:63)
	at org.sqlite.SQLiteConnection.open(SQLiteConnection.java:235)
	... 62 more
```

The last version of sqlite-jdbc is 3.41.2.2. One can probably update to this last
version but I've just upgraded to the first version solving the issue, namely
3.32.3.3.

See https://github.com/xerial/sqlite-jdbc/releases/tag/3.32.3.3

* Moving dependency where it belongs

This was a vestige of the past when we had a default database implementation in commonMain.
  • Loading branch information
pgrange authored Mar 1, 2024
1 parent 3315713 commit e5da448
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,6 @@ kotlin {
api(ktor("network-tls"))
implementation("fr.acinq.secp256k1:secp256k1-kmp-jni-jvm:$secpJniJvmVersion")
implementation("org.slf4j:slf4j-api:1.7.36")
api("org.xerial:sqlite-jdbc:3.32.3.2")
}
}

Expand All @@ -115,6 +114,7 @@ kotlin {
implementation(kotlin("test-junit"))
implementation("org.bouncycastle:bcprov-jdk15on:1.64")
implementation("ch.qos.logback:logback-classic:1.2.3")
implementation("org.xerial:sqlite-jdbc:3.32.3.3")
}
}

Expand Down

0 comments on commit e5da448

Please sign in to comment.