Skip to content

Commit f39e34a

Browse files
authored
Build JNI binaries against PDAL 2.1.0 (#44)
1 parent f060dc5 commit f39e34a

File tree

13 files changed

+44
-48
lines changed

13 files changed

+44
-48
lines changed

.github/workflows/actions.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ jobs:
99
strategy:
1010
matrix:
1111
os: [ubuntu-latest]
12-
scala: [2.13.1, 2.12.10]
12+
scala: [2.13.2, 2.12.10]
1313

1414
container:
15-
image: daunnc/pdal-debian:2.0.1
15+
image: daunnc/pdal-debian:2.1.0
1616

1717
steps:
1818
- name: Checkout
@@ -50,7 +50,7 @@ jobs:
5050
strategy:
5151
matrix:
5252
os: [macos-latest]
53-
scala: [2.13.1, 2.12.10]
53+
scala: [2.13.2, 2.12.10]
5454

5555
steps:
5656
- name: Checkout

CHANGELOG.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66

77
## [Unreleased]
88

9+
## [2.1.5] - 2020-05-16
910
### Changed
1011
- Update filter.stats [#39](https://github.com/PDAL/java/pull/39)
12+
- Build JNI binaries against PDAL 2.1.0 [#43](https://github.com/PDAL/java/issues/43)
1113

1214
## [2.1.5-RC3] - 2020-03-13
1315
### Fixed
@@ -104,7 +106,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
104106
### Changed
105107
- Moved from the PDAL repo and established own lifecycle.
106108

107-
[Unreleased]: https://github.com/PDAL/java/compare/2.1.5-RC3...HEAD
109+
[Unreleased]: https://github.com/PDAL/java/compare/2.1.5...HEAD
110+
[2.1.5]: https://github.com/PDAL/java/compare/2.1.5-RC3...2.1.5
108111
[2.1.5-RC3]: https://github.com/PDAL/java/compare/2.1.5-RC2...2.1.5-RC3
109112
[2.1.5-RC2]: https://github.com/PDAL/java/compare/2.1.5-RC1...2.1.5-RC2
110113
[2.1.5-RC1]: https://github.com/PDAL/java/compare/2.1.4...2.1.5-RC1

build.sbt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ name := "pdal-jni"
22

33
lazy val commonSettings = Seq(
44
version := "2.1.5" + Environment.versionSuffix,
5-
scalaVersion := "2.13.1",
6-
crossScalaVersions := Seq("2.13.1", "2.12.10", "2.11.12"),
5+
scalaVersion := "2.13.2",
6+
crossScalaVersions := Seq("2.13.2", "2.12.10", "2.11.12"),
77
organization := "io.pdal",
88
description := "PDAL JNI bindings",
99
licenses := Seq("BSD" -> url("https://github.com/PDAL/PDAL/blob/master/LICENSE.txt")),
10-
homepage := Some(url("http://www.pdal.io")),
10+
homepage := Some(url("https://www.pdal.io")),
1111
publishMavenStyle := true,
1212
pomIncludeRepository := { _ => false },
1313
scalacOptions ++= Seq(
@@ -43,7 +43,7 @@ lazy val commonSettings = Seq(
4343
<developer>
4444
<id>pomadchin</id>
4545
<name>Grigory Pomadchin</name>
46-
<url>http://github.com/pomadchin/</url>
46+
<url>https://github.com/pomadchin/</url>
4747
</developer>
4848
</developers>
4949
),

examples/pdal-jni/build.sbt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name := "pdal-jni"
22
version := "0.1.0-SNAPSHOT"
3-
scalaVersion := "2.13.1"
4-
crossScalaVersions := Seq("2.13.1", "2.12.10", "2.11.12")
3+
scalaVersion := "2.13.2"
4+
crossScalaVersions := Seq("2.13.2", "2.12.10", "2.11.12")
55
organization := "com.azavea"
66
scalacOptions ++= Seq(
77
"-deprecation",
@@ -21,7 +21,7 @@ resolvers ++= Seq(
2121

2222
fork := true
2323

24-
val pdalVersion = "2.1.5-RC3"
24+
val pdalVersion = "2.1.5"
2525

2626
libraryDependencies ++= Seq(
2727
"io.pdal" %% "pdal" % pdalVersion,

examples/pdal-jni/sbt

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66

77
set -o pipefail
88

9-
declare -r sbt_release_version="1.3.6"
10-
declare -r sbt_unreleased_version="1.3.6"
9+
declare -r sbt_release_version="1.3.10"
10+
declare -r sbt_unreleased_version="1.3.10"
1111

12-
declare -r latest_213="2.13.1"
12+
declare -r latest_213="2.13.2"
1313
declare -r latest_212="2.12.10"
1414
declare -r latest_211="2.11.12"
1515
declare -r latest_210="2.10.7"
@@ -24,7 +24,7 @@ declare -r sbt_launch_mvn_release_repo="https://repo.scala-sbt.org/scalasbt/mave
2424
declare -r sbt_launch_mvn_snapshot_repo="https://repo.scala-sbt.org/scalasbt/maven-snapshots"
2525

2626
declare -r default_jvm_opts_common="-Xms512m -Xss2m -XX:MaxInlineLevel=18"
27-
declare -r noshare_opts="-Dsbt.global.base=project/.sbtboot -Dsbt.boot.directory=project/.boot -Dsbt.ivy.home=project/.ivy"
27+
declare -r noshare_opts="-Dsbt.global.base=project/.sbtboot -Dsbt.boot.directory=project/.boot -Dsbt.ivy.home=project/.ivy -Dsbt.coursier.home=project/.coursier"
2828

2929
declare sbt_jar sbt_dir sbt_create sbt_version sbt_script sbt_new
3030
declare sbt_explicit_version
@@ -230,14 +230,6 @@ default_jvm_opts() {
230230
fi
231231
}
232232

233-
build_props_scala() {
234-
if [[ -r "$buildProps" ]]; then
235-
versionLine="$(grep '^build.scala.versions' "$buildProps")"
236-
versionString="${versionLine##build.scala.versions=}"
237-
echo "${versionString%% .*}"
238-
fi
239-
}
240-
241233
execRunner() {
242234
# print the arguments one to a line, quoting any containing spaces
243235
vlog "# Executing command line:" && {

sbt

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66

77
set -o pipefail
88

9-
declare -r sbt_release_version="1.3.8"
10-
declare -r sbt_unreleased_version="1.3.8"
9+
declare -r sbt_release_version="1.3.10"
10+
declare -r sbt_unreleased_version="1.3.10"
1111

12-
declare -r latest_213="2.13.1"
12+
declare -r latest_213="2.13.2"
1313
declare -r latest_212="2.12.10"
1414
declare -r latest_211="2.11.12"
1515
declare -r latest_210="2.10.7"
@@ -24,7 +24,7 @@ declare -r sbt_launch_mvn_release_repo="https://repo.scala-sbt.org/scalasbt/mave
2424
declare -r sbt_launch_mvn_snapshot_repo="https://repo.scala-sbt.org/scalasbt/maven-snapshots"
2525

2626
declare -r default_jvm_opts_common="-Xms512m -Xss2m -XX:MaxInlineLevel=18"
27-
declare -r noshare_opts="-Dsbt.global.base=project/.sbtboot -Dsbt.boot.directory=project/.boot -Dsbt.ivy.home=project/.ivy"
27+
declare -r noshare_opts="-Dsbt.global.base=project/.sbtboot -Dsbt.boot.directory=project/.boot -Dsbt.ivy.home=project/.ivy -Dsbt.coursier.home=project/.coursier"
2828

2929
declare sbt_jar sbt_dir sbt_create sbt_version sbt_script sbt_new
3030
declare sbt_explicit_version
@@ -230,14 +230,6 @@ default_jvm_opts() {
230230
fi
231231
}
232232

233-
build_props_scala() {
234-
if [[ -r "$buildProps" ]]; then
235-
versionLine="$(grep '^build.scala.versions' "$buildProps")"
236-
versionString="${versionLine##build.scala.versions=}"
237-
echo "${versionString%% .*}"
238-
fi
239-
}
240-
241233
execRunner() {
242234
# print the arguments one to a line, quoting any containing spaces
243235
vlog "# Executing command line:" && {

scripts/crosscompile.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ docker run -it --rm \
2222
-v $HOME/.ivy2:/root/.ivy2 \
2323
-v $HOME/.sbt:/root/.sbt \
2424
-v $HOME/.coursier/cache:/root/.cache/coursier \
25-
daunnc/pdal-debian:2.0.1 bash -c "cd ./pdal-java; ./scripts/pack-native.sh --suffix=${PDAL_VERSION_SUFFIX}"
25+
daunnc/pdal-debian:2.1.0 bash -c "cd ./pdal-java; ./scripts/pack-native.sh --suffix=${PDAL_VERSION_SUFFIX}"
2626

2727
# docker run -it --rm \
2828
# -v $PWD:/workdir \

scripts/publish-211.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,6 @@ if ${SIGNED}; then
2828
COMMAND=publishSigned
2929
fi
3030

31-
PDAL_DEPEND_ON_NATIVE=false ./sbt "-211" "project core" ${COMMAND}
32-
PDAL_DEPEND_ON_NATIVE=false ./sbt "-211" "project core-scala" ${COMMAND}
31+
PDAL_DEPEND_ON_NATIVE=false ./sbt "-211" \
32+
"project core" ${COMMAND} \
33+
"project core-scala" ${COMMAND}

scripts/publish-212.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,6 @@ if ${SIGNED}; then
2828
COMMAND=publishSigned
2929
fi
3030

31-
PDAL_DEPEND_ON_NATIVE=false ./sbt "-212" "project core" ${COMMAND}
32-
PDAL_DEPEND_ON_NATIVE=false ./sbt "-212" "project core-scala" ${COMMAND}
31+
PDAL_DEPEND_ON_NATIVE=false ./sbt "-212" \
32+
"project core" ${COMMAND} \
33+
"project core-scala" ${COMMAND}

scripts/publish-local-211.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ done
1616

1717
export PDAL_VERSION_SUFFIX=${PDAL_VERSION_SUFFIX-"-SNAPSHOT"}
1818

19-
PDAL_DEPEND_ON_NATIVE=false ./sbt "-211" "project core" publishLocal
20-
PDAL_DEPEND_ON_NATIVE=false ./sbt "-211" "project core-scala" publishLocal
19+
PDAL_DEPEND_ON_NATIVE=false ./sbt "-211" \
20+
"project core" publishLocal \
21+
"project core-scala" publishLocal
22+
2123
./sbt "-211" "project native" publishLocal

0 commit comments

Comments
 (0)