If I clone the Smack git repository (master is at 89ef465) and try to build the project as outlined here, the build fails with the message
$ gradle assemble
FAILURE: Build failed with an exception.
* Where:
Build file '/home/dev/Smack/build.gradle' line: 439
* What went wrong:
A problem occurred evaluating root project 'Smack'.
> Could not get unknown property 'uploadArchives' for root project 'Smack' of type org.gradle.api.Project.
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
* Get more help at https://help.gradle.org
Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
See https://docs.gradle.org/7.3.1/userguide/command_line_interface.html#sec:command_line_warnings
BUILD FAILED in 1s
If I comment out the offending line I get more errors this time apparently related to the maven-publishing
plugin:
* Where:
Build file '/home/dev/Smack/build.gradle' line: 446
* What went wrong:
A problem occurred evaluating root project 'Smack'.
> Failed to apply plugin class 'org.gradle.api.publish.plugins.PublishingPlugin'.
> Cannot run Project.afterEvaluate(Action) when the project is already evaluated.
I’m using Gradle version 7.3.1.