45 lines
1.2 KiB
Groovy
45 lines
1.2 KiB
Groovy
plugins {
|
|
id 'java-library'
|
|
id 'java-test-fixtures'
|
|
}
|
|
|
|
apply from: '../../android/dependencies.gradle'
|
|
apply from: '../../java_tools/dependencies.gradle'
|
|
|
|
configurations {
|
|
all*.exclude group: 'org.hamcrest', module: 'hamcrest-core'
|
|
}
|
|
|
|
tasks.withType(Test) {
|
|
systemProperty "java.library.path", "../../unit_tests/build"
|
|
}
|
|
|
|
dependencies {
|
|
implementation global_libs.javaxJson
|
|
api global_libs.jcip
|
|
api project(':models')
|
|
api project(':core_io')
|
|
api project(':logging')
|
|
|
|
implementation group: 'com.fazecast', name: 'jSerialComm', version: '2.9.2'
|
|
implementation group: 'tel.schich', name: 'javacan-core', version: '3.2.0'
|
|
implementation global_libs.json
|
|
implementation ts_plugin_libs.httpclient
|
|
|
|
// junit 4.13 does not mix well with httpclient :(
|
|
testImplementation group: 'junit', name: 'junit', version: '4.8.2'
|
|
testFixturesImplementation global_libs.mockito
|
|
testFixturesApi global_libs.annotations
|
|
testFixturesApi global_libs.junit
|
|
}
|
|
|
|
compileJava {
|
|
doLast {
|
|
// gradle java plugin always generates JNI headers
|
|
copy {
|
|
from 'build/generated/sources/headers/java/main'
|
|
into "../../unit_tests/native"
|
|
include 'com*.h'
|
|
}
|
|
}
|
|
} |