-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
94 lines (85 loc) · 2.68 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
plugins {
id 'java'
id 'application'
id 'com.github.johnrengelman.shadow' version '8.1.1'
id 'edu.sc.seis.launch4j' version '3.0.6'
id 'org.openjfx.javafxplugin' version '0.0.13'
}
group = 'org.example'
version = '1.0-SNAPSHOT'
repositories {
mavenCentral()
maven { url "https://maven.org/processing" }
maven { url "https://jogamp.org/deployment/maven"}
}
javafx {
version = '17.0.6'
modules = ['javafx.controls', 'javafx.fxml', 'javafx.swing' , 'javafx.media']
}
dependencies {
implementation 'com.google.code.gson:gson:2.8.9'
implementation 'org.jogamp.gluegen:gluegen-rt-main:2.5.0'
implementation 'org.jogamp.jogl:jogl-all:2.5.0'
implementation 'javax.xml.bind:jaxb-api:2.1'
implementation 'com.yuvimasory:orange-extensions:1.3.0'
implementation 'com.dropbox.core:dropbox-core-sdk:4.0.0'
testImplementation platform('org.junit:junit-bom:5.10.0')
testImplementation 'org.junit.jupiter:junit-jupiter'
implementation fileTree(dir: 'library', include: '*.jar')
}
java {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
application {
mainClassName = 'fr.iamacat.PEmbroiderLauncher'
}
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
shadowJar {
archiveFileName = 'untitled-dependencies.jar'
mergeServiceFiles()
manifest {
attributes 'Main-Class': 'fr.iamacat.PEmbroiderLauncher'
}
}
launch4j {
mainClassName = 'fr.iamacat.PEmbroiderLauncher'
jreMinVersion = '17'
initialHeapSize = 512
maxHeapSize = 4096
jvmOptions = [
'-XX:+UseZGC'
]
jarTask = tasks.named("shadowJar")
outputDirectory = file("$buildDir/libs")
outfile = 'Catz-EmbroideryLauncher.exe'
copyConfigurable = files(tasks.named("shadowJar").get().archiveFile)
}
tasks.register('buildEditor', ShadowJar) {
archiveFileName = 'PEmbroiderEditor.jar'
manifest {
attributes 'Main-Class': 'fr.iamacat.pembroider_editor.Main'
}
}
tasks.register('buildConverter', ShadowJar) {
archiveFileName = 'PEmbroiderConverter.jar'
manifest {
attributes 'Main-Class': 'fr.iamacat.pembroider_converter.Main'
}
}
tasks.register('buildViewer', ShadowJar) {
archiveFileName = 'PEmbroiderConverter.jar'
manifest {
attributes 'Main-Class': 'fr.iamacat.pembroider_viewer.Main'
}
}
tasks.register('buildInfiniteDraw', ShadowJar) {
archiveFileName = 'PEmbroiderInfiniteDraw.jar'
manifest {
attributes 'Main-Class': 'fr.iamacat.pembroider_infinitedraw.Main'
}
}
tasks.named("build") {
dependsOn buildEditor, buildConverter, buildViewer, buildInfiniteDraw
finalizedBy tasks.named("createExe")
}