Hi everyone, my multi-project android build is usi...
# gradle
m
Hi everyone, my multi-project android build is using precompiled script plugin for as a convention plugin. Im thinking of migrating to binary plugin. Is there any features or drawbacks in precompiled script plugin compare to binary plugin ?
v
Just for readers here too. As I said in the Gradle slack already, there is no difference in testing either of them. Both end up as binary plugins and both can be tested exactly the same. I have no idea why testing should be easier by not using precompiled script plugins.
👍 2
precompiled script plugins are just syntactic sugar to build binary plugins more conveniently
👍 1
m
sorry for the misinformation. Testing would be the same for precompiled script plugin and binary plugin. Updated that part tho
h
Using binary plugins should be faster due to not compiling the plugins locally.
m
is there any proof or ways to measure this ? @hfhbd
h
Sure, just use a build scan and compare the compileKotlin etc. of the included build.
v
That's not true and also not what he meant
He talks about precomplied script plugin vs. written as plain old
.kt
.
Not included build vs published
And even then the statement would not be true, as you can as well publish precompiled script plugins the same as you can binary plugins
As I said, precompiled script plugins are just syntactic sugar to build binary plugins more conveniently. Whehter you publish or not, whether you use
buildSrc
or an included build, and so on is all the same.
👍 2
h
Oh okay, I understand binary (class code) = published. I won’t call kt plugins as binary 😅
😃 1
v
Yeah, that's how Gradle calls them opposed to precompiled script plugins. 🙂
m
thank you all 🚀
👌 1