blob: 2bfd6494c56a3d349bffe9b38c436210349af8da [file] [log] [blame]
def androidApi = hasProperty("androidApi") ? ext.androidApi.toInteger() : AndroidSdk.latestVersion
def robolectricVersion = AndroidSdk.versions[androidApi]
logger.info "Android API: $androidApi — $robolectricVersion"
compileJava.onlyIf { false }
dependencies {
// Project dependencies
compile project(":robolectric-annotations")
compile project(":robolectric-resources")
compile project(":robolectric-utils")
// Compile dependencies
provided "com.intellij:annotations:12.0"
compile "com.almworks.sqlite4java:sqlite4java:0.282"
provided("org.robolectric:android-all:$robolectricVersion") { force = true }
compile "com.ibm.icu:icu4j:53.1"
runtime "com.github.axet.litedb:libsqlite:0.282-3:natives-mac-x86_64"
runtime "com.github.axet.litedb:libsqlite:0.282-3:natives-linux-x86"
runtime "com.github.axet.litedb:libsqlite:0.282-3:natives-linux-x86_64"
runtime "com.github.axet.litedb:libsqlite:0.282-3:natives-windows-x86"
runtime "com.github.axet.litedb:libsqlite:0.282-3:natives-windows-x86_64"
// Testing dependencies
testCompile "junit:junit:4.8.2"
testCompile "org.hamcrest:hamcrest-core:1.3"
testCompile "org.assertj:assertj-core:2.0.0"
}