diff options
author | Guillaume Massé <masgui@gmail.com> | 2018-03-01 05:28:48 +0100 |
---|---|---|
committer | Li Haoyi <haoyi.sg@gmail.com> | 2018-02-28 20:28:48 -0800 |
commit | a6bd3dbe0f9f6d58326f0ffaa0737d07d5a3821f (patch) | |
tree | 3defba186bc48369269eb618cbca3802ea7bab1e /scalalib/test | |
parent | c7b2fff6badcc595c177f85c7331cc4868c73412 (diff) | |
download | mill-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')
-rw-r--r-- | scalalib/test/src/mill/scalalib/HelloWorldTests.scala | 6 |
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")) ) |