diff --git a/src/sbt-test/shading/directories/build.sbt b/src/sbt-test/shading/directories/build.sbt index bb2b8d9..8857406 100644 --- a/src/sbt-test/shading/directories/build.sbt +++ b/src/sbt-test/shading/directories/build.sbt @@ -6,17 +6,17 @@ exportJars := false lazy val root = (project in file(".")) .settings( - crossPaths := false, - assembly / assemblyJarName := "assembly.jar", - - TaskKey[Unit]("check") := { - val expected = "Hello shaded.SomeClass" - val output = sys.process.Process("java", Seq("-jar", assembly.value.absString())).!!.trim - if (output != expected) sys.error("Unexpected output: " + output) - }, - TaskKey[Unit]("unzip") := { IO.unzip((assembly / assemblyOutputPath).value, crossTarget.value / "unzipped") } ) + +TaskKey[Unit]("check") := { + val expected = "Hello shaded.SomeClass" + val output = sys.process.Process( + "java", + Seq("-jar", (crossTarget.value / "assembly.jar").toString) + ).!!.trim + if (output != expected) sys.error("Unexpected output: " + output) +} diff --git a/src/sbt-test/shading/directories/test b/src/sbt-test/shading/directories/test index cbb093f..0ada721 100644 --- a/src/sbt-test/shading/directories/test +++ b/src/sbt-test/shading/directories/test @@ -1,6 +1,7 @@ # Test that assembly contains shaded classes # but the original classes are left untouched. +> assembly > check > unzip