forked from objectbox/objectbox-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
50 lines (42 loc) · 1.48 KB
/
Copy pathbuild.gradle
File metadata and controls
50 lines (42 loc) · 1.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
apply plugin: 'java-library'
uploadArchives.enabled = false
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
repositories {
// Native lib might be deployed only in internal repo
if (project.hasProperty('internalObjectBoxRepo')) {
println "internalObjectBoxRepo=$internalObjectBoxRepo added to repositories."
maven {
credentials {
username internalObjectBoxRepoUser
password internalObjectBoxRepoPassword
}
url internalObjectBoxRepo
}
} else {
println "WARNING: Property internalObjectBoxRepo not set."
}
}
dependencies {
implementation project(':objectbox-java')
implementation 'org.greenrobot:essentials:3.0.0-RC1'
// Check flag to use locally compiled version to avoid dependency cycles
if (!project.hasProperty('noObjectBoxTestDepencies') || !noObjectBoxTestDepencies) {
println "Using $ob_native_dep"
implementation ob_native_dep
} else {
println "Did NOT add native dependency"
}
testImplementation "junit:junit:$junit_version"
}
test {
// This is pretty useless now because it floods console with warnings about internal Java classes
// However we might check from time to time, also with Java 9.
// jvmArgs '-Xcheck:jni'
testLogging {
showStandardStreams = true
exceptionFormat = 'full'
displayGranularity = 2
events 'started', 'passed'
}
}