From 2b64cc2b55f1fc0443a21c586eb592bea8414855 Mon Sep 17 00:00:00 2001 From: Adrien Piquerez Date: Fri, 16 Sep 2022 10:42:05 +0200 Subject: [PATCH] Fix parsing in sbt 1.3 --- sbt-plugin/build.sbt | 2 +- .../src/main/scala/ch/epfl/scala/SubmitDependencyGraph.scala | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sbt-plugin/build.sbt b/sbt-plugin/build.sbt index c2b3306..96494a8 100644 --- a/sbt-plugin/build.sbt +++ b/sbt-plugin/build.sbt @@ -13,7 +13,7 @@ inThisBuild( developers := Developers.all, version ~= { dynVer => if (isRelease) dynVer - else "2.0.1" // only for local publishing + else "2.1.0-SNAPSHOT" // only for local publishing }, // Scalafix settings semanticdbEnabled := true, diff --git a/sbt-plugin/src/main/scala/ch/epfl/scala/SubmitDependencyGraph.scala b/sbt-plugin/src/main/scala/ch/epfl/scala/SubmitDependencyGraph.scala index 68766f5..f73066e 100644 --- a/sbt-plugin/src/main/scala/ch/epfl/scala/SubmitDependencyGraph.scala +++ b/sbt-plugin/src/main/scala/ch/epfl/scala/SubmitDependencyGraph.scala @@ -41,7 +41,7 @@ object SubmitDependencyGraph { .parseFromString(raw.mkString) .flatMap(Converter.fromJson[SubmitInput]) .get - } + }.failOnException private def submit(state: State, input: SubmitInput): State = { checkGithubEnv() // fail fast if the Github CI environment is incomplete