-
-
Notifications
You must be signed in to change notification settings - Fork 9
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
Fix tools.forma.includer
plugin behavior
#128
Conversation
- Skip including nested projects - Consider only dirs with `build.gradle(.kts)` files as subprojects - Extend `IncluderPluginFunctionalTest` to cover problematic use cases
- Allowed to disable arbitrary build file names - Allowed to specify additional folder names to ignore - Do not allow to configure the project if a module with more than one build file is encountered - Covered all use cases of the plugin with tests - Added documentation to the README
Looks great! One concern from my side, using
includer {
excludeFolders("scripts", "tmp")
arbitraryBuildScriptNames = true
} |
- Create IncluderExtension and Dsl function `includer` for it - Add docs for IncluderExtension properties - Disable arbitraryBuildScriptNames by default - Covered all use cases of the plugin with tests - Update documentation in the README
@stepango, good point 👍 I fixed it. Now we can use type-safe |
@@ -58,7 +58,7 @@ dependencyResolutionManagement { | |||
addPlugin("tools.forma.demo:dependencies", "0.0.1") | |||
addPlugin( | |||
"com.google.devtools.ksp", | |||
"1.8.10-1.0.9", | |||
"$embeddedKotlinVersion-1.0.9", |
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 it would work. For example, after updating to gradle-8.2 embedded kotlin version would be 1.8.20
, but there is NO ksp version 1.8.20-1.0.9
: https://github.com/google/ksp/releases
Fixed some problems of the Includer plugin that prevent its integration with our project:
Current behavior: nested projects with
settings.gradle(.kts)
are not added, but their subprojects are added.New behavior: nested projects with
settings.gradle(.kts)
and their subprojects are completely skipped.tools.forma.includer.arbitraryBuildFileNames
. For those cases when we want the plugin to include only modules withbuild.gradle(.kts)
files.tools.forma.includer.ignoredFolders
.IncluderPluginFunctionalTest
to cover all plugin use cases.