Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0 #38

Open
leandrohmvieira opened this issue May 22, 2020 · 0 comments

Comments

@leandrohmvieira
Copy link

leandrohmvieira commented May 22, 2020

Tried to build this on Azure Pipelines and got this error above, so I ran the build again with the "--warning-mode all" to see the deprecated features used and got this messages bellow:

git clone https://github.com/lensesio/kafka-connect-tools.git
Cloning into 'kafka-connect-tools'...
cd kafka-connect-tools
gradle buildCli --warning-mode all
Welcome to Gradle 6.3!

Here are the highlights of this release:
 - Java 14 support
 - Improved error messages for unexpected failures

For more details see https://docs.gradle.org/6.3/release-notes.html

Starting a Gradle Daemon (subsequent builds will be faster)

> Configure project :
The maven plugin has been deprecated. This is scheduled to be removed in Gradle 7.0. Please use the maven-publish plugin instead. Consult the upgrading guide for further information: https://docs.gradle.org/6.3/userguide/upgrading_version_5.html#legacy_publication_system_is_deprecated_and_replaced_with_the_publish_plugins
 	at build_bp759d9y9oh4pwffs7cy18zv6$_run_closure2.doCall(D:\a\r1\a\kafka-connect-tools\build.gradle:38)
 	(Run with --stacktrace to get the full stack trace of this deprecation warning.)
 The compile configuration has been deprecated for dependency declaration. This will fail with an error in Gradle 7.0. Please use the implementation configuration instead. Consult the upgrading guide for further information: https://docs.gradle.org/6.3/userguide/upgrading_version_5.html#dependencies_should_no_longer_be_declared_using_the_compile_and_runtime_configurations
 	at build_bp759d9y9oh4pwffs7cy18zv6$_run_closure3.doCall(D:\a\r1\a\kafka-connect-tools\build.gradle:54)
 	(Run with --stacktrace to get the full stack trace of this deprecation warning.)
 The testCompile configuration has been deprecated for dependency declaration. This will fail with an error in Gradle 7.0. Please use the testImplementation configuration instead. Consult the upgrading guide for further information: https://docs.gradle.org/6.3/userguide/upgrading_version_5.html#dependencies_should_no_longer_be_declared_using_the_compile_and_runtime_configurations
 	at build_bp759d9y9oh4pwffs7cy18zv6$_run_closure3.doCall(D:\a\r1\a\kafka-connect-tools\build.gradle:61)
 	(Run with --stacktrace to get the full stack trace of this deprecation warning.)
 The testRuntime configuration has been deprecated for dependency declaration. This will fail with an error in Gradle 7.0. Please use the testRuntimeOnly configuration instead. Consult the upgrading guide for further information: https://docs.gradle.org/6.3/userguide/upgrading_version_5.html#dependencies_should_no_longer_be_declared_using_the_compile_and_runtime_configurations
 	at build_bp759d9y9oh4pwffs7cy18zv6$_run_closure3.doCall(D:\a\r1\a\kafka-connect-tools\build.gradle:63)
 	(Run with --stacktrace to get the full stack trace of this deprecation warning.)
 The AbstractArchiveTask.baseName property has been deprecated. This is scheduled to be removed in Gradle 7.0. Please use the archiveBaseName property instead. See https://docs.gradle.org/6.3/dsl/org.gradle.api.tasks.bundling.AbstractArchiveTask.html#org.gradle.api.tasks.bundling.AbstractArchiveTask:baseName for more details.
	at build_bp759d9y9oh4pwffs7cy18zv6$_run_closure5.doCall(D:\a\r1\a\kafka-connect-tools\build.gradle:77)
	(Run with --stacktrace to get the full stack trace of this deprecation warning.)

> Task :clean UP-TO-DATE
> Task :compileJava NO-SOURCE
> Task :compileScala
> Task :processResources NO-SOURCE
> Task :classes
> Task :shadowJar
> Task :fatJar
> Task :buildCli FAILED

FAILURE: Build failed with an exception.
4 actionable tasks: 3 executed, 1 up-to-date

* What went wrong:
Execution failed for task ':buildCli'.
> A problem occurred starting process 'command 'bin/package.sh''

* 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

BUILD FAILED in 1m 30s

I'm not a Java developer, so I don't know anything about Maven or Gradle, am I doing something wrong?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant