Skip to content

Commit

Permalink
New syntax for sbt property access to remove deprecation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathonherbert committed Mar 15, 2023
1 parent d94cd62 commit 5434570
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ val scala213 = "2.13.8"
val commonSettings =
Seq(
scalaVersion := scala212,
scalaVersion in ThisBuild := scala212,
ThisBuild / scalaVersion := scala212,
crossScalaVersions := Seq(scalaVersion.value, scala213),
organization := "com.gu",
fork in Test := false,
Test / fork := false,
resolvers ++= Seq("Typesafe Repository" at "https://repo.typesafe.com/typesafe/releases/"),
scalacOptions ++= Seq("-feature", "-deprecation", "-language:higherKinds", "-Xfatal-warnings"),
publishArtifact := false
Expand Down Expand Up @@ -110,7 +110,7 @@ lazy val exampleApp = project("pan-domain-auth-example")
.settings(sonatypeReleaseSettings: _*)
.settings(
publishArtifact := false,
skip in publish := true,
publish / skip := true,
playDefaultPort := 9500
)

Expand All @@ -123,7 +123,7 @@ lazy val root = Project("pan-domain-auth-root", file(".")).aggregate(
).settings(sonatypeReleaseSettings: _*).settings(
organization := "com.gu",
publishArtifact := false,
skip in publish := true,
publish / skip := true,
)

def project(path: String): Project =
Expand Down
2 changes: 1 addition & 1 deletion version.sbt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version in ThisBuild := "1.2.1-SNAPSHOT"
ThisBuild / version := "1.2.1-SNAPSHOT"

0 comments on commit 5434570

Please sign in to comment.