You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

build.gradle.kts 1.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
  2. plugins {
  3. kotlin("jvm") version "1.3.0-rc-80"
  4. }
  5. repositories {
  6. jcenter()
  7. mavenCentral()
  8. maven("http://dl.bintray.com/kotlin/kotlin-eap")
  9. maven("https://dl.bintray.com/kotlin/ktor")
  10. }
  11. dependencies {
  12. implementation(kotlin("stdlib-jdk8"))
  13. implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:0.30.0-eap13")
  14. implementation("io.ktor:ktor-network:0.9.6-alpha-1-rc13")
  15. testCompile("org.junit.jupiter:junit-jupiter-api:5.3.1")
  16. testCompile("org.junit.jupiter:junit-jupiter-params:5.3.1")
  17. testRuntime("org.junit.jupiter:junit-jupiter-engine:5.3.1")
  18. testImplementation("com.nhaarman.mockitokotlin2:mockito-kotlin:2.0.0-RC3")
  19. }
  20. java {
  21. sourceCompatibility = JavaVersion.VERSION_1_8
  22. targetCompatibility = JavaVersion.VERSION_1_8
  23. }
  24. tasks.withType<KotlinCompile> {
  25. kotlinOptions {
  26. jvmTarget = "1.8"
  27. }
  28. }
  29. tasks.withType<Test> {
  30. useJUnitPlatform()
  31. testLogging {
  32. events("passed", "skipped", "failed")
  33. }
  34. systemProperty("junit.jupiter.execution.parallel.enabled", "true")
  35. systemProperty("junit.jupiter.execution.parallel.config.dynamic.factor", "5")
  36. }
  37. configurations.all {
  38. resolutionStrategy.eachDependency {
  39. if (requested.group == "org.jetbrains.kotlin") {
  40. useVersion("1.3.0-rc-80")
  41. }
  42. }
  43. }