build.gradle 970 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. plugins {
  2. id "java"
  3. id "application"
  4. id 'org.jetbrains.kotlin.jvm'
  5. id 'kotlinx-serialization'
  6. id 'com.github.johnrengelman.shadow' version '4.0.3'
  7. }
  8. group 'org.jetbrains.ktor'
  9. version '1.0-SNAPSHOT'
  10. mainClassName = "MainKt"
  11. repositories {
  12. mavenCentral()
  13. jcenter()
  14. maven { url "https://kotlin.bintray.com/kotlinx" }
  15. }
  16. dependencies {
  17. compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
  18. compile "org.jetbrains.kotlinx:kotlinx-serialization-runtime:0.9.1"
  19. compile "io.ktor:ktor-server-netty:$ktor_version"
  20. compile "io.ktor:ktor-html-builder:$ktor_version"
  21. compile "com.github.jasync-sql:jasync-postgresql:0.9.39"
  22. compile "io.reactiverse:reactive-pg-client:0.11.3"
  23. compile 'io.vertx:vertx-lang-kotlin-coroutines:3.7.0'
  24. }
  25. compileKotlin {
  26. kotlinOptions.jvmTarget = "1.8"
  27. }
  28. compileTestKotlin {
  29. kotlinOptions.jvmTarget = "1.8"
  30. }
  31. shadowJar {
  32. baseName = "bench"
  33. classifier = null
  34. version = null
  35. }