Config Files · 1 file

Sample Gradle File

Gradle build scripts (here in the Kotlin DSL) build JVM and Android projects. Our sample is realistic and valid for its tool, with fake hosts and secrets.

Gradle · 429 B

Gradle build script (Kotlin DSL)

A Gradle Kotlin DSL build with plugins, a toolchain, repositories, dependencies and a test task configuration. All hosts, keys and secrets are fake.

CC0 · free for any use · Verified by an independent tool · Report a problem

build.gradle.kts — first linesKotlin
// Sample build.gradle.kts — samplefiles.com
plugins {
    kotlin("jvm") version "2.0.20"
    application
}

group = "com.example"
version = "1.4.2"

kotlin {
    jvmToolchain(21)
}

repositories {
    mavenCentral()
}

dependencies {
    implementation("io.ktor:ktor-server-netty:2.3.12")
    testImplementation(kotlin("test"))
}

application {
    mainClass.set("com.example.MainKt")
}

File details

Size
429 B (429 bytes)
MIME type
text/plain
SHA-256
380e7304f6845ff168c7aa8788354c14e34c740ac6353a696cfe92f57a1eee22
MD5
89b58814bfbb0df67494282263228fbb

Download from the command line

curl -L -o build.gradle.kts https://files.samplefiles.com/config/gradle/build.gradle.kts

Or check the download in your browser with the checksum calculator.