Skip to content

Commit

Permalink
Gradle switch to use locally compiled version to avoid dependency cycles
Browse files Browse the repository at this point in the history
  • Loading branch information
greenrobot committed Apr 17, 2018
1 parent ffb3217 commit 2a53b44
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 13 deletions.
16 changes: 9 additions & 7 deletions tests/objectbox-java-test/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,14 @@ dependencies {
compile project(':objectbox-java')
compile 'org.greenrobot:essentials:3.0.0-RC1'

if(isLinux64) {
compile "io.objectbox:objectbox-linux:${rootProject.version}"
} else if(isMac64) {
compile "io.objectbox:objectbox-macos:${rootProject.version}"
} else if(isWin64) {
compile "io.objectbox:objectbox-windows:${rootProject.version}"
if (!noObjectBoxTestDepencies) { // Switch to use locally compiled version to avoid dependency cycles
if (isLinux64) {
compile "io.objectbox:objectbox-linux:${rootProject.version}"
} else if (isMac64) {
compile "io.objectbox:objectbox-macos:${rootProject.version}"
} else if (isWin64) {
compile "io.objectbox:objectbox-windows:${rootProject.version}"
}
}

testCompile 'junit:junit:4.12'
Expand All @@ -28,7 +30,7 @@ test {
testLogging {
showStandardStreams = true
exceptionFormat = 'full'
displayGranularity=2
displayGranularity = 2
events 'started', 'passed'
}
}
14 changes: 8 additions & 6 deletions tests/test-proguard/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,14 @@ dependencies {
compile project(':objectbox-java')
compile project(':objectbox-java-api')

if(isLinux64) {
compile "io.objectbox:objectbox-linux:${rootProject.version}"
} else if(isMac64) {
compile "io.objectbox:objectbox-macos:${rootProject.version}"
} else if(isWin64) {
compile "io.objectbox:objectbox-windows:${rootProject.version}"
if (!noObjectBoxTestDepencies) { // Switch to use locally compiled version to avoid dependency cycles
if (isLinux64) {
compile "io.objectbox:objectbox-linux:${rootProject.version}"
} else if (isMac64) {
compile "io.objectbox:objectbox-macos:${rootProject.version}"
} else if (isWin64) {
compile "io.objectbox:objectbox-windows:${rootProject.version}"
}
}

testCompile 'junit:junit:4.12'
Expand Down

0 comments on commit 2a53b44

Please sign in to comment.