The compile configuration has been deprecated for dependency declaration. If you run with -warning-mode all enabled you’ll get a more detailed explanation: Use ‘–warning-mode all’ to show the individual deprecation warnings. If you try to use compile in your Gradle 6 project you’ll get a warning like this:ĭeprecated Gradle features were used in this build, making it incompatible with Gradle 7.0. You should always use implementation rather than compile for dependencies, as compile is now deprecated or removed in the case of Gradle 7+. Fortunately, the implementation dependency configuration provides the same functionality as compile. The compile dependency configuration has been removed in the recently released Gradle 7.0, and is deprecated in earlier versions. However, the docs for the Java plugin say:Ĭompile time dependencies.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |