-
-
Notifications
You must be signed in to change notification settings - Fork 107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
extraArtifactVersionKeyRules not working with sub directory in Windows #385
Comments
Did you test in command line? |
@jschneider I'm still waiting for your reply. |
I am quite sure I build it using the command line ("cmd") on Windows. |
I've come across a variation of this which also appears to not work on Windows. The kmdc project uses a rules file (see sandbox folder) with the content
But when building within the Windows Subsystem for Linux the error does not occur. Edit: Please ignore this. The issue was that Git on Windows handles symlinks by silently creating new placeholder files (and doesn't provide any warnings it is doing so). |
Configuring "extraArtifactVersionKeyRules" with a file in a sub directory:
extraArtifactVersionKeyRules(file("gradle/refreshVersions-extra-rules.txt"))
This works just fine using Ubuntu.
But when running in Windows, the extra rules are not evaluated (for me).
file("gradle/refreshVersions-extra-rules.txt").exists
returns true - on Windows.Workaround
Moving the "refreshVersions-extra-rules.txt" file to the project root directory, solved the issue for me.
The text was updated successfully, but these errors were encountered: