Skip to content

Instantly share code, notes, and snippets.

@mgrebenets
Created June 25, 2019 11:56
Show Gist options
  • Save mgrebenets/a0669ddc663c66a9263d0d88efebeb9f to your computer and use it in GitHub Desktop.
Save mgrebenets/a0669ddc663c66a9263d0d88efebeb9f to your computer and use it in GitHub Desktop.
// build.gradle.kts
// Configure Gradle wrapper.
tasks.withType<Wrapper> {
// Specify Gradle version for the wrapper.
gradleVersion = "5.4.1"
}
// Use Kotlin DSL feature available in latest Gradle versions.
// https://docs.gradle.org/current/userguide/kotlin_dsl.html
plugins {
// Building and application.
application
// Building a Kotlin application to run on JVM.
kotlin("jvm") version "1.3.40"
}
// Configure application plugin.
application {
// See @file:JvmName("Client") in src/main/kotlin/Client.kt
mainClassName = "client.Client"
}
// Repositories to pull dependencies from.
repositories {
mavenCentral() // To get Kotlin dependencies.
jcenter() // To pull TeamCity REST client dependency.
}
// Configure dependencies.
dependencies {
// Add TeamCity REST client dependency, version 1.7.26.
compile("org.jetbrains.teamcity:teamcity-rest-client:1.7.26")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment