From 2e43a7882298d75dc23075c52467379a3e64c7ea Mon Sep 17 00:00:00 2001 From: Scala Steward Date: Sat, 13 Jan 2024 19:34:24 +0000 Subject: [PATCH 1/2] Applied Scalafix rule(s) https://gist.githubusercontent.com/eed3si9n/57e83f5330592d968ce49f0d5030d4d5/raw/7f576f16a90e432baa49911c9a66204c354947bb/Sbt0_13BuildSyntax.scala See https://eed3si9n.com/syntactic-scalafix-rule-for-unified-slash-syntax for details --- build.sbt | 17 ++++++++--------- version.sbt | 2 +- 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/build.sbt b/build.sbt index 4a99715..7dc027e 100644 --- a/build.sbt +++ b/build.sbt @@ -1,11 +1,11 @@ import sbtcrossproject.CrossPlugin.autoImport.{crossProject, CrossType} import ReleaseTransformations._ -scalaVersion in ThisBuild := "2.12.10" -crossScalaVersions in ThisBuild := Seq("2.11.12", scalaVersion.value, "2.13.0") -organization in ThisBuild := "com.github.vertical-blank" +(ThisBuild / scalaVersion) := "2.12.10" +(ThisBuild / crossScalaVersions) := Seq("2.11.12", scalaVersion.value, "2.13.0") +(ThisBuild / organization) := "com.github.vertical-blank" -onChangedBuildSource in Global := ReloadOnSourceChanges +(Global / onChangedBuildSource) := ReloadOnSourceChanges lazy val root = project .in(file(".")) @@ -16,9 +16,8 @@ lazy val root = project .dependsOn(scala_sql_formatterJVM, scala_sql_formatterJS) -lazy val scala_sql_formatter = crossProject(JSPlatform, JVMPlatform) - .crossType(CrossType.Full) - .in(file(".")) +lazy val scala_sql_formatter = (file(".") / crossProject(JSPlatform, JVMPlatform) + .crossType(CrossType.Full)) .settings(moduleName := "scala-sql-formatter", sharedSettings, publishingSettings) .jvmSettings( libraryDependencies += "com.github.vertical-blank" % "sql-formatter" % "1.0.1" @@ -63,7 +62,7 @@ lazy val commonScalacOptions = Def.setting { lazy val sharedSettings = Seq( scalacOptions ++= commonScalacOptions.value, - (scalacOptions in Test) ~= (_.filterNot(_ == "-Xfatal-warnings")), + ((Test / scalacOptions)) ~= (_.filterNot(_ == "-Xfatal-warnings")), libraryDependencies ++= Seq( "org.scalatest" %%% "scalatest" % "3.2.0" % Test ) @@ -76,7 +75,7 @@ lazy val publishingSettings = Seq( description := "SQL Formatter for Scala", releasePublishArtifactsAction := PgpKeys.publishSigned.value, publishMavenStyle := true, - publishArtifact in Test := false, + (Test / publishArtifact) := false, pomIncludeRepository := { _ => false }, diff --git a/version.sbt b/version.sbt index ed5ce45..43b0424 100644 --- a/version.sbt +++ b/version.sbt @@ -1 +1 @@ -version in ThisBuild := "1.0.1" \ No newline at end of file +(ThisBuild / version) := "1.0.1" \ No newline at end of file From 238f00fb53d84384421019628a9bc22d688d2501 Mon Sep 17 00:00:00 2001 From: Scala Steward Date: Sat, 13 Jan 2024 19:34:24 +0000 Subject: [PATCH 2/2] Update sbt to 1.9.8 --- project/build.properties | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/project/build.properties b/project/build.properties index 0837f7a..abbbce5 100644 --- a/project/build.properties +++ b/project/build.properties @@ -1 +1 @@ -sbt.version=1.3.13 +sbt.version=1.9.8