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
37 lines (31 loc) · 1.12 KB
/
Copy pathbuild.gradle
File metadata and controls
37 lines (31 loc) · 1.12 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
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 project(':objectbox-java-api')
// 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"
}