diff --git a/.github/workflows/scala.yml b/.github/workflows/scala.yml index 54490e7..4b8558b 100644 --- a/.github/workflows/scala.yml +++ b/.github/workflows/scala.yml @@ -19,7 +19,7 @@ jobs: - 2.12.15 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 # Need the git history for sbt-dynver to determine the version - name: Set up JDK 11 diff --git a/src/main/scala/com/thoughtworks/Example.scala b/src/main/scala/com/thoughtworks/Example.scala index 156c0b3..3b087db 100644 --- a/src/main/scala/com/thoughtworks/Example.scala +++ b/src/main/scala/com/thoughtworks/Example.scala @@ -478,8 +478,8 @@ object Example extends AutoPlugin { generateExample / fileInputs := (Compile / unmanagedSources / fileInputs).value, generateExample := { val outputFile = - (sourceManaged in Test).value / "sbt-example-generated.scala" - val logger = (streams in generateExample).value.log + (Test / sourceManaged).value / "sbt-example-generated.scala" + val logger = (generateExample / streams).value.log val compileDialect = (Compile / exampleDialect).value val testDialect = (Test / autoImport.exampleDialect).value val content = generateExample.inputFiles.view.flatMap { file => @@ -501,7 +501,7 @@ object Example extends AutoPlugin { ) Seq(outputFile) }, - (sourceGenerators in Test) += { + (Test / sourceGenerators) += { generateExample.taskValue } ) ++