summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLi Haoyi <haoyi.sg@gmail.com>2018-08-13 01:41:33 +0800
committerLi Haoyi <haoyi.sg@gmail.com>2018-08-13 01:41:33 +0800
commit3ce8ca869fa0409f406780ab801bd5967a65030d (patch)
tree002863d4991ba54a601c3608ebafa7db1466aa46
parentd34f0506bdc4fef2bcca82a70e67aa15aad75cb9 (diff)
downloadcask-3ce8ca869fa0409f406780ab801bd5967a65030d.tar.gz
cask-3ce8ca869fa0409f406780ab801bd5967a65030d.tar.bz2
cask-3ce8ca869fa0409f406780ab801bd5967a65030d.zip
license, publishing
-rw-r--r--LICENSE25
-rw-r--r--build.sc17
2 files changed, 40 insertions, 2 deletions
diff --git a/LICENSE b/LICENSE
new file mode 100644
index 0000000..ae46d97
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,25 @@
+License
+=======
+
+
+The MIT License (MIT)
+
+Copyright (c) 2017 Li Haoyi (haoyi.sg@gmail.com)
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+DEALINGS IN THE SOFTWARE. \ No newline at end of file
diff --git a/build.sc b/build.sc
index 7a849d7..231ebb2 100644
--- a/build.sc
+++ b/build.sc
@@ -1,4 +1,4 @@
-import mill._, scalalib._
+import mill._, scalalib._, publish._
import ammonite.ops._, ujson.Js
import $file.ci.upload, $file.ci.version
import $file.example.compress.build
@@ -20,7 +20,7 @@ import $file.example.todoApi.build
import $file.example.todoDb.build
import $file.example.variableRoutes.build
-object cask extends ScalaModule{
+object cask extends ScalaModule with PublishModule {
def scalaVersion = "2.12.6"
def ivyDeps = Agg(
ivy"org.scala-lang:scala-reflect:${scalaVersion()}",
@@ -31,6 +31,19 @@ object cask extends ScalaModule{
def scalacOptions = Seq("-P:acyclic:force")
def scalacPluginIvyDeps = Agg(ivy"com.lihaoyi::acyclic:0.1.7")
+ def publishVersion = build.publishVersion()._2
+
+ def pomSettings = PomSettings(
+ description = artifactName(),
+ organization = "com.lihaoyi",
+ url = "https://github.com/lihaoyi/cask",
+ licenses = Seq(License.MIT),
+ versionControl = VersionControl.github("lihaoyi", "cask"),
+ developers = Seq(
+ Developer("lihaoyi", "Li Haoyi","https://github.com/lihaoyi")
+ )
+ )
+
object test extends Tests{
def testFrameworks = Seq("utest.runner.Framework")