My open source project has been stuck with this error since Gradle 3 was released. It is only triggered when I try to upload a release version to Maven Central. To reproduce:
git clone https://github.com/igniterealtime/Smack.git cd Smack git checkout 4.2 # Apply the patch on top of the 4.2 branch that will # set the 'isSnapshot' configuration variable to 'false'. curl http://geekplace.eu/box/Smack_4.2.1-rc1-fTle26PtdiqIGvL5M5jl3c9JTcGN2V.patch | git am # Will fail with Gradle >= 3, and print an warning with Gradle < 3. gradle uploadArchives
I have read a lot on that error, but was unfortunately not able to pin the culprit. What puzzles me is that it is only happening when ‘isSnapshot’ is set to
Full output of
gradle uploadArchives --stacktrace --info --debug can be found at http://geekplace.eu/box/gradle-3-C3WMoThstKRajN9vfvtWLYohsZgzQA.org
I’d appreciate any help. I’ve been trying to solve this for years. Smack’s gradle build has become bigger and bigger over the time. And while it may not be a problem right now that I can only release a new Smack version to Maven Central using Gradle2, I fear that it eventually will be a problem in the near future.