Skip to content

Commit

Permalink
Merge pull request #49 from mdedetrich/replace-def-with-lazy-val
Browse files Browse the repository at this point in the history
Replace zero arg def with lazy val
  • Loading branch information
mdedetrich authored Feb 8, 2024
2 parents 9ed0ffa + c35cd78 commit 34a311a
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ object ParadoxMaterialThemePlugin extends AutoPlugin {
import autoImport._
import ParadoxPlugin.autoImport._

override def requires = ParadoxPlugin
override def trigger = noTrigger
override lazy val requires = ParadoxPlugin
override lazy val trigger = noTrigger

override def projectSettings: Seq[Setting[_]] = Def.settings(
override lazy val projectSettings: Seq[Setting[_]] = Def.settings(
paradoxMaterialThemeGlobalSettings,
paradoxMaterialThemeSettings(Compile)
)

def paradoxMaterialThemeGlobalSettings: Seq[Setting[_]] = Def.settings(
lazy val paradoxMaterialThemeGlobalSettings: Seq[Setting[_]] = Def.settings(
paradoxMaterialTheme / version :=
Option(ParadoxPlugin.readProperty("paradox-material-theme.properties", "version"))
.getOrElse(sys.error("Undefined paradox-material-theme version")),
Expand Down

0 comments on commit 34a311a

Please sign in to comment.