summaryrefslogtreecommitdiff
path: root/scalalib/test/src
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 /scalalib/test/src
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 'scalalib/test/src')
-rw-r--r--scalalib/test/src/mill/scalalib/HelloWorldTests.scala6
1 files changed, 2 insertions, 4 deletions
diff --git a/scalalib/test/src/mill/scalalib/HelloWorldTests.scala b/scalalib/test/src/mill/scalalib/HelloWorldTests.scala
index 2bb51ad6..4fb5f5a5 100644
--- a/scalalib/test/src/mill/scalalib/HelloWorldTests.scala
+++ b/scalalib/test/src/mill/scalalib/HelloWorldTests.scala
@@ -9,6 +9,7 @@ import mill.define.{Discover, Target}
import mill.eval.{Evaluator, Result}
import mill.scalalib.publish._
import mill.util.{TestEvaluator, TestUtil}
+import mill.scalalib.publish.VersionControl
import utest._
import utest.framework.TestPath
@@ -86,10 +87,7 @@ object HelloWorldTests extends TestSuite {
description = "hello 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"))
)