-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.gradle
More file actions
59 lines (49 loc) · 1.26 KB
/
build.gradle
File metadata and controls
59 lines (49 loc) · 1.26 KB
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
plugins {
id 'org.jetbrains.kotlin.jvm' version '2.0.21'
id 'application'
}
group = 'de.kkegel'
version = '0.1-alpha'
repositories {
mavenCentral()
}
dependencies {
implementation fileTree(dir: './lib/coconlib-0.1-alpha', include: ['*.jar'])
implementation fileTree(dir: './lib/coconlib-0.1-alpha/lib', include: ['*.jar'])
implementation 'info.picocli:picocli:4.7.5'
testImplementation 'org.jetbrains.kotlin:kotlin-test'
implementation 'org.slf4j:slf4j-api:2.0.17'
implementation 'org.slf4j:slf4j-nop:2.0.17'
}
test {
useJUnitPlatform()
}
kotlin {
jvmToolchain(21)
}
application {
mainClass = 'main.AppKt'
}
jar {
manifest {
attributes 'Main-Class': 'main.AppKt'
}
}
tasks.register('fatJar', Jar) {
manifest {
attributes 'Main-Class': 'main.AppKt'
}
archiveClassifier = "all"
archiveBaseName = "cocon-cli-fat"
from {
configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
}
with jar
}
tasks.withType(Tar).configureEach {
duplicatesStrategy = DuplicatesStrategy.INCLUDE
}
tasks.withType(Zip).configureEach {
duplicatesStrategy = DuplicatesStrategy.INCLUDE
}