Guest User

Untitled

a guest
Feb 29th, 2024
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Kotlin 2.38 KB | None | 0 0
  1. val ktor_version: String by project
  2. val kotlin_version: String by project
  3. val logback_version: String by project
  4. val koin_ktor: String = "3.5.1"
  5. val mapStructVersion = "latest.release"
  6.  
  7.  
  8. plugins {
  9.     java
  10.     checkstyle
  11.  
  12.     kotlin("jvm")
  13.     kotlin("kapt")
  14.     id("io.ktor.plugin")
  15.     id("org.jetbrains.kotlin.plugin.serialization")
  16.  
  17.     id("com.github.spotbugs")
  18. }
  19.  
  20.  
  21. group = "com.example"
  22. version = "1.0"
  23.  
  24. tasks.test {
  25.     useJUnitPlatform()
  26. }
  27.  
  28. repositories {
  29.     mavenCentral()
  30. }
  31.  
  32.  
  33. dependencies {
  34.     implementation( "com.github.javafaker:javafaker:1.0.2")
  35.     testImplementation("junit:junit:4.13")
  36.  
  37.     //mapstruct
  38.     implementation("org.mapstruct:mapstruct:$mapStructVersion")
  39.     annotationProcessor ("org.mapstruct:mapstruct-processor:$mapStructVersion")
  40.  
  41.     //CORS
  42.     implementation("io.ktor:ktor-server-cors:$ktor_version")
  43.  
  44.     //GSON
  45.     implementation("io.ktor:ktor-serialization-gson:$ktor_version")
  46.     implementation("io.ktor:ktor-client-content-negotiation:$ktor_version")
  47.  
  48.     //ouath
  49.     implementation("io.ktor:ktor-server-auth:$ktor_version")
  50.     implementation("io.ktor:ktor-server-auth-jwt:$ktor_version")
  51.     implementation("io.ktor:ktor-client-apache:$ktor_version")
  52.  
  53.     //date and time
  54.     implementation("org.jetbrains.kotlinx:kotlinx-datetime:0.4.1")
  55.  
  56.     //konform
  57.     implementation("io.konform:konform:0.4.0")
  58.  
  59.     //MONGODB
  60.     implementation("io.ktor:ktor-server-netty:2.2.3") // latest
  61.     implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version")
  62.     implementation("org.litote.kmongo:kmongo-coroutine:4.8.0") // latest:
  63.  
  64.     // Koin for Ktor
  65.     implementation ("io.insert-koin:koin-ktor:$koin_ktor")
  66.     // SLF4J Logger
  67.     implementation ("io.insert-koin:koin-logger-slf4j:$koin_ktor")
  68.  
  69.     implementation("io.ktor:ktor-server-content-negotiation-jvm")
  70.     implementation("io.ktor:ktor-server-core-jvm")
  71.     implementation("io.ktor:ktor-serialization-kotlinx-json-jvm")
  72.     implementation("io.ktor:ktor-server-host-common-jvm")
  73.     implementation("io.ktor:ktor-server-status-pages-jvm")
  74.     implementation("io.ktor:ktor-server-netty-jvm")
  75.     implementation("ch.qos.logback:logback-classic:$logback_version")
  76.     implementation("org.testng:testng:7.1.0")
  77.  
  78.     testImplementation("org.junit.jupiter:junit-jupiter-api:5.8.2")
  79.     testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.8.2")
  80. }
Add Comment
Please, Sign In to add comment