-
Notifications
You must be signed in to change notification settings - Fork 0
Refactor afterEvaluated1 to afterEvaluated2 and update version #241
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -19,7 +19,7 @@ internal abstract class AbstractPaperSurfPlugin<E : AbstractPaperSurfExtension>( | |||||||||
| override fun Project.configure0() { | ||||||||||
| } | ||||||||||
|
|
||||||||||
| override fun Project.afterEvaluated1(extension: E) { | ||||||||||
| final override fun Project.afterEvaluated1(extension: E) { | ||||||||||
| if (extension.useCanvasMc.get()) { | ||||||||||
| repositories { | ||||||||||
| canvasMaven() | ||||||||||
|
|
@@ -41,6 +41,11 @@ internal abstract class AbstractPaperSurfPlugin<E : AbstractPaperSurfExtension>( | |||||||||
| } | ||||||||||
| } | ||||||||||
| } | ||||||||||
|
|
||||||||||
| afterEvaluated2(extension) | ||||||||||
| } | ||||||||||
|
|
||||||||||
| open fun Project.afterEvaluated2(extension: E) { | ||||||||||
|
|
||||||||||
| } | ||||||||||
|
Comment on lines
+48
to
+50
|
||||||||||
| open fun Project.afterEvaluated2(extension: E) { | |
| } | |
| protected open fun Project.afterEvaluated2(extension: E) {} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
afterEvaluated1overrides aprotectedhook fromAbstractCoreSurfPlugin, but this override widens visibility (noprotected). For consistency with the lifecycle-hook pattern used elsewhere (e.g.CommonSurfPlugin.afterEvaluated0,AbstractCoreSurfPlugin.afterEvaluated1), consider keeping this overrideprotectedwhile making itfinal(or otherwise ensure this hook isn’t unintentionally callable from unrelated code within the module).