Created
June 25, 2019 11:56
-
-
Save mgrebenets/a0669ddc663c66a9263d0d88efebeb9f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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