11name := " pdal-jni"
22
3- val scala212 = " 2.12.20 "
4- val scala213 = " 2.13.16 "
5- val scala3 = " 3.7.1 "
6- val scalaVersions = Seq (scala3, scala213 , scala212)
3+ val scala212 = " 2.12.21 "
4+ val scala213 = " 2.13.18 "
5+ val scala3 = " 3.9.0 "
6+ val scalaVersions = Seq (scala213, scala3 , scala212)
77
88lazy val commonSettings = Seq (
99 scalaVersion := scalaVersions.head,
1010 crossScalaVersions := scalaVersions,
1111 organization := " io.pdal" ,
1212 description := " PDAL JNI bindings" ,
13- licenses := Seq (" BSD" -> url (" https://github.com/PDAL/PDAL/blob/master/LICENSE.txt" )),
14- homepage := Some (url (" https://www.pdal.io" )),
13+ licenses := Seq (" BSD" -> uri (" https://github.com/PDAL/PDAL/blob/master/LICENSE.txt" )),
14+ homepage := Some (uri (" https://www.pdal.io" )),
1515 versionScheme := Some (" semver-spec" ),
1616 scalacOptions ++= Seq (
1717 " -deprecation" ,
@@ -31,13 +31,13 @@ lazy val commonSettings = Seq(
3131 " pomadchin" ,
3232 " Grigory Pomadchin" ,
3333 " @pomadchin" ,
34- url (" https://github.com/pomadchin" )
34+ uri (" https://github.com/pomadchin" )
3535 )
3636 )
3737)
3838
3939lazy val root = (project in file(" ." ))
40- .settings(commonSettings : _ * )
40+ .settings(commonSettings* )
4141 .settings(
4242 scalaVersion := scalaVersions.head,
4343 crossScalaVersions := Nil ,
@@ -47,7 +47,7 @@ lazy val root = (project in file("."))
4747 .aggregate(`core-scala`, core, native)
4848
4949lazy val `core-scala` = project
50- .settings(commonSettings : _ * )
50+ .settings(commonSettings* )
5151 .settings(Dependencies .macroSettings)
5252 .settings(Dependencies .licenseSettings)
5353 .settings(scalaVersion := scala213, crossScalaVersions := Seq (scala213, scala212))
@@ -64,10 +64,10 @@ lazy val `core-scala` = project
6464 )
6565 )
6666 .dependsOn(core)
67- .dependsOn(Environment .dependOnNative(native % Runtime ): _ * )
67+ .dependsOn(Environment .dependOnNative(native % Runtime )* )
6868
6969lazy val core = project
70- .settings(commonSettings : _ * )
70+ .settings(commonSettings* )
7171 .settings(name := " pdal" )
7272 .settings(javah / target := (native / nativeCompile / sourceDirectory).value / " include" )
7373 .settings(sbtJniCoreScope := Compile )
@@ -77,18 +77,20 @@ lazy val core = project
7777 Dependencies .circe(" parser" ) % Test
7878 )
7979 )
80- .dependsOn(Environment .dependOnNative(native % Runtime ): _ * )
80+ .dependsOn(Environment .dependOnNative(native % Runtime )* )
8181
8282lazy val native = project
83- .settings(commonSettings : _ * )
83+ .settings(commonSettings* )
8484 .settings(crossPaths := false )
8585 .settings(name := " pdal-native" )
8686 .settings(nativeCompile / sourceDirectory := sourceDirectory.value)
87+ // keep native binaries at native/target/native/<platform> (sbt 2 moved target under target/out)
88+ .settings(nativeCompile / target := baseDirectory.value / " target" / " native" / nativePlatform.value)
8789 .settings(
8890 Compile / unmanagedPlatformDependentNativeDirectories := Seq (
89- " x86_64-linux" -> target .value / " native/x86_64-linux/bin/" ,
90- " x86_64-darwin" -> target .value / " native/x86_64-darwin/bin/" ,
91- " arm64-darwin" -> target .value / " native/arm64-darwin/bin/"
91+ " x86_64-linux" -> baseDirectory .value / " target/ native/x86_64-linux/bin/" ,
92+ " x86_64-darwin" -> baseDirectory .value / " target/ native/x86_64-darwin/bin/" ,
93+ " arm64-darwin" -> baseDirectory .value / " target/ native/arm64-darwin/bin/"
9294 )
9395 )
9496 .settings(artifactName := { (sv : ScalaVersion , module : ModuleID , artifact : Artifact ) =>
0 commit comments