From 6fbc1f18e97551f72c02681c9675ad795fcc8a4d Mon Sep 17 00:00:00 2001 From: Gabriele Petronella Date: Mon, 5 Apr 2021 23:04:20 +0200 Subject: [PATCH] Remove more deprecated syntax --- .../src/main/scala/munit/sbtmunit/MUnitReportPlugin.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/munit-sbt/src/main/scala/munit/sbtmunit/MUnitReportPlugin.scala b/munit-sbt/src/main/scala/munit/sbtmunit/MUnitReportPlugin.scala index 150d5192..1ac615e8 100644 --- a/munit-sbt/src/main/scala/munit/sbtmunit/MUnitReportPlugin.scala +++ b/munit-sbt/src/main/scala/munit/sbtmunit/MUnitReportPlugin.scala @@ -11,9 +11,9 @@ object MUnitReportPlugin extends AutoPlugin { if ("unknown" == BuildInfo.munitVersion) Nil else List("org.scalameta" %% "munit-docs" % BuildInfo.munitVersion) }, - resourceGenerators.in(Compile) += Def.task[List[File]] { + Compile / resourceGenerators += Def.task[List[File]] { val out = - managedResourceDirectories.in(Compile).value.head / "munit.properties" + (Compile / managedResourceDirectories).value.head / "munit.properties" val props = new java.util.Properties() munitRepository.value.foreach { repo => props.put("munitRepository", repo)