Created
May 10, 2019 05:07
-
-
Save spuklo/451758da09afe25f333b6fba46be798d to your computer and use it in GitHub Desktop.
Getting started build.gradle for Kotlin project
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
buildscript { | |
ext { | |
kotlin_version = "1.3.31" | |
} | |
repositories { | |
mavenCentral() | |
} | |
dependencies { | |
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" | |
} | |
} | |
repositories { | |
mavenCentral() | |
maven { url "https://jitpack.io" } | |
jcenter() | |
} | |
ext { | |
coroutines_version = "1.2.0" | |
guava_version = "27.1-jre" | |
kotlinJvmTarget = "12" | |
} | |
group 'net.puklo.project' | |
version '1.0' | |
apply plugin: "kotlin" | |
defaultTasks = ["clean", "build"] | |
compileKotlin { | |
kotlinOptions.jvmTarget = kotlinJvmTarget | |
} | |
compileTestKotlin { | |
kotlinOptions.jvmTarget = kotlinJvmTarget | |
} | |
dependencies { | |
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version" | |
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutines_version" | |
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core-common:$coroutines_version" | |
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-jdk8:$coroutines_version" | |
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-guava:$coroutines_version" | |
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-debug:$coroutines_version" | |
implementation "com.google.guava:guava:$guava_version" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment