News for hackers. Stuff that matters.
Re:Kotlin for JavaScript by winter_blue on Sunday March 27, 2022 @01:10AM (#30817871)
I've found Gradle to be very straightforward, intuitive, and easy to use. I switched one of my projects from Maven over to Gradle, and coming from Maven XML, the Grade configuration language/DSL was amazing and a breath of fresh air.
Re:Kotlin for JavaScript by vips7L on Sunday March 27, 2022 @07:49AM (#30819529)
I’m going to have to really disagree. While XML might be verbose, it’s dead simple and maven is extremely well documented. Gradle on the other hand is cryptic, relies on stack overflow to document it, and breaks your build scripts every release.
Re:Kotlin for JavaScript by lolinder on Sunday March 27, 2022 @01:56AM (#30818051)
Maven to Gradle is a huge improvement, but I think a lot of people here are coming from the JS world. Package.json is incredibly simple compared to Gradle.
Re:Kotlin for JavaScript by matsemann on Sunday March 27, 2022 @06:48AM (#30819266)
Disagree, maven to gradle is a downgrade. Yes, xml is boring, but it's still incredible simple, almost just a verbose package.json. And it's convention over configuration, if you do stuff like everyone else, it just works.

Gradle however, is a dsl in a language almost no java devs use. All gradle files are different, so copying an example from somewhere else probably won't work in your context etc.

Re:Kotlin for JavaScript by foverzar on Sunday March 27, 2022 @09:23AM (#30820027)
> Gradle however, is a dsl in a language almost no java devs use

Gradle with Groovy sometimes gets kinda hard to comprehend

Gradle with Kotlin is entirely different experience, largely due to proper typing.

Re:Kotlin for JavaScript by kaba0 on Sunday March 27, 2022 @05:08AM (#30818846)
Is it? Where does my special css file go, what option is valid in this context, do I need babel, or this other 1000 package? It does tell you something that literally every framework will generate you a file, while you can easily write your build script by hand for even large java projects.