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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replace gradle script with explicit convention plugins #38
Replace gradle script with explicit convention plugins #38
Conversation
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). For more information, open the CLA check for this pull request. |
38d233f
to
b177174
Compare
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.
Thank you, this looks great! And it definitely sets up the build faster locally for me as well.
Just a couple minor comments, and I want to double check the apply
versus withPlugin
behavior.
build-logic/convention/src/main/kotlin/AndroidApplicationComposeConventionPlugin.kt
Show resolved
Hide resolved
build-logic/convention/src/main/kotlin/AndroidApplicationComposeConventionPlugin.kt
Outdated
Show resolved
Hide resolved
build-logic/convention/src/main/kotlin/SpotlessConventionPlugin.kt
Outdated
Show resolved
Hide resolved
2c91f70
to
91c43f4
Compare
@alexvanyo do you want me to fix the conflicts? 馃槃 |
Ah sorry, we made an internal change that conflicts now. If you want to rebase that would be great, otherwise I can! |
Those extensions *will* be accessible in build.gradle.kts if not made internal. They are used to configure the conventions plugins internally. They should not be accessible by the consumer Gradle modules.
Co-authored-by: Alex Vanyo <vanyoalex@gmail.com>
91c43f4
to
8878265
Compare
This was really cool stuff. how much impact does this make really on gradle sync time? |
I did some basic profiling in the issue 馃槃 : #39 The configuration part went from 12.724s to 0.765s |
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.
Thank you for taking care of the rebase! It all looks good except for just one change that'd I'd like to do separately, outside of the conversion PR.
One that's changed, I'll merge!
build-logic/convention/src/main/kotlin/AndroidTestConventionPlugin.kt
Outdated
Show resolved
Hide resolved
ec91f97
to
7c761c5
Compare
Merged, thank you @sjcqs ! |
name: Replace Gradle script with explicit convention plugins
about:
label: 'triage me'
Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:
Fixes #39 馃