Skip to content

Commit 5bec023

Browse files
Make all taskKeys non lazy
1 parent 2ef4d67 commit 5bec023

File tree

1 file changed

+13
-17
lines changed

1 file changed

+13
-17
lines changed

project/Build.scala

Lines changed: 13 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -80,42 +80,38 @@ object Build {
8080
)
8181

8282
// Packages all subprojects to their jars
83-
lazy val packageAll =
84-
taskKey[Map[String, String]]("Package everything needed to run tests")
83+
val packageAll = taskKey[Map[String, String]]("Package everything needed to run tests")
8584

8685
// Run tests with filter through vulpix test suite
87-
lazy val testCompilation = inputKey[Unit]("runs integration test with the supplied filter")
86+
val testCompilation = inputKey[Unit]("runs integration test with the supplied filter")
8887

8988
// Run TASTY tests with filter through vulpix test suite
90-
lazy val testFromTasty = inputKey[Unit]("runs tasty integration test with the supplied filter")
89+
val testFromTasty = inputKey[Unit]("runs tasty integration test with the supplied filter")
9190

9291
// Spawns a repl with the correct classpath
93-
lazy val repl = inputKey[Unit]("run the REPL with correct classpath")
92+
val repl = inputKey[Unit]("run the REPL with correct classpath")
9493

9594
// Used to compile files similar to ./bin/dotc script
96-
lazy val dotc =
97-
inputKey[Unit]("run the compiler using the correct classpath, or the user supplied classpath")
95+
val dotc = inputKey[Unit]("run the compiler using the correct classpath, or the user supplied classpath")
9896

9997
// Used to run binaries similar to ./bin/dotr script
100-
lazy val dotr =
101-
inputKey[Unit]("run compiled binary using the correct classpath, or the user supplied classpath")
102-
98+
val dotr = inputKey[Unit]("run compiled binary using the correct classpath, or the user supplied classpath")
10399

104100
// Compiles the documentation and static site
105-
lazy val genDocs = taskKey[Unit]("run dottydoc to generate static documentation site")
101+
val genDocs = taskKey[Unit]("run dottydoc to generate static documentation site")
106102

107103
// Shorthand for compiling a docs site
108-
lazy val dottydoc = inputKey[Unit]("run dottydoc")
104+
val dottydoc = inputKey[Unit]("run dottydoc")
109105

110-
lazy val bootstrapFromPublishedJars = settingKey[Boolean]("If true, bootstrap dotty from published non-bootstrapped dotty")
106+
val bootstrapFromPublishedJars = settingKey[Boolean]("If true, bootstrap dotty from published non-bootstrapped dotty")
111107

112108
// Only available in vscode-dotty
113-
lazy val unpublish = taskKey[Unit]("Unpublish a package")
109+
val unpublish = taskKey[Unit]("Unpublish a package")
114110

115111
// Settings used to configure the test language server
116-
lazy val ideTestsCompilerVersion = taskKey[String]("Compiler version to use in IDE tests")
117-
lazy val ideTestsCompilerArguments = taskKey[Seq[String]]("Compiler arguments to use in IDE tests")
118-
lazy val ideTestsDependencyClasspath = taskKey[Seq[File]]("Dependency classpath to use in IDE tests")
112+
val ideTestsCompilerVersion = taskKey[String]("Compiler version to use in IDE tests")
113+
val ideTestsCompilerArguments = taskKey[Seq[String]]("Compiler arguments to use in IDE tests")
114+
val ideTestsDependencyClasspath = taskKey[Seq[File]]("Dependency classpath to use in IDE tests")
119115

120116
lazy val SourceDeps = config("sourcedeps")
121117

0 commit comments

Comments
 (0)