Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
isaul32 opened this issue Sep 8, 2020 · 1 comment · Fixed by #424

Comments

@isaul32
Copy link

isaul32 commented Sep 8, 2020

I get deprecated features warning. I used Gradle version is 6.5

./gradlew ktlintFormat

Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/6.6.1/userguide/command_line_interface.html#sec:command_line_warnings

./gradlew ktlintFormat --warning-mode all

Querying the mapped value of task ':ktlintKotlinScriptFormat' property 'reporterOutputDir' before task ':ktlintKotlinScriptFormat' has completed has been deprecated. This will fail with an error in Gradle 7.0. Consult the upgrading guide for further information: https://docs.gradle.org/6.5/userguide/upgrading_version_6.html#querying_a_mapped_output_property_of_a_task_before_the_task_has_completed
Querying the mapped value of task ':ktlintMainSourceSetFormat' property 'reporterOutputDir' before task ':ktlintMainSourceSetFormat' has completed has been deprecated. This will fail with an error in Gradle 7.0. Consult the upgrading guide for further information: https://docs.gradle.org/6.5/userguide/upgrading_version_6.html#querying_a_mapped_output_property_of_a_task_before_the_task_has_completed
Querying the mapped value of task ':ktlintTestSourceSetFormat' property 'reporterOutputDir' before task ':ktlintTestSourceSetFormat' has completed has been deprecated. This will fail with an error in Gradle 7.0. Consult the upgrading guide for further information: https://docs.gradle.org/6.5/userguide/upgrading_version_6.html#querying_a_mapped_output_property_of_a_task_before_the_task_has_completed
@eskatos
Copy link
Contributor

eskatos commented Oct 1, 2020

This issue is still valid with v9.4.0.

FWIW, Gradle 6.8 is around the corner and 7.0 will be soon.

@Tapchicoma Tapchicoma self-assigned this Dec 15, 2020
tkindy added a commit to tkindy/betrayal-api that referenced this issue Dec 29, 2020
The previous plugin has Gradle build warnings that'll be errors in the
next version of Gradle. There's an open issue for this:

JLLeitschuh/ktlint-gradle#395

I explored fixing the plugin a bit, but it's pretty complicated and not
worth my time when there are other plugins that run ktlint.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants