Created
April 2, 2019 17:19
-
-
Save kailuowang/5d8ae9c8b6c7a19946e2c558ab9736b3 to your computer and use it in GitHub Desktop.
min example of failed ++2.11.12 commandAlias
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Dependencies._ | |
ThisBuild / scalaVersion := "2.12.8" | |
ThisBuild / version := "0.1.0-SNAPSHOT" | |
ThisBuild / organization := "com.example" | |
ThisBuild / organizationName := "example" | |
lazy val root = (project in file(".")) | |
.aggregate(mA, mB) | |
.settings( | |
crossScalaVersions := Nil, | |
name := "crossCmd", | |
libraryDependencies += scalaTest % Test | |
) | |
lazy val mA = project.settings(crossScalaVersions := Seq("2.11.12")) | |
lazy val mB = project.settings(crossScalaVersions := Seq("2.11.12")) | |
addCommandAlias("validate", "test") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
validate
is just an alias oftest
sbt "++2.11.12 test"
works as expected butsbt "++2.11.12 validate"
throwsalso
sbt ++2.11.12 test
(without the quote), actually will run tests on root module, which is sort of surprising, although I can understand why it was that way.