Closed kwerber closed 3 years ago
Hey Kevin,
so, I pushed some additional logic which hopefully will help with your issues
1) Now you don't need tags anymore for this to work, a -1
will be returned if this is the case.
Moreover, now one can set whatever postfix he likes best by passing the ending lambda on alsoSnapshot
, default is "+$gitDistance"
2) Now all the backslashes will be switched with normal slashes, I haven't test this though
pull version 0.0.5
let me know if these help
Both issues seem to have been fixed, thanks!
Nice, thanks for reporting
First of all, I am not that knowledgeable when it comes to gradle, so it is certainly possible that I have missed some things.
I tried using this plugin following the README file but came across two problems:
alsoSnapshot()
optionalsoSnapshot()
optionSome links:
}.alsoSnapshot() // this clones the publication for snapshots
git describe --tags
which outputsfatal: No names found, cannot describe anything.
which it then attempts to parse to an int in thegitDistance
functionCaused by: java.lang.IllegalArgumentException: Illegal character in path at index 52: https://api.github.com/repos/kwerber/abc/contents/de\kwerber\abc\0.1\abc-0.1.jar
\
Some additional information: