Skip to content

Commit

Permalink
Cross-build for sbt 2.0.0-M2
Browse files Browse the repository at this point in the history
  • Loading branch information
Philippus committed Oct 27, 2024
1 parent d6834c4 commit 74f0acc
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ jobs:
distribution: temurin
java-version: 8
- name: Run tests
run: sbt clean test scripted
run: sbt clean +test +scripted
11 changes: 10 additions & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,16 @@ developers := List(
)

enablePlugins(SbtPlugin)
pluginCrossBuild / sbtVersion := "1.3.9" // minimum version we target because of using Native.load, see https://github.com/Philippus/sbt-dotenv/issues/81

scalaVersion := "2.12.20"
crossScalaVersions += "3.3.4"

pluginCrossBuild / sbtVersion := {
scalaBinaryVersion.value match {
case "2.12" => "1.5.8"
case _ => "2.0.0-M2"
}
}

libraryDependencies ++= Seq(
"org.scalatest" %% "scalatest" % "3.2.19" % Test
Expand Down
2 changes: 1 addition & 1 deletion src/main/scala/au/com/onegeek/sbtdotenv/SbtDotenv.scala
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import scala.io.Source
*
* Reads a file
*/
object SbtDotenv extends AutoPlugin {
object SbtDotenv extends AutoPlugin with SlashSyntax {

object autoImport {
lazy val envFileName =
Expand Down
2 changes: 1 addition & 1 deletion src/sbt-test/sbt-dotenv/check-load-on-demand-dot-env/test
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

> checkTest

> it:test
> IntegrationTest / test

> checkIntegrationTest

0 comments on commit 74f0acc

Please sign in to comment.