-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
103 lines (69 loc) · 2.36 KB
/
build.gradle
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
/*
* This file was generated by the Gradle 'init' task.
*
* This generated file contains a sample Java application project to get you started.
* For more details take a look at the 'Building Java & JVM projects' chapter in the Gradle
* User Manual available at https://docs.gradle.org/7.4.2/userguide/building_java_projects.html
*/
//import com.github.jengelman.gradle.plugins.shadow.tasks.ConfigureShadowRelocation
buildscript {
repositories {
mavenCentral()
gradlePluginPortal()
}
dependencies {
classpath "gradle.plugin.com.github.johnrengelman:shadow:7.1.2"
}
}
plugins {
// Apply the application plugin to add support for building a CLI application in Java.
id 'application'
// id 'com.github.johnrengelman.shadow' version '7.1.2'
}
apply plugin: 'java'
apply plugin: 'com.github.johnrengelman.shadow'
compileJava {
sourceCompatibility = '1.8'
targetCompatibility = '1.8'
}
repositories {
// Use Maven Central for resolving dependencies.
mavenCentral()
}
version = '0.9'
//create a single Jar with all dependencies
dependencies {
// Use JUnit test framework.
testImplementation 'junit:junit:4.13.2'
// This dependency is used by the application.
implementation 'com.google.guava:guava:30.1.1-jre'
// https://mvnrepository.com/artifact/com.itextpdf/layout
implementation 'com.itextpdf:layout:7.2.2'
// https://mvnrepository.com/artifact/com.itextpdf/html2pdf
implementation 'com.itextpdf:html2pdf:4.0.2'
// https://mvnrepository.com/artifact/org.apache.poi/poi
implementation 'org.apache.poi:poi:5.2.2'
// https://mvnrepository.com/artifact/org.apache.poi/poi-ooxml
implementation 'org.apache.poi:poi-ooxml:5.2.2'
// https://mvnrepository.com/artifact/org.apache.commons/commons-lang3
implementation 'org.apache.commons:commons-lang3:3.12.0'
// https://mvnrepository.com/artifact/org.openjfx/javafx-swing
implementation 'org.openjfx:javafx-swing:19-ea+8'
// shadow localGroovy()
// shadow gradleApi()
}
// task relocateShadowJar(type: ConfigureShadowRelocation) {
// target = tasks.shadowJar
// }
// tasks.shadowJar.dependsOn tasks.relocateShadowJar
application {
// Define the main class for the application.
mainClass = 'PDFReplicator.App'
}
jar {
manifest {
attributes(
'Main-Class': 'PDFReplicator.App'
)
}
}