You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using a Provider<java.nio.file.Path> as an artifact for the maven-publish-Plugin does not work in Gradle 6.6 anymore. Using a Path (sun.nio.fs.WindowsPath) instance directly still works.
Expected Behavior
The file my-artifact.txt should be published into the local maven repository.
Current Behavior
You get the following error:
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':generatePomFileForArtifactoryPublication'.
> Cannot convert provided value (my-artifact.txt) to a file.
Context
This works in Gradle 6.5.1 and below, but stops working in Gradle 6.6. I also tested all newer versions up to 6.7.1, they are all affected.
This bug is quite annoying for me as it prevents a straight forward update to Gradle's Lazy Configuration, which would be a big improvement. I don't want to tell all my users that they now have to add a workaround for this bug.
I would be very grateful if this gets fixed and it seems like it can't be that difficult. It would at least be helpful to know why this was removed from the milestone 7.1 RC1.
Using a
Provider<java.nio.file.Path>
as an artifact for themaven-publish
-Plugin does not work in Gradle6.6
anymore. Using a Path (sun.nio.fs.WindowsPath
) instance directly still works.Expected Behavior
The file
my-artifact.txt
should be published into the local maven repository.Current Behavior
You get the following error:
Context
This works in Gradle
6.5.1
and below, but stops working in Gradle6.6
. I also tested all newer versions up to6.7.1
, they are all affected.May be related to #11054.
Steps to Reproduce
Execute
gradlew publishToMavenLocal
in this project: gradle-issue-15711.zipFor reference here is the
build.gradle
:Your Environment
Build scan URL: https://gradle.com/s/qxutkwm5vnfdq
The text was updated successfully, but these errors were encountered: