I’ve been surviving with my ancient maven knowledge but it seems I finally need to learn gradle. Help? What is… I don’t know… a “how does gradle work” talk or something?
@Patricia my gradle knowledge is "copy and paste from other projects, fail, and try again"...
@Patricia i honestly wound up reading docs and less so, sources, until i had some idea what was going on. aggressively undebuggable build system, and i work on nix stuff that is somehow more debuggable ;-;
@Patricia with any luck one or both of these might help a bit:
https://www.artificialworlds.net/blog/2019/02/27/gradle-what-is-a-task-and-how-can-i-make-a-task-depend-on-another-task/
@Patricia Gradle and Maven are fundamentally different in outlook. Maven is a build tool; Gradle is a framework for implementing your build system.
It's crucial to understand that, as above a certain complexity, all Gradle projects are effectively a bespoke build system.
If you're working with an existing project, you'll have to use whichever DSL language (Groovy or Kotlin) is already in use.
@Patricia If you're starting a greenfield project, use Kotlin.
The two DSL langs do not play nicely together in the same project, and neither do they map cleanly to each other, even for some fairly simple cases - so migrating a project from Groovy to Kotlin is often trickier than it seems it should be.
Trying to take an existing project and convert it to Gradle? Trying to add things to an existing Gradle project?
@www.jvt.me I guess I need to understand the mental model of it.