GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — improve and update build.gradle files, e.g. add buildscript.ext.objec… · wuyang049679/objectbox-java@b5c2871

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • build.gradle
  • objectbox-java-api
    • build.gradle
  • objectbox-kotlin
    • build.gradle
  • objectbox-rxjava
    • build.gradle
  • tests
    • objectbox-java-test
      • build.gradle
    • test-proguard
      • build.gradle
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎build.gradle‎

Copy file name to clipboardExpand all lines: build.gradle
+11-11Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,22 +7,22 @@ buildscript {
77
def versionPostFixValue = project.findProperty('versionPostFix')
88
def versionPostFix = versionPostFixValue ? "-$versionPostFixValue" : ''
99
ob_version = "2.4.0$versionPostFix-SNAPSHOT"
10-
10+
println "ObjectBox Java version $ob_version"
11+
12+
ob_expected_version = project.hasProperty('expectedVersion') ? project.property('expectedVersion') : 'UNDEFINED'
13+
1114
// Core version for tests
1215
// Be careful to diverge here; easy to forget and hard to find JNI problems
1316
ob_native_version = "2.4.0-dev-SNAPSHOT"
1417

15-
println "ObjectBox Java version $ob_version. Tests use Core version $ob_native_version."
16-
17-
ob_expected_version = project.hasProperty('expectedVersion') ? project.property('expectedVersion') : 'UNDEFINED'
18+
def osName = System.getProperty("os.name").toLowerCase()
19+
objectboxPlatform = osName.contains('linux') ? 'linux'
20+
: osName.contains("windows")? 'windows'
21+
: osName.contains("mac")? 'macos'
22+
: 'unsupported'
1823

19-
isLinux = System.getProperty("os.name").contains("Linux")
20-
isMac = !isLinux && System.getProperty("os.name").toLowerCase().contains("mac")
21-
isWin = System.getProperty("os.name").toLowerCase().contains("windows")
22-
is64 = System.getProperty("sun.arch.data.model") == "64"
23-
isLinux64 = isLinux && is64
24-
isMac64 = isMac && is64
25-
isWin64 = isWin && is64
24+
objectboxNativeDependency = "io.objectbox:objectbox-$objectboxPlatform:$ob_native_version"
25+
println "ObjectBox native dependency: $objectboxNativeDependency"
2626
}
2727

2828
repositories {
Collapse file

‎objectbox-java-api/build.gradle‎

Copy file name to clipboardExpand all lines: objectbox-java-api/build.gradle
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ sourceCompatibility = 1.7
88
javadoc {
99
failOnError = false
1010
title = " ObjectBox API ${version} API"
11-
options.bottom = 'Available under the Apache License, Version 2.0 - <i>Copyright &#169; 2017 <a href="http://objectbox.io/">ObjectBox Ltd</a>. All Rights Reserved.</i>'
11+
options.bottom = 'Available under the Apache License, Version 2.0 - <i>Copyright &#169; 2017-2019 <a href="http://objectbox.io/">ObjectBox Ltd</a>. All Rights Reserved.</i>'
1212
doLast {
1313
copy {
1414
from '../javadoc-style'
Collapse file

‎objectbox-kotlin/build.gradle‎

Copy file name to clipboardExpand all lines: objectbox-kotlin/build.gradle
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ version= rootProject.version
33

44
buildscript {
55
ext.javadocDir = "$buildDir/docs/javadoc"
6-
ext.kotlin_version = '1.3.21'
7-
ext.dokka_version = '0.9.17'
6+
ext.kotlin_version = '1.3.31'
7+
ext.dokka_version = '0.9.18'
88

99
repositories {
1010
mavenCentral()
Collapse file

‎objectbox-rxjava/build.gradle‎

Copy file name to clipboardExpand all lines: objectbox-rxjava/build.gradle
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ sourceCompatibility = 1.7
77

88
dependencies {
99
compile project(':objectbox-java')
10-
compile 'io.reactivex.rxjava2:rxjava:2.2.7'
10+
compile 'io.reactivex.rxjava2:rxjava:2.2.9'
1111

1212
testCompile 'junit:junit:4.12'
1313
testCompile 'org.mockito:mockito-core:2.25.1'
@@ -17,7 +17,7 @@ javadoc {
1717
failOnError = false
1818
title = "ObjectBox RxJava2 ${version} API"
1919
excludes = [] // Unfinished APIs if any
20-
options.bottom = 'Available under the Apache License, Version 2.0 - <i>Copyright &#169; 2018 <a href="http://objectbox.io/">ObjectBox Ltd</a>. All Rights Reserved.</i>'
20+
options.bottom = 'Available under the Apache License, Version 2.0 - <i>Copyright &#169; 2018-2019 <a href="http://objectbox.io/">ObjectBox Ltd</a>. All Rights Reserved.</i>'
2121
doLast {
2222
copy {
2323
from '../javadoc-style/'
Collapse file

‎tests/objectbox-java-test/build.gradle‎

Copy file name to clipboardExpand all lines: tests/objectbox-java-test/build.gradle
+4-7Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,10 @@ dependencies {
2727

2828
// Check flag to use locally compiled version to avoid dependency cycles
2929
if (!project.hasProperty('noObjectBoxTestDepencies') || !noObjectBoxTestDepencies) {
30-
if (isLinux64) {
31-
compile "io.objectbox:objectbox-linux:$ob_native_version"
32-
} else if (isMac64) {
33-
compile "io.objectbox:objectbox-macos:$ob_native_version"
34-
} else if (isWin64) {
35-
compile "io.objectbox:objectbox-windows:$ob_native_version"
36-
}
30+
println "Using $objectboxNativeDependency"
31+
compile "$objectboxNativeDependency"
32+
} else {
33+
println "Did NOT add native dependency"
3734
}
3835

3936
testCompile 'junit:junit:4.12'
Collapse file

‎tests/test-proguard/build.gradle‎

Copy file name to clipboardExpand all lines: tests/test-proguard/build.gradle
+4-7Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,10 @@ dependencies {
2727

2828
// Check flag to use locally compiled version to avoid dependency cycles
2929
if (!project.hasProperty('noObjectBoxTestDepencies') || !noObjectBoxTestDepencies) {
30-
if (isLinux64) {
31-
compile "io.objectbox:objectbox-linux:$ob_native_version"
32-
} else if (isMac64) {
33-
compile "io.objectbox:objectbox-macos:$ob_native_version"
34-
} else if (isWin64) {
35-
compile "io.objectbox:objectbox-windows:$ob_native_version"
36-
}
30+
println "Using $objectboxNativeDependency"
31+
compile "$objectboxNativeDependency"
32+
} else {
33+
println "Did NOT add native dependency"
3734
}
3835

3936
testCompile 'junit:junit:4.12'

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.