File tree Expand file tree Collapse file tree 3 files changed +12
-12
lines changed Expand file tree Collapse file tree 3 files changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -11,22 +11,22 @@ buildscript {
11
11
def versionPostFixValue = project. findProperty(' versionPostFix' )
12
12
def versionPostFix = versionPostFixValue ? " -$versionPostFixValue " : ' '
13
13
ob_version = objectboxVersionNumber + (objectboxVersionRelease? " " : " $versionPostFix -SNAPSHOT" )
14
- println " ObjectBox Java version $ob_version "
15
14
16
- // Core version for tests
15
+ // Native library version for tests
17
16
// Be careful to diverge here; easy to forget and hard to find JNI problems
18
- ob_native_version = objectboxVersionNumber + (objectboxVersionRelease? " " : " -dev-SNAPSHOT" )
19
-
17
+ def nativeVersion = objectboxVersionNumber + (objectboxVersionRelease? " " : " -dev-SNAPSHOT" )
20
18
def osName = System . getProperty(" os.name" ). toLowerCase()
21
- objectboxPlatform = osName. contains(' linux' ) ? ' linux'
19
+ def objectboxPlatform = osName. contains(' linux' ) ? ' linux'
22
20
: osName. contains(" windows" )? ' windows'
23
21
: osName. contains(" mac" )? ' macos'
24
22
: ' unsupported'
23
+ ob_native_dep = " io.objectbox:objectbox-$objectboxPlatform :$nativeVersion "
24
+
25
+ junit_version = ' 4.13'
25
26
26
- objectboxNativeDependency = " io.objectbox:objectbox- $o bjectboxPlatform : $o b_native_version "
27
- println " ObjectBox native dependency: $ objectboxNativeDependency "
27
+ println " version= $o b_version "
28
+ println " objectboxNativeDependency= $o b_native_dep "
28
29
}
29
- ext. junit_version = ' 4.13'
30
30
31
31
repositories {
32
32
mavenCentral()
Original file line number Diff line number Diff line change @@ -27,8 +27,8 @@ dependencies {
27
27
28
28
// Check flag to use locally compiled version to avoid dependency cycles
29
29
if (! project. hasProperty(' noObjectBoxTestDepencies' ) || ! noObjectBoxTestDepencies) {
30
- println " Using $o bjectboxNativeDependency "
31
- compile " $o bjectboxNativeDependency "
30
+ println " Using $o b_native_dep "
31
+ compile ob_native_dep
32
32
} else {
33
33
println " Did NOT add native dependency"
34
34
}
Original file line number Diff line number Diff line change @@ -27,8 +27,8 @@ dependencies {
27
27
28
28
// Check flag to use locally compiled version to avoid dependency cycles
29
29
if (! project. hasProperty(' noObjectBoxTestDepencies' ) || ! noObjectBoxTestDepencies) {
30
- println " Using $o bjectboxNativeDependency "
31
- compile " $o bjectboxNativeDependency "
30
+ println " Using $o b_native_dep "
31
+ compile ob_native_dep
32
32
} else {
33
33
println " Did NOT add native dependency"
34
34
}
You can’t perform that action at this time.
0 commit comments