Skip to content

Commit

Permalink
Add a hint when directory does not exist (#542)
Browse files Browse the repository at this point in the history
Co-authored-by: Matěj Černý <matej.cerny@budgetbakers.com>
  • Loading branch information
matejcerny and Matěj Černý authored Nov 4, 2024
1 parent f9a8b84 commit b5e2ee2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/main/scala/xerial/sbt/sonatype/SonatypeClient.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit b5e2ee2

Please sign in to comment.