Vivaldi Social is one of the many independent Mastodon servers you can use to participate in the fediverse.
Vivaldi Social is part of the Mastodon network and is hosted in Iceland by the makers of Vivaldi Browser. Everyone is welcome to join.

Administered by:

Server stats:

11K
active users

Patricia Aas

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"...

@tmr232 @Patricia With Gradle it is more fun because there are two languages (Groovy and Kotlin) to specify your build. By Murphy's Law you are guaranteed to find a solution in the opposite language you are using, and it's *not* trivial to translate between them.

@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 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.