-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
48 lines (39 loc) · 1.21 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
43
44
45
46
47
48
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version "1.5.31"
kotlin("plugin.serialization") version "1.5.31"
id("com.github.johnrengelman.shadow") version "7.1.0"
application
}
val releaseVersion: String? by project
group = "me.erittenhouse"
version = releaseVersion ?: "SNAPSHOT"
repositories {
mavenCentral()
maven("https://repo.eclipse.org/content/groups/releases/")
}
dependencies {
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.3.0")
implementation("org.gitlab4j:gitlab4j-api:4.18.0")
implementation("org.eclipse.jgit:org.eclipse.jgit:5.13.0.202109080827-r")
implementation("org.eclipse.jgit:org.eclipse.jgit.ssh.jsch:5.13.0.202109080827-r")
implementation("com.jcraft:jsch:0.1.55")
implementation("org.slf4j:slf4j-nop:1.7.32")
testImplementation(kotlin("test"))
}
tasks.test {
useJUnitPlatform()
}
tasks.shadowJar {
archiveBaseName.set("FeatureBranchBot")
archiveClassifier.set("")
if (releaseVersion == null) {
archiveVersion.set("")
}
}
tasks.withType<KotlinCompile>() {
kotlinOptions.jvmTarget = "11"
}
application {
mainClass.set("me.erittenhouse.featurebranchbot.MainKt")
}