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
[com.gradle.plugin-publish] 0.19.0 uses deprecated configurations #19458
Comments
Looks like the plugin is now adding a constraint to all (!) configurations which is quite bold. It's not only giving these false warning. It's also adding this to the metadata (
A plugin should not add dependency constraints like that. This can probably be solved by adding the constraint only to the |
This should be resolved, before you enforce what you wrote in the blog post:
|
This reverts commit aec4337. reason: gradle/gradle#19458 (comment)
This reverts commit aec4337. reason: gradle/gradle#19458 (comment)
This reverts commit aec4337. reason: gradle/gradle#19458 (comment)
Issue moved to gradle/gradlecom #856 via ZenHub |
Version 0.20.0 of the Plugin Publish plugin is now released, should fix these issues. Pls. confirm, if you can and if you see any other problems, pls. let us know. |
The 0.20.0 release has fixed the deprecated configurations issues in this bug. Thanks.
But there are still issues with the operation of the ➜ bnd git:(master) ✗ gradle :gradle-plugins:biz.aQute.bnd.gradle:build :gradle-plugins:biz.aQute.bnd.gradle:publish
executing gradlew instead of gradle
> Task :gradle-plugins:biz.aQute.bnd.gradle:publishPluginMavenPublicationToDistRepository
Execution optimizations have been disabled for task ':gradle-plugins:biz.aQute.bnd.gradle:publishPluginMavenPublicationToDistRepository' to ensure correctness due to the following reasons:
- Gradle detected a problem with the following location: '/Users/hargrave/git/bnd/gradle-plugins/biz.aQute.bnd.gradle/build/libs/biz.aQute.bnd.gradle-6.2.0-SNAPSHOT-javadoc.jar'. Reason: Task ':gradle-plugins:biz.aQute.bnd.gradle:publishPluginMavenPublicationToDistRepository' uses this output of task ':gradle-plugins:biz.aQute.bnd.gradle:publishPluginJavaDocsJar' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. Please refer to https://docs.gradle.org/7.3.3/userguide/validation_problems.html#implicit_dependency for more details about this problem.
- Gradle detected a problem with the following location: '/Users/hargrave/git/bnd/gradle-plugins/biz.aQute.bnd.gradle/build/libs/biz.aQute.bnd.gradle-6.2.0-SNAPSHOT-sources.jar'. Reason: Task ':gradle-plugins:biz.aQute.bnd.gradle:publishPluginMavenPublicationToDistRepository' uses this output of task ':gradle-plugins:biz.aQute.bnd.gradle:publishPluginJar' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. Please refer to https://docs.gradle.org/7.3.3/userguide/validation_problems.html#implicit_dependency for more details about this problem.
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.3.3/userguide/command_line_interface.html#sec:command_line_warnings
Execution optimizations have been disabled for 1 invalid unit(s) of work during this build to ensure correctness.
Please consult deprecation warnings for more details.
BUILD SUCCESSFUL in 1m 30s
25 actionable tasks: 19 executed, 6 up-to-date Should this be a new issue? |
Yes, pls. file a new issue. Thank you. |
* Update Gradle publish plugin, fix Kotlin DSL docs Fixes an issue which may cause builds to fail in some circumstances, citing some Log4j issue (gradle/gradle#19458) * Add debug mode (fixes #15) * Don't copy-paste, kids
Expected Behavior
The
com.gradle.plugin-publish
plugin should not use deprecated configurations for any version of Gradle being used.Current Behavior
The
com.gradle.plugin-publish
plugin uses deprecated configurations (as of Gradle 7.3) which emits warnings and, if--warning-mode=fail
is in effect, fails the build.Context
In my gradle plugin build, I use
com.gradle.plugin-publish
plugin in my gradle plugin project using Gradle 7.3. When updating thecom.gradle.plugin-publish
plugin version from 0.18.0 to 0.19.0, my build fails because the build uses--warning-mode=fail
and the 0.19.0 plugin uses deprecated configurations.See https://github.com/bndtools/bnd/runs/4668447723?check_suite_focus=true#step:5:447 for an example.
Steps to Reproduce
Use version 0.19.0 of the
com.gradle.plugin-publish
plugin with Gradle 7.3 (and optionally--warning-mode=fail
to fail the build).Your Environment
Build scan URL: https://scans.gradle.com/s/lt2reuzn4x62q
The text was updated successfully, but these errors were encountered: