-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
59 lines (45 loc) · 1.41 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
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
plugins {
id 'java'
id 'org.jetbrains.kotlin.jvm' version '2.0.0'
id 'org.jetbrains.kotlin.plugin.serialization' version '2.0.0'
}
//apply plugin: 'kotlin-kapt'
group 'nl.lengrand'
version '1.0-SNAPSHOT'
repositories {
mavenCentral()
}
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib"
implementation 'info.picocli:picocli:4.7.6'
implementation 'org.jetbrains.kotlinx:kotlinx-serialization-json:1.6.3'
implementation 'com.github.kittinunf.fuel:fuel:2.3.1'
implementation 'com.github.kittinunf.fuel:fuel-kotlinx-serialization:2.3.1'
testImplementation "org.junit.jupiter:junit-jupiter-api:5.10.2"
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:5.10.2"
// kapt 'info.picocli:picocli-codegen:4.7.6'
}
test {
useJUnitPlatform()
}
compileKotlin {
kotlin.compilerOptions.jvmTarget = JvmTarget.JVM_21
}
compileTestKotlin {
kotlin.compilerOptions.jvmTarget = JvmTarget.JVM_21
}
//kapt {
// arguments {
// arg("project", "${project.group}/${project.name}")
// }
//}
tasks.register('customFatJar', Jar) {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
manifest {
attributes 'Main-Class': 'nl.lengrand.swacli.SwaCLIPaginate'
}
archiveBaseName = 'all-in-one-jar'
from { configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) } }
with jar
}