Matt Nelson
10/07/2023, 12:15 PMMatt Nelson
10/07/2023, 12:18 PMMatt Nelson
10/07/2023, 2:15 PM.jar
files includedMatt Nelson
10/07/2023, 2:15 PMjvm
publication, no additional .jar
files are includedmbonnin
10/07/2023, 2:39 PMdriver-jvm-[...].jar
mbonnin
10/07/2023, 2:40 PMtasks.named("jvmJar").configure {
this as Jar
from("libs/sqlite-driver.jar)
from("libs/sqlite-jdbc.jar)
}
mbonnin
10/07/2023, 2:40 PMMatt 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 PMmbonnin
10/07/2023, 2:47 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 PMMatt Nelson
10/07/2023, 2:51 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 PMmbonnin
10/07/2023, 2:52 PMmbonnin
10/07/2023, 2:53 PMfrom()
call that "expands" the zip. Maybe zipTree or something
tasks.withType<Jar> {
if (name != "jvmJar") return@withType
from(zipTree(jdbcRepack.jarSQLiteJDBCJvm))
}
mbonnin
10/07/2023, 2:54 PMmbonnin
10/07/2023, 2:54 PM.so
native libs tooMatt Nelson
10/07/2023, 2:57 PMzipTree
includes themMatt Nelson
10/07/2023, 3:29 PM