-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.gradle
45 lines (38 loc) · 970 Bytes
/
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
plugins {
id 'com.github.johnrengelman.shadow' version '5.0.0'
id 'edu.sc.seis.launch4j' version '2.4.6'
id 'java'
}
repositories {
mavenCentral()
}
dependencies{
implementation 'com.dorkbox:SystemTray:3.17'
}
sourceSets {
main.java.srcDirs = ['java']
main.resources.srcDirs = ['res']
}
tasks.withType(Jar) {
destinationDirectory = file("$rootDir")
archiveFileName = "MyPCClientRemote.jar"
}
//RUN ./gradlew shadow
jar {
manifest {
attributes 'Main-Class': 'mypc.clientremote.ClientRemote'
}
}
//RUN: ./gradlew createExe
launch4j {
//copyConfigurable = project.tasks.shadowJar.outputs.files
jar = "${projectDir}/MyPCClientRemote.jar"
mainClassName = 'mypc.clientremote.ClientRemote'
icon = "${projectDir}/res/MyPC-icon_64x64.ico"
outfile = "MyPCClientRemote.exe"
copy {
from "${buildDir}/${outputDir}"
into "${projectDir}"
include 'MyPCClientRemote.exe'
}
}