-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle.kts
51 lines (43 loc) · 1.22 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
plugins {
java
id("io.github.goooler.shadow") version "8.1.7"
}
group = "com.github.rfresh2"
version = "1.1"
val shade: Configuration by configurations.creating
configurations.implementation.get().extendsFrom(shade)
java {
toolchain { languageVersion = JavaLanguageVersion.of(8) }
}
repositories {
mavenCentral()
}
dependencies {
shade("com.fasterxml.jackson.core:jackson-core:2.17.1")
shade("com.fasterxml.jackson.core:jackson-databind:2.17.1")
shade("org.slf4j:slf4j-api:2.0.13")
shade("org.slf4j:slf4j-simple:2.0.13")
}
tasks {
withType(JavaCompile::class.java) {
options.encoding = "UTF-8"
options.isDeprecation = true
}
jar { enabled = false }
shadowJar {
archiveBaseName.set(project.name)
archiveClassifier.set("")
archiveVersion.set(project.version.toString())
configurations = listOf(shade)
manifest {
attributes(mapOf(
"Implementation-Title" to "JMWaypointsToXaero",
"Implementation-Version" to project.version.toString(),
"Main-Class" to "com.github.rfresh2.JourneyMapWaypointsToXaero"
))
}
}
build {
dependsOn("shadowJar")
}
}