Allow to adjust plugin name in scripted tests

This commit is contained in:
Alexandre Archambault 2018-11-20 11:18:44 +01:00
parent 91cb55cc2e
commit 4cbb9082cc
39 changed files with 381 additions and 304 deletions

View File

@ -1,11 +1,13 @@
{
val pluginVersion = sys.props.getOrElse(
addSbtPlugin {
val name = sys.props.getOrElse(
"plugin.name",
sys.error("plugin.name Java property not set")
)
val version = sys.props.getOrElse(
"plugin.version",
throw new RuntimeException(
"""|The system property 'plugin.version' is not defined.
|Specify this property using the scriptedLaunchOpts -D.""".stripMargin
)
sys.error("plugin.version Java property not set")
)
addSbtPlugin("io.get-coursier" % "sbt-coursier" % pluginVersion)
}
"io.get-coursier" % name % version
}

View File

@ -1,11 +1,13 @@
{
val pluginVersion = sys.props.getOrElse(
addSbtPlugin {
val name = sys.props.getOrElse(
"plugin.name",
sys.error("plugin.name Java property not set")
)
val version = sys.props.getOrElse(
"plugin.version",
throw new RuntimeException(
"""|The system property 'plugin.version' is not defined.
|Specify this property using the scriptedLaunchOpts -D.""".stripMargin
)
sys.error("plugin.version Java property not set")
)
addSbtPlugin("io.get-coursier" % "sbt-coursier" % pluginVersion)
}
"io.get-coursier" % name % version
}

View File

@ -1,11 +1,13 @@
{
val pluginVersion = sys.props.getOrElse(
addSbtPlugin {
val name = sys.props.getOrElse(
"plugin.name",
sys.error("plugin.name Java property not set")
)
val version = sys.props.getOrElse(
"plugin.version",
throw new RuntimeException(
"""|The system property 'plugin.version' is not defined.
|Specify this property using the scriptedLaunchOpts -D.""".stripMargin
)
sys.error("plugin.version Java property not set")
)
addSbtPlugin("io.get-coursier" % "sbt-coursier" % pluginVersion)
}
"io.get-coursier" % name % version
}

View File

@ -1,11 +1,13 @@
{
val pluginVersion = sys.props.getOrElse(
addSbtPlugin {
val name = sys.props.getOrElse(
"plugin.name",
sys.error("plugin.name Java property not set")
)
val version = sys.props.getOrElse(
"plugin.version",
throw new RuntimeException(
"""|The system property 'plugin.version' is not defined.
|Specify this property using the scriptedLaunchOpts -D.""".stripMargin
)
sys.error("plugin.version Java property not set")
)
addSbtPlugin("io.get-coursier" % "sbt-coursier" % pluginVersion)
}
"io.get-coursier" % name % version
}

View File

@ -1,11 +1,13 @@
{
val pluginVersion = sys.props.getOrElse(
addSbtPlugin {
val name = sys.props.getOrElse(
"plugin.name",
sys.error("plugin.name Java property not set")
)
val version = sys.props.getOrElse(
"plugin.version",
throw new RuntimeException(
"""|The system property 'plugin.version' is not defined.
|Specify this property using the scriptedLaunchOpts -D.""".stripMargin
)
sys.error("plugin.version Java property not set")
)
addSbtPlugin("io.get-coursier" % "sbt-coursier" % pluginVersion)
}
"io.get-coursier" % name % version
}

View File

@ -1,11 +1,13 @@
{
val pluginVersion = sys.props.getOrElse(
addSbtPlugin {
val name = sys.props.getOrElse(
"plugin.name",
sys.error("plugin.name Java property not set")
)
val version = sys.props.getOrElse(
"plugin.version",
throw new RuntimeException(
"""|The system property 'plugin.version' is not defined.
|Specify this property using the scriptedLaunchOpts -D.""".stripMargin
)
sys.error("plugin.version Java property not set")
)
addSbtPlugin("io.get-coursier" % "sbt-coursier" % pluginVersion)
}
"io.get-coursier" % name % version
}

View File

@ -1,11 +1,13 @@
{
val pluginVersion = sys.props.getOrElse(
addSbtPlugin {
val name = sys.props.getOrElse(
"plugin.name",
sys.error("plugin.name Java property not set")
)
val version = sys.props.getOrElse(
"plugin.version",
throw new RuntimeException(
"""|The system property 'plugin.version' is not defined.
|Specify this property using the scriptedLaunchOpts -D.""".stripMargin
)
sys.error("plugin.version Java property not set")
)
addSbtPlugin("io.get-coursier" % "sbt-coursier" % pluginVersion)
}
"io.get-coursier" % name % version
}

View File

@ -1,11 +1,13 @@
{
val pluginVersion = sys.props.getOrElse(
addSbtPlugin {
val name = sys.props.getOrElse(
"plugin.name",
sys.error("plugin.name Java property not set")
)
val version = sys.props.getOrElse(
"plugin.version",
throw new RuntimeException(
"""|The system property 'plugin.version' is not defined.
|Specify this property using the scriptedLaunchOpts -D.""".stripMargin
)
sys.error("plugin.version Java property not set")
)
addSbtPlugin("io.get-coursier" % "sbt-coursier" % pluginVersion)
}
"io.get-coursier" % name % version
}

View File

@ -1,11 +1,13 @@
{
val pluginVersion = sys.props.getOrElse(
addSbtPlugin {
val name = sys.props.getOrElse(
"plugin.name",
sys.error("plugin.name Java property not set")
)
val version = sys.props.getOrElse(
"plugin.version",
throw new RuntimeException(
"""|The system property 'plugin.version' is not defined.
|Specify this property using the scriptedLaunchOpts -D.""".stripMargin
)
sys.error("plugin.version Java property not set")
)
addSbtPlugin("io.get-coursier" % "sbt-coursier" % pluginVersion)
}
"io.get-coursier" % name % version
}

View File

@ -1,11 +1,13 @@
{
val pluginVersion = sys.props.getOrElse(
addSbtPlugin {
val name = sys.props.getOrElse(
"plugin.name",
sys.error("plugin.name Java property not set")
)
val version = sys.props.getOrElse(
"plugin.version",
throw new RuntimeException(
"""|The system property 'plugin.version' is not defined.
|Specify this property using the scriptedLaunchOpts -D.""".stripMargin
)
sys.error("plugin.version Java property not set")
)
addSbtPlugin("io.get-coursier" % "sbt-coursier" % pluginVersion)
}
"io.get-coursier" % name % version
}

View File

@ -1,11 +1,13 @@
{
val pluginVersion = sys.props.getOrElse(
addSbtPlugin {
val name = sys.props.getOrElse(
"plugin.name",
sys.error("plugin.name Java property not set")
)
val version = sys.props.getOrElse(
"plugin.version",
throw new RuntimeException(
"""|The system property 'plugin.version' is not defined.
|Specify this property using the scriptedLaunchOpts -D.""".stripMargin
)
sys.error("plugin.version Java property not set")
)
addSbtPlugin("io.get-coursier" % "sbt-coursier" % pluginVersion)
}
"io.get-coursier" % name % version
}

View File

@ -1,11 +1,13 @@
{
val pluginVersion = sys.props.getOrElse(
addSbtPlugin {
val name = sys.props.getOrElse(
"plugin.name",
sys.error("plugin.name Java property not set")
)
val version = sys.props.getOrElse(
"plugin.version",
throw new RuntimeException(
"""|The system property 'plugin.version' is not defined.
|Specify this property using the scriptedLaunchOpts -D.""".stripMargin
)
sys.error("plugin.version Java property not set")
)
addSbtPlugin("io.get-coursier" % "sbt-coursier" % pluginVersion)
}
"io.get-coursier" % name % version
}

View File

@ -1,11 +1,13 @@
{
val pluginVersion = sys.props.getOrElse(
addSbtPlugin {
val name = sys.props.getOrElse(
"plugin.name",
sys.error("plugin.name Java property not set")
)
val version = sys.props.getOrElse(
"plugin.version",
throw new RuntimeException(
"""|The system property 'plugin.version' is not defined.
|Specify this property using the scriptedLaunchOpts -D.""".stripMargin
)
sys.error("plugin.version Java property not set")
)
addSbtPlugin("io.get-coursier" % "sbt-coursier" % pluginVersion)
}
"io.get-coursier" % name % version
}

View File

@ -1,11 +1,13 @@
{
val pluginVersion = sys.props.getOrElse(
addSbtPlugin {
val name = sys.props.getOrElse(
"plugin.name",
sys.error("plugin.name Java property not set")
)
val version = sys.props.getOrElse(
"plugin.version",
throw new RuntimeException(
"""|The system property 'plugin.version' is not defined.
|Specify this property using the scriptedLaunchOpts -D.""".stripMargin
)
sys.error("plugin.version Java property not set")
)
addSbtPlugin("io.get-coursier" % "sbt-coursier" % pluginVersion)
}
"io.get-coursier" % name % version
}

View File

@ -1,11 +1,13 @@
{
val pluginVersion = sys.props.getOrElse(
addSbtPlugin {
val name = sys.props.getOrElse(
"plugin.name",
sys.error("plugin.name Java property not set")
)
val version = sys.props.getOrElse(
"plugin.version",
throw new RuntimeException(
"""|The system property 'plugin.version' is not defined.
|Specify this property using the scriptedLaunchOpts -D.""".stripMargin
)
sys.error("plugin.version Java property not set")
)
addSbtPlugin("io.get-coursier" % "sbt-coursier" % pluginVersion)
}
"io.get-coursier" % name % version
}

View File

@ -1,11 +1,13 @@
{
val pluginVersion = sys.props.getOrElse(
addSbtPlugin {
val name = sys.props.getOrElse(
"plugin.name",
sys.error("plugin.name Java property not set")
)
val version = sys.props.getOrElse(
"plugin.version",
throw new RuntimeException(
"""|The system property 'plugin.version' is not defined.
|Specify this property using the scriptedLaunchOpts -D.""".stripMargin
)
sys.error("plugin.version Java property not set")
)
addSbtPlugin("io.get-coursier" % "sbt-coursier" % pluginVersion)
}
"io.get-coursier" % name % version
}

View File

@ -1,11 +1,13 @@
{
val pluginVersion = sys.props.getOrElse(
addSbtPlugin {
val name = sys.props.getOrElse(
"plugin.name",
sys.error("plugin.name Java property not set")
)
val version = sys.props.getOrElse(
"plugin.version",
throw new RuntimeException(
"""|The system property 'plugin.version' is not defined.
|Specify this property using the scriptedLaunchOpts -D.""".stripMargin
)
sys.error("plugin.version Java property not set")
)
addSbtPlugin("io.get-coursier" % "sbt-coursier" % pluginVersion)
}
"io.get-coursier" % name % version
}

View File

@ -1,11 +1,13 @@
{
val pluginVersion = sys.props.getOrElse(
addSbtPlugin {
val name = sys.props.getOrElse(
"plugin.name",
sys.error("plugin.name Java property not set")
)
val version = sys.props.getOrElse(
"plugin.version",
throw new RuntimeException(
"""|The system property 'plugin.version' is not defined.
|Specify this property using the scriptedLaunchOpts -D.""".stripMargin
)
sys.error("plugin.version Java property not set")
)
addSbtPlugin("io.get-coursier" % "sbt-coursier" % pluginVersion)
}
"io.get-coursier" % name % version
}

View File

@ -1,11 +1,13 @@
{
val pluginVersion = sys.props.getOrElse(
addSbtPlugin {
val name = sys.props.getOrElse(
"plugin.name",
sys.error("plugin.name Java property not set")
)
val version = sys.props.getOrElse(
"plugin.version",
throw new RuntimeException(
"""|The system property 'plugin.version' is not defined.
|Specify this property using the scriptedLaunchOpts -D.""".stripMargin
)
sys.error("plugin.version Java property not set")
)
addSbtPlugin("io.get-coursier" % "sbt-coursier" % pluginVersion)
}
"io.get-coursier" % name % version
}

View File

@ -1,11 +1,13 @@
{
val pluginVersion = sys.props.getOrElse(
addSbtPlugin {
val name = sys.props.getOrElse(
"plugin.name",
sys.error("plugin.name Java property not set")
)
val version = sys.props.getOrElse(
"plugin.version",
throw new RuntimeException(
"""|The system property 'plugin.version' is not defined.
|Specify this property using the scriptedLaunchOpts -D.""".stripMargin
)
sys.error("plugin.version Java property not set")
)
addSbtPlugin("io.get-coursier" % "sbt-coursier" % pluginVersion)
}
"io.get-coursier" % name % version
}

View File

@ -1,11 +1,13 @@
{
val pluginVersion = sys.props.getOrElse(
addSbtPlugin {
val name = sys.props.getOrElse(
"plugin.name",
sys.error("plugin.name Java property not set")
)
val version = sys.props.getOrElse(
"plugin.version",
throw new RuntimeException(
"""|The system property 'plugin.version' is not defined.
|Specify this property using the scriptedLaunchOpts -D.""".stripMargin
)
sys.error("plugin.version Java property not set")
)
addSbtPlugin("io.get-coursier" % "sbt-coursier" % pluginVersion)
}
"io.get-coursier" % name % version
}

View File

@ -1,11 +1,13 @@
{
val pluginVersion = sys.props.getOrElse(
addSbtPlugin {
val name = sys.props.getOrElse(
"plugin.name",
sys.error("plugin.name Java property not set")
)
val version = sys.props.getOrElse(
"plugin.version",
throw new RuntimeException(
"""|The system property 'plugin.version' is not defined.
|Specify this property using the scriptedLaunchOpts -D.""".stripMargin
)
sys.error("plugin.version Java property not set")
)
addSbtPlugin("io.get-coursier" % "sbt-coursier" % pluginVersion)
}
"io.get-coursier" % name % version
}

View File

@ -1,11 +1,13 @@
{
val pluginVersion = sys.props.getOrElse(
addSbtPlugin {
val name = sys.props.getOrElse(
"plugin.name",
sys.error("plugin.name Java property not set")
)
val version = sys.props.getOrElse(
"plugin.version",
throw new RuntimeException(
"""|The system property 'plugin.version' is not defined.
|Specify this property using the scriptedLaunchOpts -D.""".stripMargin
)
sys.error("plugin.version Java property not set")
)
addSbtPlugin("io.get-coursier" % "sbt-coursier" % pluginVersion)
}
"io.get-coursier" % name % version
}

View File

@ -1,11 +1,13 @@
{
val pluginVersion = sys.props.getOrElse(
addSbtPlugin {
val name = sys.props.getOrElse(
"plugin.name",
sys.error("plugin.name Java property not set")
)
val version = sys.props.getOrElse(
"plugin.version",
throw new RuntimeException(
"""|The system property 'plugin.version' is not defined.
|Specify this property using the scriptedLaunchOpts -D.""".stripMargin
)
sys.error("plugin.version Java property not set")
)
addSbtPlugin("io.get-coursier" % "sbt-coursier" % pluginVersion)
}
"io.get-coursier" % name % version
}

View File

@ -1,11 +1,13 @@
{
val pluginVersion = sys.props.getOrElse(
addSbtPlugin {
val name = sys.props.getOrElse(
"plugin.name",
sys.error("plugin.name Java property not set")
)
val version = sys.props.getOrElse(
"plugin.version",
throw new RuntimeException(
"""|The system property 'plugin.version' is not defined.
|Specify this property using the scriptedLaunchOpts -D.""".stripMargin
)
sys.error("plugin.version Java property not set")
)
addSbtPlugin("io.get-coursier" % "sbt-coursier" % pluginVersion)
}
"io.get-coursier" % name % version
}

View File

@ -1,11 +1,13 @@
{
val pluginVersion = sys.props.getOrElse(
addSbtPlugin {
val name = sys.props.getOrElse(
"plugin.name",
sys.error("plugin.name Java property not set")
)
val version = sys.props.getOrElse(
"plugin.version",
throw new RuntimeException(
"""|The system property 'plugin.version' is not defined.
|Specify this property using the scriptedLaunchOpts -D.""".stripMargin
)
sys.error("plugin.version Java property not set")
)
addSbtPlugin("io.get-coursier" % "sbt-coursier" % pluginVersion)
}
"io.get-coursier" % name % version
}

View File

@ -1,11 +1,13 @@
{
val pluginVersion = sys.props.getOrElse(
addSbtPlugin {
val name = sys.props.getOrElse(
"plugin.name",
sys.error("plugin.name Java property not set")
)
val version = sys.props.getOrElse(
"plugin.version",
throw new RuntimeException(
"""|The system property 'plugin.version' is not defined.
|Specify this property using the scriptedLaunchOpts -D.""".stripMargin
)
sys.error("plugin.version Java property not set")
)
addSbtPlugin("io.get-coursier" % "sbt-coursier" % pluginVersion)
}
"io.get-coursier" % name % version
}

View File

@ -1,11 +1,13 @@
{
val pluginVersion = sys.props.getOrElse(
addSbtPlugin {
val name = sys.props.getOrElse(
"plugin.name",
sys.error("plugin.name Java property not set")
)
val version = sys.props.getOrElse(
"plugin.version",
throw new RuntimeException(
"""|The system property 'plugin.version' is not defined.
|Specify this property using the scriptedLaunchOpts -D.""".stripMargin
)
sys.error("plugin.version Java property not set")
)
addSbtPlugin("io.get-coursier" % "sbt-coursier" % pluginVersion)
}
"io.get-coursier" % name % version
}

View File

@ -1,11 +1,13 @@
{
val pluginVersion = sys.props.getOrElse(
addSbtPlugin {
val name = sys.props.getOrElse(
"plugin.name",
sys.error("plugin.name Java property not set")
)
val version = sys.props.getOrElse(
"plugin.version",
throw new RuntimeException(
"""|The system property 'plugin.version' is not defined.
|Specify this property using the scriptedLaunchOpts -D.""".stripMargin
)
sys.error("plugin.version Java property not set")
)
addSbtPlugin("io.get-coursier" % "sbt-coursier" % pluginVersion)
}
"io.get-coursier" % name % version
}

View File

@ -1,11 +1,13 @@
{
val pluginVersion = sys.props.getOrElse(
addSbtPlugin {
val name = sys.props.getOrElse(
"plugin.name",
sys.error("plugin.name Java property not set")
)
val version = sys.props.getOrElse(
"plugin.version",
throw new RuntimeException(
"""|The system property 'plugin.version' is not defined.
|Specify this property using the scriptedLaunchOpts -D.""".stripMargin
)
sys.error("plugin.version Java property not set")
)
addSbtPlugin("io.get-coursier" % "sbt-coursier" % pluginVersion)
}
"io.get-coursier" % name % version
}

View File

@ -1,11 +1,13 @@
{
val pluginVersion = sys.props.getOrElse(
addSbtPlugin {
val name = sys.props.getOrElse(
"plugin.name",
sys.error("plugin.name Java property not set")
)
val version = sys.props.getOrElse(
"plugin.version",
throw new RuntimeException(
"""|The system property 'plugin.version' is not defined.
|Specify this property using the scriptedLaunchOpts -D.""".stripMargin
)
sys.error("plugin.version Java property not set")
)
addSbtPlugin("io.get-coursier" % "sbt-coursier" % pluginVersion)
}
"io.get-coursier" % name % version
}

View File

@ -1,11 +1,13 @@
{
val pluginVersion = sys.props.getOrElse(
addSbtPlugin {
val name = sys.props.getOrElse(
"plugin.name",
sys.error("plugin.name Java property not set")
)
val version = sys.props.getOrElse(
"plugin.version",
throw new RuntimeException(
"""|The system property 'plugin.version' is not defined.
|Specify this property using the scriptedLaunchOpts -D.""".stripMargin
)
sys.error("plugin.version Java property not set")
)
addSbtPlugin("io.get-coursier" % "sbt-coursier" % pluginVersion)
}
"io.get-coursier" % name % version
}

View File

@ -1,11 +1,13 @@
{
val pluginVersion = sys.props.getOrElse(
addSbtPlugin {
val name = sys.props.getOrElse(
"plugin.name",
sys.error("plugin.name Java property not set")
)
val version = sys.props.getOrElse(
"plugin.version",
throw new RuntimeException(
"""|The system property 'plugin.version' is not defined.
|Specify this property using the scriptedLaunchOpts -D.""".stripMargin
)
sys.error("plugin.version Java property not set")
)
addSbtPlugin("io.get-coursier" % "sbt-coursier" % pluginVersion)
}
"io.get-coursier" % name % version
}

View File

@ -1,11 +1,13 @@
{
val pluginVersion = sys.props.getOrElse(
addSbtPlugin {
val name = sys.props.getOrElse(
"plugin.name",
sys.error("plugin.name Java property not set")
)
val version = sys.props.getOrElse(
"plugin.version",
throw new RuntimeException(
"""|The system property 'plugin.version' is not defined.
|Specify this property using the scriptedLaunchOpts -D.""".stripMargin
)
sys.error("plugin.version Java property not set")
)
addSbtPlugin("io.get-coursier" % "sbt-coursier" % pluginVersion)
}
"io.get-coursier" % name % version
}

View File

@ -1,11 +1,13 @@
{
val pluginVersion = sys.props.getOrElse(
addSbtPlugin {
val name = sys.props.getOrElse(
"plugin.name",
sys.error("plugin.name Java property not set")
)
val version = sys.props.getOrElse(
"plugin.version",
throw new RuntimeException(
"""|The system property 'plugin.version' is not defined.
|Specify this property using the scriptedLaunchOpts -D.""".stripMargin
)
sys.error("plugin.version Java property not set")
)
addSbtPlugin("io.get-coursier" % "sbt-coursier" % pluginVersion)
}
"io.get-coursier" % name % version
}

View File

@ -1,11 +1,13 @@
{
val pluginVersion = sys.props.getOrElse(
addSbtPlugin {
val name = sys.props.getOrElse(
"plugin.name",
sys.error("plugin.name Java property not set")
)
val version = sys.props.getOrElse(
"plugin.version",
throw new RuntimeException(
"""|The system property 'plugin.version' is not defined.
|Specify this property using the scriptedLaunchOpts -D.""".stripMargin
)
sys.error("plugin.version Java property not set")
)
addSbtPlugin("io.get-coursier" % "sbt-coursier" % pluginVersion)
}
"io.get-coursier" % name % version
}

View File

@ -1,11 +1,13 @@
{
val pluginVersion = sys.props.getOrElse(
addSbtPlugin {
val name = sys.props.getOrElse(
"plugin.name",
sys.error("plugin.name Java property not set")
)
val version = sys.props.getOrElse(
"plugin.version",
throw new RuntimeException(
"""|The system property 'plugin.version' is not defined.
|Specify this property using the scriptedLaunchOpts -D.""".stripMargin
)
sys.error("plugin.version Java property not set")
)
addSbtPlugin("io.get-coursier" % "sbt-coursier" % pluginVersion)
}
"io.get-coursier" % name % version
}

View File

@ -1,11 +1,13 @@
{
val pluginVersion = sys.props.getOrElse(
addSbtPlugin {
val name = sys.props.getOrElse(
"plugin.name",
sys.error("plugin.name Java property not set")
)
val version = sys.props.getOrElse(
"plugin.version",
throw new RuntimeException(
"""|The system property 'plugin.version' is not defined.
|Specify this property using the scriptedLaunchOpts -D.""".stripMargin
)
sys.error("plugin.version Java property not set")
)
addSbtPlugin("io.get-coursier" % "sbt-coursier" % pluginVersion)
}
"io.get-coursier" % name % version
}

View File

@ -29,6 +29,7 @@ object Settings {
Seq(
scriptedLaunchOpts ++= Seq(
"-Xmx1024M",
"-Dplugin.name=" + name.value,
"-Dplugin.version=" + version.value,
"-Dsbttest.base=" + (sourceDirectory.value / "sbt-test").getAbsolutePath
),