-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.gradle
More file actions
executable file
·88 lines (72 loc) · 2 KB
/
build.gradle
File metadata and controls
executable file
·88 lines (72 loc) · 2 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
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
plugins {
id 'java'
id 'application'
id "org.panteleyev.jpackageplugin" version "1.6.0"
}
group 'org.emrick.project'
version '1.1.10'
var jarTitle = "Emrick-Designer-$version"
repositories {
mavenCentral()
maven { url 'https://jitpack.io' }
}
sourceSets {
main {
java {
srcDirs = ['src/main/java']
}
}
}
dependencies {
// compile 'junit:junit:4.12'
implementation 'com.formdev:flatlaf:3.6.2'
implementation 'com.google.code.gson:gson:2.10.1'
implementation 'org.apache.pdfbox:pdfbox:3.0.2'
implementation 'com.fazecast:jSerialComm:[2.0.0,3.0.0)'
implementation 'com.github.Dansoftowner:jSystemThemeDetector:3.6'
// https://mvnrepository.com/artifact/org.junit.jupiter/junit-jupiter-api - For JUnit
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.10.2'
// https://mvnrepository.com/artifact/com.googlecode.soundlibs/jorbis - OGG Audio Files
implementation 'com.googlecode.soundlibs:jorbis:0.0.17-1'
}
application {
mainClass = 'org.emrick.project.MediaEditorGUI'
}
tasks.javadoc {
options.memberLevel = JavadocMemberLevel.PRIVATE
destinationDir = new File("$projectDir\\docs")
}
tasks.build {
finalizedBy(javadoc)
}
jar {
manifest {
attributes["Main-Class"] = "org.emrick.project.MediaEditorGUI"
}
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
from {
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
}
destinationDirectory.set(file("$buildDir\\jars"))
}
tasks.jpackage {
dependsOn("build")
type = "appImage"
input = "$buildDir/jars"
destination = "$buildDir/dist/$version"
appName = "Emrick Designer"
vendor = "app.org"
mainJar = "Emrick-Designer-$version" + ".jar"
mainClass = "org.emrick.project.MediaEditorGUI"
icon = 'Emrick Designer.ico'
windows {
winConsole = false
}
linux {
appName = "emrick-designer"
}
}
test {
// test task with JUnit 5
useJUnitPlatform()
}