Skip to content

Commit 0a2954f

Browse files
Test projects: add missing repository block.
1 parent b37e8c6 commit 0a2954f

2 files changed

Lines changed: 24 additions & 20 deletions

File tree

tests/objectbox-java-test/build.gradle

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,20 @@ uploadArchives.enabled = false
55
targetCompatibility = '1.7'
66
sourceCompatibility = '1.7'
77

8-
// Native lib might be deployed only in internal repo
9-
if (project.hasProperty('internalObjectBoxRepo')) {
10-
println("Using internal ObjectBox repository $internalObjectBoxRepo.")
11-
maven {
12-
credentials {
13-
username project.property('internalObjectBoxRepoUser')
14-
password project.property('internalObjectBoxRepoPassword')
8+
repositories {
9+
// Native lib might be deployed only in internal repo
10+
if (project.hasProperty('internalObjectBoxRepo')) {
11+
println("Using internal ObjectBox repository $internalObjectBoxRepo.")
12+
maven {
13+
credentials {
14+
username project.property('internalObjectBoxRepoUser')
15+
password project.property('internalObjectBoxRepoPassword')
16+
}
17+
url internalObjectBoxRepo
1518
}
16-
url internalObjectBoxRepo
19+
} else {
20+
println "Warning: internalObjectBoxRepo, internalObjectBoxRepoUser and internalObjectBoxRepoPassword missing from gradle.properties."
1721
}
18-
} else {
19-
println "Warning: internalObjectBoxRepo, internalObjectBoxRepoUser and internalObjectBoxRepoPassword missing from gradle.properties."
2022
}
2123

2224
dependencies {

tests/test-proguard/build.gradle

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,20 @@ uploadArchives.enabled = false
55
sourceCompatibility = 1.7
66
targetCompatibility = 1.7
77

8-
// Native lib might be deployed only in internal repo
9-
if (project.hasProperty('internalObjectBoxRepo')) {
10-
println("Using internal ObjectBox repository $internalObjectBoxRepo.")
11-
maven {
12-
credentials {
13-
username project.property('internalObjectBoxRepoUser')
14-
password project.property('internalObjectBoxRepoPassword')
8+
repositories {
9+
// Native lib might be deployed only in internal repo
10+
if (project.hasProperty('internalObjectBoxRepo')) {
11+
println("Using internal ObjectBox repository $internalObjectBoxRepo.")
12+
maven {
13+
credentials {
14+
username project.property('internalObjectBoxRepoUser')
15+
password project.property('internalObjectBoxRepoPassword')
16+
}
17+
url internalObjectBoxRepo
1518
}
16-
url internalObjectBoxRepo
19+
} else {
20+
println "Warning: internalObjectBoxRepo, internalObjectBoxRepoUser and internalObjectBoxRepoPassword missing from gradle.properties."
1721
}
18-
} else {
19-
println "Warning: internalObjectBoxRepo, internalObjectBoxRepoUser and internalObjectBoxRepoPassword missing from gradle.properties."
2022
}
2123

2224
dependencies {

0 commit comments

Comments
 (0)