-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
46 lines (39 loc) · 1009 Bytes
/
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
import java.time.LocalDate
import java.time.format.DateTimeFormatter
plugins {
id("org.jetbrains.kotlin.jvm") version "latest.release"
id("application")
}
group = "com.github.hummel"
version = LocalDate.now().format(DateTimeFormatter.ofPattern("yy.MM.dd"))
val embed: Configuration by configurations.creating
dependencies {
embed("org.jetbrains.kotlin:kotlin-stdlib:latest.release")
embed("com.formdev:flatlaf:latest.release")
embed("com.formdev:flatlaf-intellij-themes:latest.release")
implementation("com.formdev:flatlaf:latest.release")
implementation("com.formdev:flatlaf-intellij-themes:latest.release")
}
java {
toolchain {
languageVersion = JavaLanguageVersion.of(8)
}
}
application {
mainClass = "com.github.hummel.comparer.MainKt"
}
tasks {
jar {
manifest {
attributes(
mapOf(
"Main-Class" to "com.github.hummel.comparer.MainKt"
)
)
}
from(embed.map {
if (it.isDirectory) it else zipTree(it)
})
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
}
}