sbt-release icon indicating copy to clipboard operation
sbt-release copied to clipboard

java.lang.IllegalArgumentException: requirement failed: No /trunk, /branches or /tags part found in svn url

Open rwijngaa opened this issue 8 years ago • 2 comments

The docs mention "sbt-release has built in support to commit/push to Git, Mercurial and Subversion repositories." but does it really support SVN? If so, can you provide examples on how to do this (instead of the default commit-t-git examples?)

rwijngaa avatar Apr 29 '16 14:04 rwijngaa

I guess the real question here is, why is the statement below not working in my case: "releaseVcs := Vcs.detect(baseDirectory.value)"

object Vcs { def detect(dir: File): Option[Vcs] = { Stream(Git, Mercurial, Subversion).flatMap(comp => comp.isRepository(dir).map(comp.mkVcs(_))).headOption } }

I don't have any .git folder in my working directory. Only .svn As i'm working on different projects (git and svn), could i override this detection somehow?

rwijngaa avatar May 02 '16 09:05 rwijngaa

ok, i re-installed my git client and now it seems to work better. But at svn tagging time i get:

java.lang.IllegalArgumentException: requirement failed: No /trunk, /branches or /tags part found in svn url. Base url cannot be extracted.

my svn url is something like (output from svn info) URL: svn://svn.company.com/source/ssi/app/trunk

rwijngaa avatar May 04 '16 12:05 rwijngaa