Description
Running "./gradlew build" on a machine without cached maven packages fails as follows:
FAILURE: Build failed with an exception.* What went wrong: A problem occurred configuring root project 'calcite'. > Could not resolve all files for configuration ':classpath'. > Could not find org.ajoberstar.grgit:grgit-core:4.0.1. Searched in the following locations: - https://plugins.gradle.org/m2/org/ajoberstar/grgit/grgit-core/4.0.1/grgit-core-4.0.1.pom If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration. Required by: project : > com.github.vlsi.stage-vote-release:com.github.vlsi.stage-vote-release.gradle.plugin:1.76 > com.github.vlsi.gradle:stage-vote-release-plugin:1.76 project : > com.github.vlsi.stage-vote-release:com.github.vlsi.stage-vote-release.gradle.plugin:1.76 > com.github.vlsi.gradle:stage-vote-release-plugin:1.76 > org.ajoberstar.grgit:grgit-gradle:4.0.1* 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.orgBUILD FAILED in 6s 30 actionable tasks: 3 executed, 27 up-to-date The remote build cache was disabled during the build due to errors.
"com.github.vlsi.stage-vote-release:1.76" depends on "org.ajoberstar.grgit:grgit-gradle:4.0.1" which was only available on JCenter, which was sunset the 15th of August 2024.
Upgrading to the latest version of stage-vote-release (1.90) fixes the issue.