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

Double deprecation message when using publishing plugin #6653

Closed
jnizet opened this issue Sep 6, 2018 · 3 comments
Closed

Double deprecation message when using publishing plugin #6653

jnizet opened this issue Sep 6, 2018 · 3 comments
Labels
a:bug in:publishing-plugins ivy-publish maven-publish
Milestone

Comments

@jnizet
Copy link
Contributor

jnizet commented Sep 6, 2018

Expected Behavior

When using the publishing plugin without enabling the feature "STABLE_PUBLISHING", I should get a correct deprecation message.

Current Behavior

I get a message with two deprecation warnings:

[...] is now deprecated. has been deprecated.

This is caused by org.gradle.util.SingleMessageLogger#nagUserWithDeprecatedBuildInvocationFeature() appending " has been deprecated." to the summary, which itself already contains the deprecation warning.

Context

Not a big issue of course. I noticed it while translating a sample to Kotlin.

Steps to Reproduce (for bugs)

Use the publishing pugin without enabling the STABLE_PUBLISHING feature

I would be happy to file a PR, but I'm not sure if the correct fix would be to print the prefix as is, without appending "has been deprecated.", or if the specific summary used in PublishingPlugin.java should be reworded (i.e. if its " is now deprecated." ending should be removed)

@marcphilipp
Copy link
Contributor

Good catch! Looks like this was broken in a1006da.

I think removing the " is now deprecated." ending should be fine.

@marcphilipp marcphilipp added this to the 4.10.1 milestone Sep 6, 2018
@jnizet
Copy link
Contributor Author

jnizet commented Sep 6, 2018

I'll file a PR tonight (French time)

@marcphilipp
Copy link
Contributor

Please file it against the release branch so we can include the fix in 4.10.1.

jnizet added a commit to jnizet/gradle that referenced this issue Sep 6, 2018
…ishing plugin

Signed-off-by: jnizet <jb@ninja-squad.com>
breskeby pushed a commit that referenced this issue Sep 6, 2018
… plugin (#6655)

Signed-off-by: jnizet <jb@ninja-squad.com>
@oehme oehme closed this as completed Sep 7, 2018
@wolfs wolfs changed the title double deprecation message when using publishing plugin Double deprecation message when using publishing plugin Sep 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a:bug in:publishing-plugins ivy-publish maven-publish
Projects
None yet
Development

No branches or pull requests

3 participants