-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
62 lines (53 loc) · 1.43 KB
/
Copy pathbuild.gradle.kts
File metadata and controls
62 lines (53 loc) · 1.43 KB
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
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
plugins {
id("java")
id("application")
id("com.gradleup.shadow") version "9.4.0"
}
group = "ovh.neziw.visualizer"
version = "1.0-SNAPSHOT"
tasks.withType<JavaCompile> {
options.compilerArgs = listOf("-Xlint:deprecation")
options.encoding = "UTF-8"
}
tasks.withType<ShadowJar> {
archiveFileName.set("${project.name} ${project.version}.jar")
exclude(
"org/intellij/lang/annotations/**",
"org/jetbrains/annotations/**",
"org/checkerframework/**",
"META-INF/DEPENDENCIES",
"META-INF/LICENSE",
"META-INF/LICENSE.txt",
"META-INF/NOTICE",
"META-INF/NOTICE.txt",
"javax/**"
)
manifest {
attributes["Main-Class"] = "ovh.neziw.visualizer.VisualizerMain"
}
mergeServiceFiles()
}
java {
withSourcesJar()
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
application {
mainClass.set("ovh.neziw.visualizer.VisualizerMain")
}
repositories {
gradlePluginPortal()
mavenLocal()
mavenCentral()
}
dependencies {
implementation("org.jfree:jfreechart:1.5.6")
implementation("com.formdev:flatlaf:3.7.1")
implementation("com.google.code.gson:gson:2.13.2")
implementation("org.apache.poi:poi:5.5.1")
implementation("org.apache.poi:poi-ooxml:5.5.1")
}
tasks.build {
dependsOn(tasks.shadowJar)
}