-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
80 lines (68 loc) · 1.85 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
import org.jetbrains.kotlin.gradle.dsl.KotlinJvmCompile
plugins {
kotlin("jvm") version "1.6.0"
id("org.openjfx.javafxplugin") version "0.0.10"
id("com.github.ben-manes.versions") version "0.39.0"
idea
}
group = "de.groovybyte.chunky"
version = "1.1"
val chunkyVersion = "2.4.1"
repositories {
mavenLocal()
mavenCentral()
maven(url = "https://oss.sonatype.org/content/repositories/snapshots/")
maven(url = "https://repo.lemaik.de/")
}
dependencies {
val kotlinVersion = "1.6.0"
implementation(kotlin("stdlib-jdk8", version = kotlinVersion))
implementation("se.llbit:chunky-core:$chunkyVersion") {
isChanging = true
}
implementation("no.tornado:tornadofx:1.7.20") {
constraints {
implementation("org.jetbrains.kotlin:kotlin-reflect:$kotlinVersion")
}
}
}
javafx {
version = "17"
modules = listOf("javafx.controls", "javafx.fxml")
}
tasks {
processResources {
expand(
"version" to project.version,
"chunkyVersion" to chunkyVersion,
)
}
withType<KotlinJvmCompile> {
kotlinOptions {
jvmTarget = "1.8"
apiVersion = "1.6"
languageVersion = "1.6"
}
}
withType<Jar> {
archiveFileName.set("${archiveBaseName.get()}.${archiveExtension.get()}")
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
configurations["compileClasspath"].apply {
files { dep ->
when {
dep.name.startsWith("chunky") -> false
dep.name.startsWith("javafx") -> false
else -> true
}
}.forEach { file ->
from(zipTree(file.absoluteFile))
}
}
}
}
idea {
module {
isDownloadJavadoc = true
isDownloadSources = true
}
}