diff options
author | Christopher Vogt <oss.nsp@cvogt.org> | 2016-11-10 01:40:14 -0500 |
---|---|---|
committer | Christopher Vogt <oss.nsp@cvogt.org> | 2017-02-13 10:10:02 -0500 |
commit | 8ebada86b1fc58465751864acba8aafd387ccb4b (patch) | |
tree | 3c0cf15a408350511652dd0f0872a8eba6de7a9e /plugins/essentials | |
parent | 0a295c21d3379117e661fdbf586ecb6222c3602b (diff) | |
download | cbt-8ebada86b1fc58465751864acba8aafd387ccb4b.tar.gz cbt-8ebada86b1fc58465751864acba8aafd387ccb4b.tar.bz2 cbt-8ebada86b1fc58465751864acba8aafd387ccb4b.zip |
Add support for nested builds and use it to replace cross compilation
command which was previously hard-coded
This will allow multi-project builds, too but we should first fix
caching across instances and GitDependencies on sub-builds within
other repositories.
Diffstat (limited to 'plugins/essentials')
-rw-r--r-- | plugins/essentials/MultipleScalaVersions.scala | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/plugins/essentials/MultipleScalaVersions.scala b/plugins/essentials/MultipleScalaVersions.scala new file mode 100644 index 0000000..5d896dd --- /dev/null +++ b/plugins/essentials/MultipleScalaVersions.scala @@ -0,0 +1,9 @@ +package cbt + +trait MultipleScalaVersions extends DynamicOverrides{ + def scalaVersions: Seq[String] = Seq(scalaVersion, "2.10.6") + def cross: Seq[MultipleScalaVersions] = + scalaVersions.map{ v => + newBuild[MultipleScalaVersions](context.copy(scalaVersion = Some(v)))("") + } +} |