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.53 KB
/
Copy pathbuild.gradle
File metadata and controls
50 lines (42 loc) · 1.53 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'
uploadArchives.enabled = false
targetCompatibility = '1.8'
sourceCompatibility = '1.8'
repositories {
// Native lib might be deployed only in internal repo
if (project.hasProperty('internalObjectBoxRepo')) {
println("Using internal ObjectBox repository $internalObjectBoxRepo.")
maven {
credentials {
username project.property('internalObjectBoxRepoUser')
password project.property('internalObjectBoxRepoPassword')
}
url internalObjectBoxRepo
}
} else {
println "Warning: internalObjectBoxRepo, internalObjectBoxRepoUser and internalObjectBoxRepoPassword missing from gradle.properties."
}
}
dependencies {
compile project(':objectbox-java')
compile '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 $objectboxNativeDependency"
compile "$objectboxNativeDependency"
} else {
println "Did NOT add native dependency"
}
testCompile 'junit:junit:4.12'
}
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'
}
}