Skip to content

Commit

Permalink
feat: introduce cross building for Scala 3 (#38)
Browse files Browse the repository at this point in the history
This also drops it for Scala 2.12 and makes a few other changes around
github packages to instead prepare to just release on maven central. This
will make it easier for other things (like the vacation app) to just pull
them down like other artifacts and not need to worry about the extra
repository
  • Loading branch information
ckipp01 committed Jul 24, 2023
1 parent 6a2094a commit 4e7087b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 19 deletions.
9 changes: 1 addition & 8 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ lazy val root = (project in file(".")).enablePlugins(PlayScala)

scalaVersion := "2.13.11"

crossScalaVersions := Seq("2.12.18", "2.13.11")
crossScalaVersions := Seq("2.13.11", "3.3.0")

libraryDependencies ++= Seq(
ws, guice,
Expand All @@ -19,10 +19,3 @@ libraryDependencies ++= Seq(
ThisBuild / versionScheme := Some("semver-spec")

Global / onChangedBuildSource := ReloadOnSourceChanges

githubOwner := "lunatech-labs"
githubRepository := "lunatech-play-googleopenconnect"
githubTokenSource := TokenSource.Or(
TokenSource.Environment("GITHUB_TOKEN"), // Injected during a github workflow for publishing
TokenSource.Environment("SHELL"), // safe to assume this will be set in all our devs environments, usually /bin/bash, doesn't matter what it is to prevent local errors
)
12 changes: 1 addition & 11 deletions project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,12 +1,2 @@
// Comment to get more information during initialization
logLevel := Level.Warn

// The Typesafe repository
resolvers += "Typesafe repository" at "https://repo.typesafe.com/typesafe/releases/"

// Use the Play sbt plugin for Play projects
addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.8.19")

addSbtPlugin("com.codecommit" % "sbt-github-packages" % "0.5.3")

ThisBuild / libraryDependencySchemes += "org.scala-lang.modules" %% "scala-xml" % VersionScheme.Always
addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.9.0-M6")

0 comments on commit 4e7087b

Please sign in to comment.