summaryrefslogtreecommitdiff
path: root/scalajslib
diff options
context:
space:
mode:
authorGuillaume Massé <masgui@gmail.com>2018-03-01 05:28:48 +0100
committerLi Haoyi <haoyi.sg@gmail.com>2018-02-28 20:28:48 -0800
commita6bd3dbe0f9f6d58326f0ffaa0737d07d5a3821f (patch)
tree3defba186bc48369269eb618cbca3802ea7bab1e /scalajslib
parentc7b2fff6badcc595c177f85c7331cc4868c73412 (diff)
downloadmill-a6bd3dbe0f9f6d58326f0ffaa0737d07d5a3821f.tar.gz
mill-a6bd3dbe0f9f6d58326f0ffaa0737d07d5a3821f.tar.bz2
mill-a6bd3dbe0f9f6d58326f0ffaa0737d07d5a3821f.zip
Add dsl for SCM (now called VersionControl) (#168)
The scm url syntax is a source of confusion for developper. I added VersionControl.github() to simplify this process. We can add other common VersionControl url scheme like Bazar, etc.
Diffstat (limited to 'scalajslib')
-rw-r--r--scalajslib/test/src/mill/scalajslib/HelloJSWorldTests.scala7
1 files changed, 2 insertions, 5 deletions
diff --git a/scalajslib/test/src/mill/scalajslib/HelloJSWorldTests.scala b/scalajslib/test/src/mill/scalajslib/HelloJSWorldTests.scala
index df4b940d..23db8cf6 100644
--- a/scalajslib/test/src/mill/scalajslib/HelloJSWorldTests.scala
+++ b/scalajslib/test/src/mill/scalajslib/HelloJSWorldTests.scala
@@ -7,7 +7,7 @@ import mill._
import mill.define.Discover
import mill.eval.{Evaluator, Result}
import mill.scalalib.{CrossScalaModule, DepSyntax, Lib, PublishModule, TestRunner}
-import mill.scalalib.publish.{Developer, License, PomSettings, SCM}
+import mill.scalalib.publish.{Developer, License, PomSettings, VersionControl}
import mill.util.{TestEvaluator, TestUtil}
import utest._
@@ -39,10 +39,7 @@ object HelloJSWorldTests extends TestSuite {
description = "hello js world ready for real world publishing",
url = "https://github.com/lihaoyi/hello-world-publish",
licenses = Seq(License.Common.Apache2),
- scm = SCM(
- "https://github.com/lihaoyi/hello-world-publish",
- "scm:git:https://github.com/lihaoyi/hello-world-publish"
- ),
+ versionControl = VersionControl.github("lihaoyi", "hello-world-publish"),
developers =
Seq(Developer("lihaoyi", "Li Haoyi", "https://github.com/lihaoyi"))
)