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
mavenLocal broken when <localRepository>/my-relocated-maven-repo</localRepository> found in Maven settings.xml #2843
Comments
In Gradle 3.5, we improved performance by removing the need to spawn an external process to read the Maven In doing so, it looks like we lost this special handling of absolute file paths on Windows:
So this is the case where Line 51 in e6598d4
@avelella would you be interested in contributing a fix? We'd need some test coverage in In the meantime, I think a workaround would be to provide a fully-qualified file path for windows (with the drive letter). |
@blindpirate Can you please add the milestone so we know later what version of Gradle introduced the fix? Please also don't forget to mention the contribution in the release notes! |
@bmuschko No problem! |
@bmuschko Looks like fixed issues are rendered via |
@blindpirate Never mind about the release notes. For some reason I thought this was a PR. |
Regression in 4.1 compared to 3.4.1 - mavenLocal() does not work
Expected Behavior
Dependencies or plugins can't be read from mavenLocal(), where maven local is configured in my settings.xml to be in a custom location.
Current Behavior
I can publish to mavenLocal() and it goes to my custom repository. I can't read from mavenLocal(). Gradle does see my custom settings.xml, but it's using the current directory as the base. E.g.: (current-directory)/my-relocated-maven-repo
This looks a lot like the issue reported here: #1811
But that issue was using the empty tag:
<localRepository/>
Context
We can't use mavenLocal in our builds.
Steps to Reproduce (for bugs)
Create a file ~/.m2/settings.xml
Contents:
Your Environment
Windows. Gradle 4.1.
The text was updated successfully, but these errors were encountered: