What's the best sample to explore Declarative Grad...
# declarative-gradle
m
What's the best sample to explore Declarative Gradle today? I've read https://declarative.gradle.org/docs/getting-started/samples/#kotlin-application but there's a lot of choice there. Looks like https://github.com/gradle/declarative-samples-agp-app is a good starting point?
1
p
I prefer the java samples, yeah it is Java and not kotlin but it is the a first party plugin implemented by Gradle 😅 also, it is very very early. BTW there is a Kotlin plugin: https://github.com/JetBrains/kotlin/tree/master/libraries/tools/gradle/kotlin-gradle-ecosystem-plugin but it does nothing 🤔
🙏 1
But IIUC,
javaApplication
is a builtin software type there? I was looking for something with a contributed one (like Kotlin or Android probably)
p
What do you mean with contributed?
m
Not built by Gradle
p
AFAIK all plugins are designed by Gradle right now 🤔
m
Ah! I see
Do you happen to know where the code for
javaApplication {}
lives?
p
The dcl api is still evolving and experimental, and misses many features.
m
Thanks!
Found where all the plugins are applied (using the good old
settings.gradle.kts
! I was hoping the samples to be a bit more self contained. But all good, I'll take from there. Thanks again!
p
It is not a dcl file? 🤔
m
I don't think so? It's part of the larger build that also builds the "plugins"
p
You can apply plugins in settings dcl
Looking at the file, it should be possible to use a dcl file
m
Ah yes of course, just it's not part of the sample
So to navigate the sample I have to navigate the implementation of the plugins as well, etc.. which is a bit more than what I expected
But it's just me rambling, ignore me 🙂
a
💡 1
It's not meant as an example, but it's using .dcl everywhere
m
Ooohhh, and looks like it's a real production app too?
Dogfooding all the things. I like it!
Yup, that's a lot more what I was expecting, thanks 🙏
a
I see that it's using a custom distribution, so it's possible that it's using some features that are not merged to gradle master
👍 1
m
I don't mind this at all
Even uses Daemon JVM auto-provisioning 👌
SQLDelight and compose 👍 This is more than I was looking for 🙂
a
I think the last PR is using some features that are just in "development" and not yet available in normal distributions. So maybe it's easier to look at state before this PR
p
Yeah, was very surprised about the composing/extensions 👀
m
just in "development"
This is the fun part ^^