Skip to content

Commit

Permalink
[BE] BUILD: kotlin build jar로 실행 가능하도록 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
leedonggyu1848 committed Sep 3, 2023
1 parent b79ba6d commit 28408f6
Showing 1 changed file with 18 additions and 6 deletions.
24 changes: 18 additions & 6 deletions cron/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ dependencies {
implementation "org.jetbrains.exposed:exposed-java-time:${exposedVersion}"
runtimeOnly "org.mariadb.jdbc:mariadb-java-client:${mariadbVersion}"
implementation "com.zaxxer:HikariCP:5.0.1"
implementation("io.github.microutils:kotlin-logging-jvm:2.0.10")
implementation("org.slf4j:slf4j-api:1.7.30")
implementation 'org.slf4j:slf4j-simple:1.7.25'
implementation "io.github.microutils:kotlin-logging-jvm:2.0.10"
implementation "org.slf4j:slf4j-api:1.7.30"
implementation "org.slf4j:slf4j-simple:1.7.25"

testImplementation 'org.jetbrains.kotlin:kotlin-test'
testImplementation "org.jetbrains.kotlin:kotlin-test"
testRuntimeOnly "com.h2database:h2:${h2Version}"
}

Expand All @@ -48,9 +48,21 @@ test {
}

kotlin {
jvmToolchain{languageVersion.set(JavaLanguageVersion.of(17))}
jvmToolchain(17)
}

application {
mainClassName = 'MainKt'
mainClass.set("MainKt")
}

jar {
manifest {
attributes 'Main-Class': 'MainKt'
}
from {
configurations.runtimeClasspath.collect {
it.isDirectory() ? it : zipTree(it)
}
}
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
}

0 comments on commit 28408f6

Please sign in to comment.