dataflow-video-analytics icon indicating copy to clipboard operation
dataflow-video-analytics copied to clipboard

A problem occurred evaluating root project 'dataflow-video-analytics'.

Open wallwriting opened this issue 2 years ago • 1 comments

When I run gradle spotlessApply -DmainClass=com.google.solutions.df.video.analytics.VideoAnalyticsPipeline, it gives me an error:

FAILURE: Build failed with an exception.

  • Where: Build file '/home/student_00_2f9371f11e09/dataflow-video-analytics/build.gradle' line: 75

  • What went wrong: A problem occurred evaluating root project 'dataflow-video-analytics'.

Could not find method compile() for arguments [{group=org.apache.beam, name=beam-sdks-java-core, version=2.23.0}] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.

  • 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.4/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 1s

wallwriting avatar May 02 '22 16:05 wallwriting

You might need to downgrade Gradle to be compatible. Something like this:

wget https://services.gradle.org/distributions/gradle-6.9.2-bin.zip
sudo unzip -d /opt/gradle gradle-6.9.2-bin.zip
export PATH=/opt/gradle/gradle-6.9.2/bin:$PATH

mdavis6890 avatar Jul 16 '22 20:07 mdavis6890