-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
42 lines (33 loc) · 1.04 KB
/
build.gradle.kts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
plugins {
application
id("org.jetbrains.kotlin.jvm") version "1.6.20"
id("com.github.johnrengelman.shadow") version "7.0.0"
}
repositories {
mavenCentral()
}
dependencies {
implementation(platform("org.jetbrains.kotlin:kotlin-bom"))
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
implementation("com.fasterxml.jackson.module:jackson-module-kotlin:2.13.3")
implementation("org.jetbrains.kotlinx:kotlinx-cli:0.3.5")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.8.2")
testImplementation("org.jetbrains.kotlin:kotlin-test")
testImplementation("org.jetbrains.kotlin:kotlin-test-junit")
testImplementation("org.junit.jupiter:junit-jupiter-api:5.8.2")
}
task<Exec>("exec") {
commandLine("sh", "-c", "scripts/make-executable.sh build/libs/*-all.jar")
}
task<Exec>("rmExec") {
commandLine("sh", "-c", "rm -f $(basename $(pwd))")
}
tasks.build {
finalizedBy("exec")
}
tasks.clean {
finalizedBy("rmExec")
}
application {
mainClass.set("com.mlesniak.git.analyzer.MainKt")
}