From 290d8f1a595026cd9b15fca7a2dec36f4a95e0de Mon Sep 17 00:00:00 2001 From: Eugene Yokota Date: Mon, 27 Nov 2023 01:51:23 -0500 Subject: [PATCH] Mark test-artifact pending --- .../test-artifact/pending | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 sbt-app/src/sbt-test/dependency-management/test-artifact/pending diff --git a/sbt-app/src/sbt-test/dependency-management/test-artifact/pending b/sbt-app/src/sbt-test/dependency-management/test-artifact/pending new file mode 100644 index 000000000..e52a939c9 --- /dev/null +++ b/sbt-app/src/sbt-test/dependency-management/test-artifact/pending @@ -0,0 +1,36 @@ +# define a test jar and publish locally as ivy.xml +# and to a file repository as pom.xml + +$ copy-file changes/def/build.sbt build.sbt +$ copy-file changes/def/Def.java src/test/java/Def.java +> reload +> publishLocal +> publish +> clean + +$ delete build.sbt +$ delete src/test/java/Def.java + +# use the test jar from the maven repository +# by requesting the "tests" classifier + +$ copy-file changes/use/build.sbt build.sbt +$ copy-file changes/use/Use.java Use.java +$ copy-file changes/use/pom.sbt pom.sbt +> reload +> compile +> clean + +# necessary because the cache can't deal with two different types of metadata +$ delete ivy-cache/cache + + +# then, use the test jar via the Ivy repository +# by requesting the "test" configuration + +$ delete pom.sbt +$ copy-file changes/use/local.sbt local.sbt +> reload +> show update +> export dependencyClasspath +> compile