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
Maven plugin install task doesn't work with v3.5 #2019
Comments
You are correct that the
However, that only means that the I do not see the
BTW: I'd advice providing a value for the |
@bmuschko The output you posted for up-to-date check shows that the task is skipped although it doesn't explicitly say so . Try putting The harder way of verifying this would be to run |
From Gradle docs: Introducing Incremental Build Support
I'm not sure why is this tagged as a |
I am not sure why you think
This works for me with this code.
I can run |
And you're running Gradle 3.5, preferably using the wrapper? |
Yes, that is with the Wrapper you provided. The modification date changes on the published artifacts. Also the
Please provide a sample project. Do you maybe have any addition custom settings in |
I am able to reproduce this issue using the project I'd already provided. Following are the steps:
You'll see that the jar in Maven repo is not updated. If you run a I see no reason whatsoever that the |
Sorry, I followed your steps but cannot reproduce the behavior you are describing. The JAR file is always recreated and the timestamp changes in the Maven repository. Also my |
@asarkar the
Note that it says Executing task ':install' due to:. The fact that @bmuschko can't reproduce your failure using your supplied project and following your step-by-step instructions indicates that there's something else going on here. A few things you can try:
|
Don't have one.
Why? If due to #1811, I don't have a custom
I can't reproduce this issue anymore so I'm going to close this issue. If I'm able to reproduce it later, I'll provide a build scan. Thanks for looking into it. |
The
install
task doesn't declare any output, causing up-to-date check to skip the task. Here's a snippet from running with--debug
The workaround for this is to disable the up-to-date check.
This works with 3.4 so 3.5 must have had some changes to up-to-date check or incremental build in general.
To make matters worse, 3.5 has a regression issue that it wrongly evaluates the local Maven directory.
Expected Behavior
install
task should install the artifact in local Maven repo.install
task should print out the path to the installed artifact inINFO
level.Current Behavior
install
task is skipped.Steps to Reproduce (for bugs)
Extract the attached demo.zip and run
./gradlew clean install
. Then go your to your local Maven repository and try to locate the jar file.Your Environment
This is happening regardless of the OS, using Gradle 3.5.
The text was updated successfully, but these errors were encountered: