cv-api/build.gradle.kts

59 lines
1.2 KiB
Plaintext
Raw Normal View History

2022-09-30 10:21:11 +00:00
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
2022-10-01 19:17:04 +00:00
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
2022-09-30 13:57:03 +00:00
2022-09-30 10:21:11 +00:00
plugins {
2022-09-30 13:57:03 +00:00
id("com.squareup.sqldelight")
2022-10-01 12:37:50 +00:00
id("org.sonarqube")
2022-10-01 19:17:04 +00:00
id("com.github.johnrengelman.shadow")
2022-09-30 10:21:11 +00:00
kotlin("jvm") version "1.7.10"
}
2022-09-30 13:57:03 +00:00
group = "fr.louveauAmine"
2022-09-30 10:21:11 +00:00
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
}
dependencies {
testImplementation(kotlin("test"))
implementation("io.javalin:javalin:4.6.4")
implementation("org.slf4j:slf4j-simple:2.0.1")
2022-09-30 13:57:03 +00:00
implementation("com.squareup.sqldelight:sqlite-driver:1.5.3")
2022-10-01 12:19:28 +00:00
implementation("com.fasterxml.jackson.core:jackson-databind:2.13.4")
implementation("com.fasterxml.jackson.module:jackson-module-kotlin:2.13.4")
2022-09-30 10:21:11 +00:00
}
tasks.test {
useJUnitPlatform()
}
tasks.withType<KotlinCompile> {
kotlinOptions.jvmTarget = "1.8"
2022-09-30 13:57:03 +00:00
}
2022-10-01 19:17:04 +00:00
tasks.withType<Jar> {
manifest {
attributes["Main-Class"] = "ServerKt"
}
}
2022-09-30 13:57:03 +00:00
sqldelight {
database("CVApiDB") {
packageName = "fr.louveauAmine.cvApi.dao"
sourceFolders = listOf("sqldelight")
}
2022-10-01 19:17:04 +00:00
}
tasks.withType<ShadowJar> {
mergeServiceFiles()
manifest {
attributes(mapOf("Main-Class" to "ServerKt"))
}
}
tasks {
build {
dependsOn(shadowJar)
}
2022-09-30 10:21:11 +00:00
}