Skip to content

Commit 73bf850

Browse files
committed
Replace Def.uncached with transient annotation
1 parent 160c853 commit 73bf850

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

build.sbt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ developers := List(
1515

1616
enablePlugins(SbtPlugin)
1717

18-
addSbtPlugin("com.github.sbt" % "sbt2-compat" % "0.1.0")
19-
2018
scalaVersion := "2.12.21"
2119
crossScalaVersions += "3.8.2"
2220

src/main/scala/nl/gn0s1s/licensecheck/LicenseCheckPlugin.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ object LicenseCheckPlugin extends AutoPlugin {
1616
lazy val licenseCheckExemptedDependencies =
1717
settingKey[Seq[(String, String)]]("Sequence of dependency names and revisions whose licenses will be allowed")
1818

19-
lazy val licenseCheck = taskKey[Unit]("Runs license check")
19+
@transient lazy val licenseCheck = taskKey[Unit]("Runs license check")
2020
}
2121

2222
import autoImport._
@@ -30,7 +30,7 @@ object LicenseCheckPlugin extends AutoPlugin {
3030
override lazy val projectSettings: Seq[Setting[_]] = {
3131
import sbtcompat.PluginCompat.*
3232
Seq(
33-
licenseCheck := Def.uncached {
33+
licenseCheck := {
3434
val licenses = sbt.Keys.updateFull.value.configurations.flatMap { configuration =>
3535
configuration.details.flatMap { detail =>
3636
detail.modules.filterNot(_.evicted).map { module =>

0 commit comments

Comments
 (0)