Closed athrane closed 2 years ago
Line 121 contains:
compile group: 'org.apache.httpcomponents', name: 'httpclient', version: '4.5.12'
Solution from Stackoverflow: _Note that the compile, runtime, testCompile, and testRuntime configurations introduced by the Java plugin have been deprecated since Gradle 4.10 (Aug 27, 2018), and were finally removed in Gradle 7.0 (Apr 9, 2021). The aforementioned configurations should be replaced by implementation, runtimeOnly, testImplementation, and testRuntimeOnly, respectively._
https://stackoverflow.com/questions/23796404/could-not-find-method-compile-for-arguments-gradle
https://stackoverflow.com/questions/67704181/could-not-find-method-compile-for-arguments-in-java
Final solution:
implementation 'org.apache.httpcomponents:httpclient:4.5.12'
implementation 'org.apache.httpcomponents:httpcore:4.4.13'
implementation 'commons-logging:commons-logging:1.2'
This is part of migration to 1.17.1: Issue #1272. Remapping to 1.17.1 in issue #1334 fails with error:
` gradlew -PUPDATE_MAPPINGS_CHANNEL="official" -PUPDATE_MAPPINGS="1.16.5" updateMappings To honour the JVM settings for this build a single-use Daemon process will be forked. See https://docs.gradle.org/7.4/userguide/gradle_daemon.html#sec:disabling_the_daemon. Daemon will be stopped at the end of the build
FAILURE: Build failed with an exception.
Where: Build file 'build.gradle' line: 121
What went wrong: A problem occurred evaluating root project 'bassebombecraft'.
Try:
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 13s
`