Matt Nelson
10/07/2023, 12:15 PM.jar
files includedjvm
publication, no additional .jar
files are includedmbonnin
10/07/2023, 2:39 PMdriver-jvm-[...].jar
tasks.named("jvmJar").configure {
this as Jar
from("libs/sqlite-driver.jar)
from("libs/sqlite-jdbc.jar)
}
Matt Nelson
10/07/2023, 2:45 PMtasks.withType<Jar> {
if (name != "jvmJar") return@withType
from(jdbcRepack.jarSQLiteJDBCJvm)
from(jdbcRepack.jarSQLDelightDriver)
}
resulting .jar
file includes the 2 jars. Will this work for library consumers, them being packaged this way?mbonnin
10/07/2023, 2:46 PMMatt Nelson
10/07/2023, 2:48 PMxerial/sqlite-jdbc
whereby the native binaries are compiled using SQLite3MultipleCiphers
, so.mbonnin
10/07/2023, 2:49 PMMatt Nelson
10/07/2023, 2:50 PMmbonnin
10/07/2023, 2:51 PMthe JNI interface cannot be relocatedyou "just" have to do it manually 🙈
Matt Nelson
10/07/2023, 2:51 PMmbonnin
10/07/2023, 2:51 PMfrom()
call that "expands" the zip. Maybe zipTree or something
tasks.withType<Jar> {
if (name != "jvmJar") return@withType
from(zipTree(jdbcRepack.jarSQLiteJDBCJvm))
}
.so
native libs tooMatt Nelson
10/07/2023, 2:57 PMzipTree
includes them