Repository navigation
Introduce BasePluginExtension #16900
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
Merged
+506
−90
Merged
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
74261c0
Introduce BasePluginExtension
donat ba80772
Deprecate BasePluginConvention
donat 6b075a4
Remove deprecation logging
donat 85723be
Add reminder to deprecate Project.getConventions()
donat a070bc0
Adjust tests
donat 1b7c2b6
Cleanup BasePluginExtension
donat 8cc14d3
Add test coverage and cleanup existing test
donat 8e4bd10
Documentation
donat 33e07e0
Restore HasPublicType interface on DefaultBasePluginConvention
donat 8763855
Dont't use @Incubating on BasePluginExtension
donat 65c6e55
Don't expose redundant properties in BasePluginExtension
donat 3d80bc3
Fix build script and test
donat 4a45cb4
Restore compatibility with existing Kotlin DSL scripts
donat eccc55f
Make compatibility check pass
donat ada69e3
Fix typo
donat d8e2225
Adjust extension implementation
donat ac836cb
Adjust upgrade guide
donat cc7de1c
Merge branch 'master' into donat/convention/base
donat File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
subprojects/docs/src/docs/dsl/org.gradle.api.plugins.BasePluginExtension.xml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| <section> | ||
| <section> | ||
| <title>Properties</title> | ||
| <table> | ||
| <thead> | ||
| <tr> | ||
| <td>Name</td> | ||
| <td>Default with <literal>java</literal> plugin</td> | ||
| </tr> | ||
| </thead> | ||
| <tr> | ||
| <td>distsDirectory</td> | ||
| <td><literal><replaceable>${project.buildDir}</replaceable>/distributions</literal></td> | ||
| </tr> | ||
| <tr> | ||
| <td>libsDirectory</td> | ||
| <td><literal><replaceable>${project.buildDir}</replaceable>/libs</literal></td> | ||
| </tr> | ||
| <tr> | ||
| <td>archivesName</td> | ||
| <td><literal>project.name</literal></td> | ||
| </tr> | ||
| </table> | ||
| </section> | ||
| <section> | ||
| <title>Methods</title> | ||
| <table> | ||
| <thead> | ||
| <tr> | ||
| <td>Name</td> | ||
| </tr> | ||
| </thead> | ||
| </table> | ||
| </section> | ||
| </section> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Is it possible to link to a snippet from the upgrade guide, like it is done from base_plugin.adoc?
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.
I don't think we want that.
In this case, we want to capture how to upgrade from Gradle 7.0 to 7.1. If we link the snippet to the upgrade guide and later - say, in 7.2 - change the snippet, the freshly rendered upgrade guide might have instructions that's invalid for the 7.0 -> 7.1 upgrade.