We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2548d54 + 0d63ab3 commit 027be3bCopy full SHA for 027be3b
build.sc
@@ -0,0 +1,23 @@
1
+import mill._
2
+import mill.scalalib._
3
+
4
+object Deps {
5
+ val scalaVersion = "2.13.1"
6
+}
7
8
+object hello extends ScalaModule {
9
+ override def scalaVersion = Deps.scalaVersion
10
+ override def generatedSources = T{
11
+ val hello = s"""
12
+ |package hello
13
+ |object Hello {
14
+ | def main(args: Array[String]): Unit = {
15
+ | println("Hello there!")
16
+ | println("Mill version: ${mill.BuildInfo.millVersion}")
17
+ | }
18
+ |}
19
+ """.stripMargin
20
+ os.write(T.dest / "hello" / "hello.scala", hello, createFolders = true)
21
+ Seq(PathRef(T.dest))
22
+ }
23
0 commit comments