summaryrefslogtreecommitdiff
path: root/docs/example-2
diff options
context:
space:
mode:
authorLi Haoyi <haoyi.sg@gmail.com>2018-02-17 11:50:20 -0800
committerLi Haoyi <haoyi.sg@gmail.com>2018-02-17 11:53:07 -0800
commit92edcae5094e52783f825021e4172a6b072300e0 (patch)
tree8da5d9e01a9703601ef13c8ee5478501251b6836 /docs/example-2
parent650ab9c937159cd31721e576f7174c8167f19a70 (diff)
downloadmill-92edcae5094e52783f825021e4172a6b072300e0.tar.gz
mill-92edcae5094e52783f825021e4172a6b072300e0.tar.bz2
mill-92edcae5094e52783f825021e4172a6b072300e0.zip
Include example zips in docs
Diffstat (limited to 'docs/example-2')
-rw-r--r--docs/example-2/build.sc23
-rw-r--r--docs/example-2/foo/src/foo/Example.scala6
2 files changed, 29 insertions, 0 deletions
diff --git a/docs/example-2/build.sc b/docs/example-2/build.sc
new file mode 100644
index 00000000..30e4be05
--- /dev/null
+++ b/docs/example-2/build.sc
@@ -0,0 +1,23 @@
+// build.sc
+import mill._, scalalib._, publish._
+
+object foo extends PublishModule{
+ def scalaVersion = "2.12.4"
+ def publishVersion = "0.0.1"
+
+ def pomSettings = PomSettings(
+ description = "Hello",
+ organization = "com.lihaoyi",
+ url = "https://github.com/lihaoyi/example",
+ licenses = Seq(
+ License("MIT license", "http://www.opensource.org/licenses/mit-license.php")
+ ),
+ scm = SCM(
+ "git://github.com/lihaoyi/example.git",
+ "scm:git://github.com/lihaoyi/example.git"
+ ),
+ developers = Seq(
+ Developer("lihaoyi", "Li Haoyi","https://github.com/lihaoyi")
+ )
+ )
+} \ No newline at end of file
diff --git a/docs/example-2/foo/src/foo/Example.scala b/docs/example-2/foo/src/foo/Example.scala
new file mode 100644
index 00000000..f84f91f9
--- /dev/null
+++ b/docs/example-2/foo/src/foo/Example.scala
@@ -0,0 +1,6 @@
+package foo
+object Example{
+ def main(args: Array[String]): Unit = {
+ println("Hello World")
+ }
+} \ No newline at end of file