@@ -21,7 +21,7 @@ import sbtrelease.ReleaseStateTransformations._
2121
2222val algebirdVersion = " 0.13.6"
2323val breezeVersion = " 1.0"
24- val circeVersion = " 0.11.2 "
24+ val circeVersion = " 0.12.3 "
2525val commonsMathVersion = " 3.6.1"
2626val flinkVersion = " 1.9.1"
2727val hadoopVersion = " 3.2.1"
@@ -44,14 +44,29 @@ lazy val commonSettings = Seq(
4444 description := " Feature Transformers" ,
4545 scalaVersion := " 2.12.10" ,
4646 scalacOptions ++= commonScalacOptions,
47+ scalacOptions ++= {
48+ if (scalaBinaryVersion.value == " 2.13" )
49+ Seq (" -Ymacro-annotations" )
50+ else
51+ Seq (
52+ " -Xfuture" ,
53+ " -Yno-adapted-args"
54+ )
55+ },
4756 scalacOptions in (Compile , doc) ++= Seq (" -skip-packages" , " org.apache" ),
4857 javacOptions ++= Seq (" -source" , " 1.8" , " -target" , " 1.8" , " -Xlint:unchecked" ),
4958 javacOptions in (Compile , doc) := Seq (" -source" , " 1.8" ),
5059 testOptions in Test += Tests .Argument (TestFrameworks .ScalaCheck , " -verbosity" , " 3" ),
5160 libraryDependencies ++= Seq (
52- " org.typelevel" %% " simulacrum" % simulacrumVersion % CompileTime ,
53- compilerPlugin(" org.scalamacros" %% " paradise" % " 2.1.1" cross CrossVersion .full)
61+ " org.typelevel" %% " simulacrum" % simulacrumVersion % CompileTime
5462 ),
63+ libraryDependencies ++= {
64+ if (scalaBinaryVersion.value == " 2.13" ) {
65+ Nil
66+ } else {
67+ Seq (compilerPlugin(" org.scalamacros" %% " paradise" % " 2.1.1" cross CrossVersion .full))
68+ }
69+ },
5570 ivyConfigurations += CompileTime ,
5671 unmanagedClasspath in Compile ++= update.value.select(configurationFilter(CompileTime .name))
5772)
@@ -61,23 +76,11 @@ lazy val publishSettings = Seq(
6176 username <- sys.env.get(" SONATYPE_USERNAME" )
6277 password <- sys.env.get(" SONATYPE_PASSWORD" )
6378 } yield Credentials (" Sonatype Nexus Repository Manager" , " oss.sonatype.org" , username, password)).toSeq,
64- publishTo := sonatypePublishToBundle.value,
79+ publishTo := Some (
80+ if (isSnapshot.value) Opts .resolver.sonatypeSnapshots else Opts .resolver.sonatypeStaging
81+ ),
6582 releaseCrossBuild := true ,
6683 releasePublishArtifactsAction := PgpKeys .publishSigned.value,
67- releaseProcess := Seq [ReleaseStep ](
68- checkSnapshotDependencies,
69- inquireVersions,
70- runClean,
71- releaseStepCommandAndRemaining(" +test" ),
72- setReleaseVersion,
73- commitReleaseVersion,
74- tagRelease,
75- releaseStepCommandAndRemaining(" +publishSigned" ),
76- releaseStepCommand(" sonatypeBundleRelease" ),
77- setNextVersion,
78- commitNextVersion,
79- pushChanges
80- ),
8184 publishMavenStyle := true ,
8285 publishArtifact in Test := false ,
8386 sonatypeProfileName := " com.spotify" ,
@@ -177,7 +180,7 @@ lazy val core: Project = project
177180 name := " core" ,
178181 moduleName := " featran-core" ,
179182 description := " Feature Transformers" ,
180- crossScalaVersions := Seq (" 2.11.12" , " 2.12.10" ),
183+ crossScalaVersions := Seq (" 2.11.12" , " 2.12.10" , " 2.13.1 " ),
181184 libraryDependencies ++= Seq (
182185 " com.twitter" %% " algebird-core" % algebirdVersion,
183186 " org.scalanlp" %% " breeze" % breezeVersion,
@@ -189,7 +192,7 @@ lazy val core: Project = project
189192 " io.circe" %% " circe-core" ,
190193 " io.circe" %% " circe-generic" ,
191194 " io.circe" %% " circe-parser"
192- ).map(_ % circeVersion)
195+ ).map(_ % ( if (scalaBinaryVersion.value == " 2.11 " ) " 0.11.2 " else circeVersion) )
193196 )
194197
195198lazy val java : Project = project
@@ -200,7 +203,7 @@ lazy val java: Project = project
200203 name := " java" ,
201204 moduleName := " featran-java" ,
202205 description := " Feature Transformers - java" ,
203- crossScalaVersions := Seq (" 2.11.12" , " 2.12.10" ),
206+ crossScalaVersions := Seq (" 2.11.12" , " 2.12.10" , " 2.13.1 " ),
204207 libraryDependencies ++= Seq (
205208 " org.scalacheck" %% " scalacheck" % scalacheckVersion % " test" ,
206209 " org.scalatest" %% " scalatest" % scalatestVersion % " test"
@@ -300,7 +303,7 @@ lazy val numpy: Project = project
300303 name := " numpy" ,
301304 moduleName := " featran-numpy" ,
302305 description := " Feature Transformers - NumPy" ,
303- crossScalaVersions := Seq (" 2.11.12" , " 2.12.10" ),
306+ crossScalaVersions := Seq (" 2.11.12" , " 2.12.10" , " 2.13.1 " ),
304307 libraryDependencies ++= Seq (
305308 " org.scalatest" %% " scalatest" % scalatestVersion % " test"
306309 )
@@ -315,7 +318,7 @@ lazy val tensorflow: Project = project
315318 name := " tensorflow" ,
316319 moduleName := " featran-tensorflow" ,
317320 description := " Feature Transformers - TensorFlow" ,
318- crossScalaVersions := Seq (" 2.11.12" , " 2.12.10" ),
321+ crossScalaVersions := Seq (" 2.11.12" , " 2.12.10" , " 2.13.1 " ),
319322 libraryDependencies ++= Seq (
320323 " org.tensorflow" % " proto" % tensorflowVersion,
321324 " me.lyh" %% " shapeless-datatype-tensorflow" % shapelessDatatypeVersion,
@@ -335,7 +338,7 @@ lazy val xgboost: Project = project
335338 name := " xgboost" ,
336339 moduleName := " featran-xgboost" ,
337340 description := " Feature Transformers - XGBoost" ,
338- crossScalaVersions := Seq (" 2.11.12" , " 2.12.10" ),
341+ crossScalaVersions := Seq (" 2.11.12" , " 2.12.10" , " 2.13.1 " ),
339342 libraryDependencies ++= Seq (
340343 " org.scalacheck" %% " scalacheck" % scalacheckVersion % " test"
341344 )
@@ -350,7 +353,7 @@ lazy val examples: Project = project
350353 .settings(featranSettings)
351354 .settings(soccoSettings)
352355 .settings(
353- crossScalaVersions := Seq (" 2.11.12" , " 2.12.10" ),
356+ crossScalaVersions := Seq (" 2.11.12" , " 2.12.10" , " 2.13.1 " ),
354357 name := " examples" ,
355358 moduleName := " featran-examples" ,
356359 description := " Feature Transformers - examples" ,
@@ -388,10 +391,8 @@ lazy val commonScalacOptions = Seq(
388391 " -language:higherKinds" ,
389392 " -language:implicitConversions" ,
390393 " -unchecked" ,
391- " -Yno-adapted-args" ,
392394 " -Ywarn-unused" ,
393- " -Ywarn-dead-code" ,
394- " -Xfuture"
395+ " -Ywarn-dead-code"
395396)
396397
397398lazy val soccoSettings = if (sys.env.contains(" SOCCO" )) {
0 commit comments