-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
58 lines (52 loc) · 1.54 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
49
50
51
52
53
54
55
56
57
58
plugins {
kotlin("jvm") version "1.9.24"
id("edu.sc.seis.launch4j") version "3.0.3"
id("my-gradle-one-jar")
id("com.github.ben-manes.versions") version "0.47.0"
// id("com.github.onslip.gradle-one-jar") version "1.0.5"
}
group = "mm.naftal"
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
}
dependencies {
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.8.1")
implementation("com.github.pcorless.icepdf:icepdf-core:7.2.0")
val iTextPdfVersion = "8.0.2"
implementation("com.itextpdf:kernel:$iTextPdfVersion")
testImplementation("com.itextpdf:layout:$iTextPdfVersion")
testImplementation("org.junit.jupiter:junit-jupiter:5.9.2")
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
testImplementation("org.assertj", "assertj-swing-junit", "3.17.1")
testImplementation("com.nhaarman.mockitokotlin2:mockito-kotlin:2.2.0")
}
kotlin {
jvmToolchain(11)
sourceSets.all {
languageSettings.apply {
languageVersion = "1.9"
progressiveMode = true
}
}
}
tasks {
test {
useJUnitPlatform()
}
jar {
manifest {
attributes("Main-Class" to "AppKt")
}
}
dependencyUpdates {
revision = "release"
gradleReleaseChannel = "current"
}
}
launch4j {
copyConfigurable.set(emptySet<File>())
downloadUrl.set("https://jdk.java.net/")
setJarTask(tasks.onejar.get())
// icon = "${projectDir}/icons/myApp.ico"
}