git404hub

what is kotlin-dsl-samples fr?

gradle/kotlin-dsl-samples — explained in plain English

Analysis updated 2026-07-03

3,687KotlinAudience · developerComplexity · 2/5LicenseSetup · easy

tl;dr

A now-obsolete collection of sample Gradle build scripts written in Kotlin instead of Groovy, created by the Gradle team to show the Kotlin DSL in action.

vibe map

mindmap
  root((kotlin-dsl-samples))
    What it does
      Sample build scripts
      Kotlin DSL examples
      Gradle automation
    Tech stack
      Kotlin
      Gradle
      Java
    Status
      Obsolete
      Unmaintained
      Historical reference
    Use cases
      Learn Kotlin DSL syntax
      Migrate from Groovy
      Android build config

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

what do people make with this?

VIBE 1

Browse historical examples of Gradle build scripts written in Kotlin to understand the syntax before migrating your project.

VIBE 2

Reference the sample build configurations when converting an existing Groovy-based Gradle project to the Kotlin DSL.

what's the stack?

KotlinGradleJava

how it stacks up fr

gradle/kotlin-dsl-samplesbufferapp/android-clean-architecture-boilerplateelement-hq/element-android
Stars3,6873,6863,685
LanguageKotlinKotlinKotlin
Setup difficultyeasymoderatehard
Complexity2/53/54/5
Audiencedeveloperdeveloperdeveloper

Figures from each repo's GitHub metadata at analysis time.

how do i run it?

Difficulty · easy time til it works · 5min

This repository is obsolete and unmaintained, use the official Gradle documentation for current guidance on Kotlin DSL.

Apache 2.0, use freely for any purpose including commercial, just keep the copyright notice.

in plain english

This repository was created by the Gradle team as a collection of sample projects demonstrating how to write Gradle build scripts using Kotlin instead of Groovy. Gradle is the build tool most commonly used in Android and Java projects to automate compiling code, running tests, and packaging apps. Build scripts tell Gradle how to do that work, and for a long time they were written in a language called Groovy. The Kotlin DSL option, shown in these samples, lets developers write those same build instructions in Kotlin instead. The repository is now marked obsolete by its maintainers. The samples are no longer maintained or updated. Anyone looking for current guidance on using Kotlin with Gradle should consult the official Gradle documentation, which the README links to directly. The README for this project is very short and provides no additional detail about the original sample contents. The stars this repository accumulated reflect its historical usefulness when Kotlin DSL support in Gradle was newer and documentation was harder to find elsewhere.

prompts (copy fr)

prompt 1
I have an Android project with a Groovy-based build.gradle file. Using the patterns in gradle/kotlin-dsl-samples as a reference, help me convert it to a Kotlin DSL build.gradle.kts file.
prompt 2
Show me how to define a custom Gradle task in Kotlin DSL syntax, using the style demonstrated in the kotlin-dsl-samples repository.
prompt 3
What is the Kotlin DSL equivalent of a Groovy Gradle multiproject build setup? Reference the sample patterns to explain the differences.
prompt 4
Help me set up dependency version catalogs in a Gradle Kotlin DSL project, based on the sample project structure in this repository.

Frequently asked questions

what is kotlin-dsl-samples fr?

A now-obsolete collection of sample Gradle build scripts written in Kotlin instead of Groovy, created by the Gradle team to show the Kotlin DSL in action.

What language is kotlin-dsl-samples written in?

Mainly Kotlin. The stack also includes Kotlin, Gradle, Java.

What license does kotlin-dsl-samples use?

Apache 2.0, use freely for any purpose including commercial, just keep the copyright notice.

How hard is kotlin-dsl-samples to set up?

Setup difficulty is rated easy, with roughly 5min to a first successful run.

Who is kotlin-dsl-samples for?

Mainly developer.

peek the repo → explain another one

This repo across BitVibe Labs

double-check against the repo, no cap.