sdeleuze
02/18/2024, 11:43 AMJoffrey
02/18/2024, 11:47 AMJoffrey
02/18/2024, 11:50 AMJavier
02/18/2024, 12:13 PMsdeleuze
02/18/2024, 12:22 PMJoffrey
02/18/2024, 12:27 PMJavier
02/18/2024, 12:40 PMAssuming we do this, why do you need such pkl power then?Because it is impossible to fix all complex use cases, they will exist, that is the real reason behind:
If not, the breach between “build engineers” and “no build engineers” will increase.No build devs will be far away from Gradle. Before or after, they will get blocked by a constrained solution like what a Yaml or a subset of Kotlin/PKL could provide. So they will have even more problems than today to fix those scenarios because they will have zero knowledge about the build tool they are indeed using behind the scenes. You need to reduce them to the minimum, but splitting the tools into multiple ones will lead to more problems outside basic projects. Personally, I prefer PKL, without blocking it, over Yaml (I even prefer a stone over a blocking config language). But for me, you already have the perfect language for this purpose, Kotlin. It will be possible to create really good DSLs with Kotlin + context parameters/receivers to reduce the imperative logic. But you cannot wrap the world (each Gradle plugin in the market) in Amper. Fix Gradle to allow creating plugins easily with good practices (tons of APIs should have been fired years ago and they are still there), and fix the DSLs. Create tutorials about how create good DSLs.
Joffrey
02/18/2024, 12:43 PMJavier
02/18/2024, 12:46 PMJavier
02/18/2024, 12:46 PMJoffrey
02/18/2024, 12:57 PMHttpClient
config, and the IDE tried to insert the dependency on this engine in my multiplatform build script in Gradle, and miserably failed at it (it inserted a dependencies { .. }
top-level block completely outside of my kotlin.sourceSets.commonMain.dependencies { .. }
block). But I can't really blame it. How would it know in which source set to add the dependency? I haven't even extracted anything related to dependencies in a convention plugin, nor extracted any variable or functions in this build script, but the fact that I have this possibility makes the task of improving this IDE feature next to impossible.Joffrey
02/18/2024, 12:59 PMJavier
02/18/2024, 1:08 PMsdeleuze
02/18/2024, 5:32 PMJoffrey
02/18/2024, 5:35 PMsdeleuze
02/18/2024, 5:36 PMJoffrey
02/18/2024, 5:36 PMsdeleuze
02/18/2024, 5:39 PMJakub Gwóźdź
02/19/2024, 7:47 AMamakeev
02/19/2024, 10:58 AMcurioustechizen
02/21/2024, 3:24 PMsdeleuze
02/21/2024, 5:59 PMsdeleuze
02/21/2024, 6:01 PMamakeev
02/22/2024, 7:54 AM