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/> found in Maven settings.xml #1811
Comments
@pkubowicz Your Also if I modify your build script slightly by adding a group e.g.
|
It should not matter if the plugin contains any code. I found this bug on a bigger project, but I don't want to share it, so I prepared a minimal fake project demonstrating the issue. To avoid any confusion, I have just added a single class to Note that:
|
Sorry, I didn't look in the root project. That's fine then. Are you running your project in parallel? I don't think the publishing/consuming logic itself is the problem. It's more a problem with execution order.
Can you verify the same behavior? |
No, I don't run in parallel. You can confirm it in my build scan. I am suprised that you can put anything to ~/.m2. My build prints (I added additional logging):
|
Do you have a |
You are right: if I remove I removed credentials from this file, then reduced it to the minimal template from the Maven website and it still triggers bad behaviour of Gradle 3.5:
|
It looks like this is a regression in the way we handle |
Thanks for the report @pkubowicz: I'm working on a fix. |
Pending a fix, another workaround would be to set the |
We are impacted by this issue too. Why is this ticket closed? Shouldn't it be kept open until a fix is released and the reporter has a chance to verify it? |
@asarkar The reporter and you can try out the fix with one of our nightly builds: https://gradle.org/nightly. Keep in mind that we already branched for 4.0 and that's why you see 4.1 here. We currently do not produce nightlies for releases we are in the process of finishing up. Certainly something we could improve on. Either way we close the ticket when we think it is fixed to keep track of it. We write plenty of tests so we are pretty confident that it is fixed. Feel free to try a nightly. |
@bmuschko The nightly build is Dev build, and there's no guarantee what works today, will continue to work in the final release. APIs may be changed (not unusual until RC), or simply a regression may show up (like the one being discussed here). Closing a ticket based on nightly build is unreliable, and doesn't help the user. |
@asarkar We are heavily relying on different types of tests. In one form we are actually building a new distribution of Gradle for the latest commit and run the tests with that distribution. The change also contains these types of tests. If code has been changed in that area then the tests should break as well. If the tests don't break then we did a bad job. So far I can't really remember many occasions when we didn't write the appropriate tests and the functionality was still broken. So you'll have to trust us to do the right thing. Feel free to manually test the RC. It's going to come up soon. |
This is still happening for me even with the localRepository tag correctly set! |
Regression in 3.5 compared to 3.4.1 - mavenLocal() does not work
Expected Behavior
Current Behavior
Gradle 3.5 treats the current directory as the local Maven repo:
Context
IMO this bugs breaks the basic developer lifecycle
Steps to Reproduce (for bugs)
Follow instructions in https://github.com/pkubowicz/gradle-maven-local
Your Environment
Linux, Gradle 3.5
The text was updated successfully, but these errors were encountered: