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
// 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
Download from the command line
curl -L -o build.gradle.kts https://files.samplefiles.com/config/gradle/build.gradle.ktswget https://files.samplefiles.com/config/gradle/build.gradle.ktshttps://files.samplefiles.com/config/gradle/build.gradle.ktsprintf '%s %s\n' 380e7304f6845ff168c7aa8788354c14e34c740ac6353a696cfe92f57a1eee22 build.gradle.kts | shasum -a 256 -cOr check the download in your browser with the checksum calculator.