sqlite4java

How can I set up a simple gradle project that uses sqlite4java?

我与影子孤独终老i 提交于 2019-11-29 13:13:40
I'm starting a simple java test project using sqlite4java and building using java. I can get the core sqlite4java library downloaded easily, but I'm not sure what the best (any!) way to get gradle to download the native libraries and put them in the right place. This is my build.gradle file: apply plugin: 'java' /* We use Java 1.7 */ sourceCompatibility = 1.7 targetCompatibility = 1.7 version = '1.0' repositories { mavenCentral() } sourceSets { main { java.srcDir 'src' output.classesDir = 'build/main' } test { java.srcDir 'test' output.classesDir = 'build/test' } } dependencies { testCompile

How can I set up a simple gradle project that uses sqlite4java?

∥☆過路亽.° 提交于 2019-11-28 07:09:39
问题 I'm starting a simple java test project using sqlite4java and building using java. I can get the core sqlite4java library downloaded easily, but I'm not sure what the best (any!) way to get gradle to download the native libraries and put them in the right place. This is my build.gradle file: apply plugin: 'java' /* We use Java 1.7 */ sourceCompatibility = 1.7 targetCompatibility = 1.7 version = '1.0' repositories { mavenCentral() } sourceSets { main { java.srcDir 'src' output.classesDir =