The compile and testCompile keywords were eliminated from gradle and were replaced with implementation and testImplementation. The current build.gradle contains the deprecated keywords. Due to the deprecation gradle cannot process the build.gradle and exits with error messages, e.g.:
A problem occurred evaluating root project 'webapp-hardware-bridge'.
> Could not find method compile() for arguments [{group=org.apache.logging.log4j, name=log4j-api, version=2.11.2}] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.
Solution
Replace compile with implementation and testCompile with testImplementation
Issue
The
compile
andtestCompile
keywords were eliminated from gradle and were replaced withimplementation
andtestImplementation
. The currentbuild.gradle
contains the deprecated keywords. Due to the deprecation gradle cannot process thebuild.gradle
and exits with error messages, e.g.:Solution
Replace
compile
withimplementation
andtestCompile
withtestImplementation