gradle-release-plugin icon indicating copy to clipboard operation
gradle-release-plugin copied to clipboard

Issue with Single Quotes on Windows

Open djeverson opened this issue 7 years ago • 3 comments

Hi,

The plugin has worked well on MacOS, running the gradle script on a Windows machine using GitBash, the following error results. Is this an issue with the use of Single Quotes rather than Double Quotes? If so, what recommendations do you have for resolving this?

Thanks!

:releaseerror: pathspec 'version.txt' did not match any file(s) known to git. FAILED

FAILURE: Build failed with an exception.

  • What went wrong: Execution failed for task ':release'.

Process 'command 'git'' finished with non-zero exit value 1

djeverson avatar Nov 12 '17 22:11 djeverson

Please try "chmod 777 version.txt" in git bash on windows.

stefanleh avatar Nov 13 '17 08:11 stefanleh

Hello, I tried that and I get the same result. Perhaps your plugin needs to use a cross-platform plugin for the Exec command: https://github.com/jlouns/gradle-cross-platform-exec-plugin [https://github.com/jlouns/gradle-cross-platform-exec-plugin]

On Mon, Nov 13, 2017 at 2:18 AM, Stefan [email protected] wrote: Please try "chmod 777 version.txt" in git bash on windows.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub [https://github.com/netzwerg/gradle-release-plugin/issues/38#issuecomment-343844194] , or mute the thread [https://github.com/notifications/unsubscribe-auth/ACL6UbRgGZqkZFMeFTf2PrUkH94Fmt-yks5s1_tBgaJpZM4QbEVL] .

djeverson avatar Nov 13 '17 12:11 djeverson

Sorry for not getting back to you earlier – did you have any success in the meantime? Unfortunately, I personally only use the plugin on OSX and Linux, but afaik others are successfully using it on Windows...

netzwerg avatar Nov 20 '17 14:11 netzwerg