Skip to content

Commit

Permalink
Fix wrong deprecation message
Browse files Browse the repository at this point in the history
  • Loading branch information
Omico committed Apr 23, 2023
1 parent 8804ef0 commit 0c046c1
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ import org.gradle.api.plugins.ExtensionAware
// TODO Remove deprecated methods in Gradm 5.0.0.
interface GradmIntegrationsExtension : ExtensionAware {
@Deprecated(
message = "Use `apply` instead. This method will be removed in Gradm 5.0.0.",
replaceWith = ReplaceWith("apply(id)"),
message = "Use `register` instead. This method will be removed in Gradm 5.0.0.",
replaceWith = ReplaceWith("register(id)"),
level = DeprecationLevel.WARNING,
)
fun apply(id: String)

@Deprecated(
message = "Use `apply` instead. This method will be removed in Gradm 5.0.0.",
replaceWith = ReplaceWith("apply(id, configure)"),
message = "Use `register` instead. This method will be removed in Gradm 5.0.0.",
replaceWith = ReplaceWith("register(id, configure)"),
level = DeprecationLevel.WARNING,
)
fun apply(id: String, configure: Action<GradmIntegrationExtension>)
Expand Down

0 comments on commit 0c046c1

Please sign in to comment.