Skip to content

Commit

Permalink
Merge pull request #19 from mdedetrich/error-if-plugin-version-isn't-…
Browse files Browse the repository at this point in the history
…defined

Error if plugin version isn't defined in scripted tests
  • Loading branch information
mkurz authored Jan 26, 2024
2 parents 641d631 + 97e7000 commit 2da5cad
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
addSbtPlugin("com.github.sbt" % "sbt-pull-request-validator" % sys.props("plugin.version"))
sys.props.get("plugin.version") match {
case Some(x) => addSbtPlugin("com.github.sbt" % "sbt-pull-request-validator" % x)
case _ => sys.error("""|The system property 'plugin.version' is not defined.
|Specify this property using the scriptedLaunchOpts -D.""".stripMargin)
}
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
addSbtPlugin("com.github.sbt" % "sbt-pull-request-validator" % sys.props("plugin.version"))
sys.props.get("plugin.version") match {
case Some(x) => addSbtPlugin("com.github.sbt" % "sbt-pull-request-validator" % x)
case _ => sys.error("""|The system property 'plugin.version' is not defined.
|Specify this property using the scriptedLaunchOpts -D.""".stripMargin)
}
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
addSbtPlugin("com.github.sbt" % "sbt-pull-request-validator" % sys.props("plugin.version"))
sys.props.get("plugin.version") match {
case Some(x) => addSbtPlugin("com.github.sbt" % "sbt-pull-request-validator" % x)
case _ => sys.error("""|The system property 'plugin.version' is not defined.
|Specify this property using the scriptedLaunchOpts -D.""".stripMargin)
}
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
addSbtPlugin("com.github.sbt" % "sbt-pull-request-validator" % sys.props("plugin.version"))
sys.props.get("plugin.version") match {
case Some(x) => addSbtPlugin("com.github.sbt" % "sbt-pull-request-validator" % x)
case _ => sys.error("""|The system property 'plugin.version' is not defined.
|Specify this property using the scriptedLaunchOpts -D.""".stripMargin)
}

0 comments on commit 2da5cad

Please sign in to comment.