-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
73 lines (58 loc) · 1.57 KB
/
build.gradle
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
plugins {
id 'org.jetbrains.kotlin.jvm' version '2.0.20'
id 'com.github.johnrengelman.shadow' version '8.1.1'
id("application")
}
group = 'org.vikl5'
version = '1.0-SNAPSHOT'
repositories {
mavenCentral()
}
dependencies {
testImplementation 'org.jetbrains.kotlin:kotlin-test'
implementation(platform("org.jetbrains.kotlin:kotlin-bom"))
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
implementation("com.slack.api:bolt-jetty:1.42.1")
implementation("org.slf4j:slf4j-simple:2.0.16")
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.9.0'
implementation 'org.quartz-scheduler:quartz:2.3.2'
implementation("org.jetbrains.kotlinx:kotlinx-datetime:0.6.1")
}
application {
mainClass.set("org.vikl5.WhenTakenKt")
}
tasks.named('shadowJar') {
archiveBaseName.set('WhenTakenSlackBot')
archiveClassifier.set('')
archiveVersion.set('1.0-SNAPSHOT')
mergeServiceFiles()
manifest {
attributes 'Main-Class': 'org.vikl5.WhenTakenKt'
}
}
tasks.named('build') {
dependsOn tasks.named('shadowJar')
}
// Disable the standard jar task
tasks.named('jar') {
enabled = false
}
// Make distribution tasks depend on shadowJar
tasks.named('distTar') {
dependsOn tasks.named('shadowJar')
}
tasks.named('distZip') {
dependsOn tasks.named('shadowJar')
}
tasks.named('startScripts') {
dependsOn tasks.named('shadowJar')
}
run {
systemProperty "org.slf4j.simpleLogger.log.com.slack.api", System.getProperty("slackLogLevel")
}
test {
useJUnitPlatform()
}
kotlin {
jvmToolchain(21)
}