From a6bd3dbe0f9f6d58326f0ffaa0737d07d5a3821f Mon Sep 17 00:00:00 2001 From: Guillaume Massé Date: Thu, 1 Mar 2018 05:28:48 +0100 Subject: 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. --- scalajslib/test/src/mill/scalajslib/HelloJSWorldTests.scala | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'scalajslib') 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")) ) -- cgit v1.2.3