From 09236ff66206b850b6ee628fd1c2dc85d639a5e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mat=C4=9Bj=20=C4=8Cern=C3=BD?= Date: Tue, 29 Oct 2024 10:10:47 +0100 Subject: [PATCH] Add a hint when directory does not exist --- src/main/scala/xerial/sbt/sonatype/SonatypeClient.scala | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main/scala/xerial/sbt/sonatype/SonatypeClient.scala b/src/main/scala/xerial/sbt/sonatype/SonatypeClient.scala index fdd026e..202e943 100644 --- a/src/main/scala/xerial/sbt/sonatype/SonatypeClient.scala +++ b/src/main/scala/xerial/sbt/sonatype/SonatypeClient.scala @@ -280,6 +280,12 @@ class SonatypeClient( clientBuilder.withPreemptiveRealm(credentialProvider) + if (!localBundlePath.isDirectory) { + info( + s"Directory $localBundlePath does not exist. Hint: Make sure you don't have any uncommitted files (i.e. generated via plugins like scalafmt)" + ) + } + import org.sonatype.spice.zapper.fs.DirectoryIOSource val deployables = new DirectoryIOSource(localBundlePath)