Skip to content

Conversation

ljacomet
Copy link
Member

@ljacomet ljacomet commented Sep 3, 2018

When an IvyArtifactRepository is configured with a pattern layout, it
can be further configured. This change deprecates the older method that
took both the layout name and a configuration closure in favour of a
named method to configure the pattern layout since the others cannot
be configured.

@ljacomet ljacomet added this to the 5.0 RC1 milestone Sep 3, 2018
@ljacomet ljacomet self-assigned this Sep 3, 2018
@ljacomet ljacomet requested a review from melix September 3, 2018 17:54
@ljacomet ljacomet force-pushed the ljacomet/dependency-management/repo-layout branch from 61b1bc6 to 7d78d80 Compare September 4, 2018 07:40
* @since 2.3 (feature was already present in Groovy DSL, this particular method introduced in 2.3)
* @deprecated use {@link #layout(String)} or {@link #patternLayout(Action)}
*/
@Deprecated
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❓ shouldn't the now deprecated methods implementations nag?

Copy link
Contributor

@melix melix left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The deprecated method should issue a warning (use the nagger). Otherwise changes LGTM.

@ljacomet ljacomet force-pushed the ljacomet/dependency-management/repo-layout branch from 7d78d80 to 4c5f545 Compare September 6, 2018 14:45
@ljacomet
Copy link
Member Author

ljacomet commented Sep 6, 2018

@eskatos @melix Use of DeprecationLogger has been added.

Copy link
Member

@eskatos eskatos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

\o/

@ljacomet ljacomet force-pushed the ljacomet/dependency-management/repo-layout branch 5 times, most recently from 4b5f0e1 to 4067b6a Compare September 10, 2018 10:14
When an IvyArtifactRepository is configured with a `pattern` layout, it
can be further configured. This change deprecates the older method that
took both the layout name and a configuration closure in favour of a
named method to configure the `pattern` layout since the others cannot
be configured.

Issue #6529
This test triggers a deprecation warning as the Kotlin DSL needs to
remove the usage of `layout("pattern") {`. BUt the warning does not
appear all the time, so I had to disable checking altogether.
@ljacomet ljacomet force-pushed the ljacomet/dependency-management/repo-layout branch from 4067b6a to 4dadf84 Compare September 10, 2018 12:26
@ljacomet ljacomet merged commit 4dadf84 into master Sep 10, 2018
@ljacomet ljacomet deleted the ljacomet/dependency-management/repo-layout branch September 10, 2018 12:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants