Fork: 428 Star: 3708 (更新于 2024-05-11 17:05:55)


Language: Kotlin .

Samples builds using the Gradle Kotlin DSL

最后发布版本: v1.1.3 ( 2019-01-29 18:57:52)

官方网址 GitHub网址

Gradle Kotlin DSL Samples


Welcome! The Gradle Kotlin DSL provides support for writing Gradle build scripts using JetBrains' Kotlin language. It aims to provide Gradle users with a rich, flexible and statically-typed approach to developing build logic in conjunction with the best IDE and tooling experience possible.

Getting Started

The fastest way to get up and running with a Kotlin-based Gradle build is to use gradle init

gradle init --dsl kotlin

or, if you don't have Gradle installed already, you can generate Gradle builds online at

The Gradle Kotlin DSL is documented in a dedicated chapter in the Gradle user manual.

Moreover, the Gradle user manual and guides contain build script excerpts that demonstrate both the Groovy DSL and the Kotlin DSL. This is the best place where to find how to do this and that with the Gradle Kotlin DSL; and it covers all Gradle features from using plugins to customizing the dependency resolution behavior. All snippets in the user manual demonstrate both Groovy and Kotlin DSL.

If you are looking into migrating an existing build to the Gradle Kotlin DSL, please also check out the migration guide.

You can read more about the project in our announcement blog post and check out the frequently asked questions in the project wiki.

Issue Tracking

This repository is only for Gradle Kotlin DSL Samples.

Found a bug in one of the samples, have an idea for an improvement or for a new sample? Feel free to add an issue.

If you're dealing with what you believe to be an issue with Gradle or the Gradle Kotlin DSL, please open an issue on the gradle/gradle repository.

If you're dealing with what you believe to be an issue with Kotlin itself or the Kotlin Plugin for IDEA, you may want to search JetBrains' YouTrack first to see if it is a known issue. In any case, feel free to add an issue here for it as well. We'd like to know and track what our users are experiencing regardless whether the issue is with the Gradle Kotlin DSL or with Kotlin itself.

Staying in Touch

Come chat with us in the #kotlin-dsl channel of the public Gradle Community Slack instance.


Like the rest of Gradle, the Gradle Kotlin DSL Samples are released under version 2.0 of the Apache License.


Please see for details of how to build and contribute to Gradle Kotlin DSL Samples.

最近版本更新:(数据更新于 2024-05-14 12:35:50)

2019-01-29 18:57:52 v1.1.3

2019-01-11 07:56:02 v1.1.1

2018-12-13 14:59:45 v1.1.0

2018-11-20 17:43:21 v1.0.4

2018-11-15 00:25:18 v1.0.3

2018-11-12 16:20:19 v1.0.2

2018-10-30 22:12:13 v1.0-RC14

2018-10-03 08:38:37 v1.0-RC12

2018-09-12 19:49:56 v1.0-RC6

2018-08-15 02:22:26 v1.0-RC3


gradle, kotlin

gradle/kotlin-dsl-samples同语言 Kotlin最近更新仓库

2024-06-03 01:44:33 ReVanced/revanced-patches

2024-06-02 01:03:03 lihenggui/blocker

2024-06-01 23:29:45 tiann/KernelSU

2024-06-01 12:11:39 mudkipme/MoeMemosAndroid

2024-05-31 21:34:50 JetBrains/compose-multiplatform

2024-05-30 16:15:16 JetBrains/intellij-platform-gradle-plugin