File tree Expand file tree Collapse file tree 7 files changed +29
-30
lines changed
Expand file tree Collapse file tree 7 files changed +29
-30
lines changed Original file line number Diff line number Diff line change 1- apply plugin : ' java'
1+ apply plugin : ' java-library '
22
33sourceCompatibility = JavaVersion . VERSION_1_8
44targetCompatibility = JavaVersion . VERSION_1_8
Original file line number Diff line number Diff line change 1- apply plugin : ' java'
1+ apply plugin : ' java-library '
22apply plugin : " com.github.spotbugs"
33
44sourceCompatibility = JavaVersion . VERSION_1_8
55targetCompatibility = JavaVersion . VERSION_1_8
66
77dependencies {
8- compile fileTree(include : [' *.jar' ], dir : ' libs' )
9- compile project(' :objectbox-java-api' )
10- compile ' org.greenrobot:essentials:3.0.0-RC1'
11- compile ' com.google.flatbuffers:flatbuffers-java:1.12.0'
12- compile ' com.google.code.findbugs:jsr305:3.0.2'
8+ api project(' :objectbox-java-api' )
9+ implementation ' org.greenrobot:essentials:3.0.0-RC1'
10+ implementation ' com.google.flatbuffers:flatbuffers-java:1.12.0'
11+ api ' com.google.code.findbugs:jsr305:3.0.2'
1312}
1413
1514spotbugs {
Original file line number Diff line number Diff line change @@ -48,9 +48,9 @@ artifacts {
4848}
4949
5050dependencies {
51- compile " org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version "
51+ implementation " org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version "
5252
53- compile project(' :objectbox-java' )
53+ api project(' :objectbox-java' )
5454}
5555
5656
Original file line number Diff line number Diff line change 1- apply plugin : ' java'
1+ apply plugin : ' java-library '
22
33sourceCompatibility = JavaVersion . VERSION_1_8
44targetCompatibility = JavaVersion . VERSION_1_8
55
66dependencies {
7- compile project(' :objectbox-java' )
8- compile ' io.reactivex.rxjava2:rxjava:2.2.18'
7+ api project(' :objectbox-java' )
8+ api ' io.reactivex.rxjava2:rxjava:2.2.18'
99
10- testCompile " junit:junit:$junit_version "
11- testCompile " org.mockito:mockito-core:$mockito_version "
10+ testImplementation " junit:junit:$junit_version "
11+ testImplementation " org.mockito:mockito-core:$mockito_version "
1212}
1313
1414task javadocJar (type : Jar , dependsOn : javadoc) {
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ buildscript {
22 ext. javadocDir = " $buildDir /docs/javadoc"
33}
44
5- apply plugin : ' java'
5+ apply plugin : ' java-library '
66apply plugin : ' kotlin'
77apply plugin : ' org.jetbrains.dokka'
88
@@ -33,13 +33,13 @@ dokka {
3333}
3434
3535dependencies {
36- compile project(' :objectbox-java' )
37- compile ' io.reactivex.rxjava3:rxjava:3.0.1'
36+ api project(' :objectbox-java' )
37+ api ' io.reactivex.rxjava3:rxjava:3.0.1'
3838 compileOnly " org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version "
3939
40- testCompile " org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version "
41- testCompile " junit:junit:$junit_version "
42- testCompile " org.mockito:mockito-core:$mockito_version "
40+ testImplementation " org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version "
41+ testImplementation " junit:junit:$junit_version "
42+ testImplementation " org.mockito:mockito-core:$mockito_version "
4343}
4444
4545task javadocJar (type : Jar , dependsOn : dokka) {
Original file line number Diff line number Diff line change 1- apply plugin : ' java'
1+ apply plugin : ' java-library '
22
33uploadArchives. enabled = false
44
@@ -22,18 +22,18 @@ repositories {
2222}
2323
2424dependencies {
25- compile project(' :objectbox-java' )
26- compile ' org.greenrobot:essentials:3.0.0-RC1'
25+ implementation project(' :objectbox-java' )
26+ implementation ' org.greenrobot:essentials:3.0.0-RC1'
2727
2828 // Check flag to use locally compiled version to avoid dependency cycles
2929 if (! project. hasProperty(' noObjectBoxTestDepencies' ) || ! noObjectBoxTestDepencies) {
3030 println " Using $ob_native_dep "
31- compile ob_native_dep
31+ implementation ob_native_dep
3232 } else {
3333 println " Did NOT add native dependency"
3434 }
3535
36- testCompile " junit:junit:$junit_version "
36+ testImplementation " junit:junit:$junit_version "
3737}
3838
3939test {
Original file line number Diff line number Diff line change 1- apply plugin : ' java'
1+ apply plugin : ' java-library '
22
33uploadArchives. enabled = false
44
@@ -22,16 +22,16 @@ repositories {
2222}
2323
2424dependencies {
25- compile project(' :objectbox-java' )
26- compile project(' :objectbox-java-api' )
25+ implementation project(' :objectbox-java' )
26+ implementation project(' :objectbox-java-api' )
2727
2828 // Check flag to use locally compiled version to avoid dependency cycles
2929 if (! project. hasProperty(' noObjectBoxTestDepencies' ) || ! noObjectBoxTestDepencies) {
3030 println " Using $ob_native_dep "
31- compile ob_native_dep
31+ implementation ob_native_dep
3232 } else {
3333 println " Did NOT add native dependency"
3434 }
3535
36- testCompile " junit:junit:$junit_version "
36+ testImplementation " junit:junit:$junit_version "
3737}
You can’t perform that action at this time.
0 commit comments