Skip to content

Change the Gradle DSL of generated projects from Groovy to Kotlin #220

@bartekpacia

Description

@bartekpacia

Note

Moved from libgdx/libgdx#7056

Synopsis

gdx-liftoff generates libGDX projects that use Groovy DSL for its Gradle buildscripts. It'd be better to use Kotlin instead of Groovy.

Details

Since April 2024 (almost 2 years ago), Gradle recommends using Kotlin instead of Groovy for buildscripts.

Citing Gradle docs:

(Kotlin DSL) provides an alternative syntax to the traditional Groovy DSL with an enhanced editing experience in supported IDEs, with superior content assist, refactoring, documentation, and more.

I can only agree with the above – in my experience, using Kotlin DSL for Gradle makes it more pleasant and involves much less guesswork.

I think that letting users choose between Groovy DSL or Kotlin DSL can be a non-goal of this issue: Groovy is being slowly but steadily being phased out by Gradle. Offering just Kotlin DSL would be enough.

Useful resources

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions