From a770b9818f886ab24c2c910dc1a01bf255f44358 Mon Sep 17 00:00:00 2001 From: Dale Wijnand Date: Sun, 22 Feb 2015 04:17:11 +0000 Subject: [PATCH] Test that artificial root isn't published. --- .../project/artificial-root-no-publish/build.sbt | 10 ++++++++++ .../sbt-test/project/artificial-root-no-publish/test | 4 ++++ 2 files changed, 14 insertions(+) create mode 100644 sbt/src/sbt-test/project/artificial-root-no-publish/build.sbt create mode 100644 sbt/src/sbt-test/project/artificial-root-no-publish/test diff --git a/sbt/src/sbt-test/project/artificial-root-no-publish/build.sbt b/sbt/src/sbt-test/project/artificial-root-no-publish/build.sbt new file mode 100644 index 000000000..974a291a9 --- /dev/null +++ b/sbt/src/sbt-test/project/artificial-root-no-publish/build.sbt @@ -0,0 +1,10 @@ +val commonSettings = Seq( + organization := "com.example", + version := "0.1.0", + ivyPaths := new IvyPaths((baseDirectory in LocalRootProject).value, Some((target in LocalRootProject).value / "ivy-cache")) +) + +lazy val app = (project in file("app")). + settings(commonSettings: _*) + +commonSettings diff --git a/sbt/src/sbt-test/project/artificial-root-no-publish/test b/sbt/src/sbt-test/project/artificial-root-no-publish/test new file mode 100644 index 000000000..13d050bce --- /dev/null +++ b/sbt/src/sbt-test/project/artificial-root-no-publish/test @@ -0,0 +1,4 @@ +> publishLocal +$ exists target/ivy-cache/local/com.example/app_2.10/0.1.0/poms/app_2.10.pom +$ exists target/ivy-cache/local/com.example/app_2.10/0.1.0/jars/app_2.10.jar +$ absent target/ivy-cache/local/com.example/default-root_2.10/0.1.0/ivys/ivy.xml