forked from loafle/openapi-generator-original
* kotlin-server: Add support for Javalin * kotlin-server: Add Javalin generated sample code * Add output from build scripts * Address MR feedback * Update CI to include new Javalin sample
36 lines
855 B
Plaintext
36 lines
855 B
Plaintext
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
|
|
|
plugins {
|
|
kotlin("jvm") version "1.9.21"
|
|
}
|
|
|
|
group = "org.openapitools"
|
|
version = "1.0.0"
|
|
java.sourceCompatibility = JavaVersion.VERSION_17
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
tasks.withType<KotlinCompile> {
|
|
kotlinOptions.jvmTarget = "17"
|
|
}
|
|
|
|
dependencies {
|
|
implementation("io.javalin:javalin:5.6.3")
|
|
implementation("io.javalin.community.routing:routing-core:5.6.2-RC.1")
|
|
implementation("io.javalin.community.routing:routing-dsl:5.6.2-RC.1")
|
|
implementation("com.fasterxml.jackson.core:jackson-databind:2.16.1")
|
|
implementation("com.fasterxml.jackson.module:jackson-module-kotlin:2.16.1")
|
|
implementation("org.slf4j:slf4j-simple:2.0.7")
|
|
|
|
testImplementation("org.jetbrains.kotlin:kotlin-test")
|
|
}
|
|
|
|
tasks.test {
|
|
useJUnitPlatform()
|
|
}
|
|
kotlin {
|
|
jvmToolchain(17)
|
|
}
|