File tree 4 files changed +18
-20
lines changed
4 files changed +18
-20
lines changed Original file line number Diff line number Diff line change @@ -6,11 +6,11 @@ plugins {
6
6
id ' com.github.johnrengelman.shadow' version ' 7.1.2'
7
7
}
8
8
9
- group = ' com.superzanti.serversync '
9
+ group = ss_group
10
10
version = ' 4.3.0'
11
11
12
12
application {
13
- mainClass = ' com.superzanti.serversync.ServerSync '
13
+ mainClass = ss_main_class
14
14
}
15
15
16
16
repositories {
@@ -50,10 +50,14 @@ shadowJar {
50
50
exclude " css/application.css"
51
51
}
52
52
53
+ manifest {
54
+ attributes ' Main-Class' : ss_main_class
55
+ attributes ' Implementation-Version' : project. version
56
+ }
57
+
53
58
dependencies {
54
59
exclude ' forge*.jar'
55
60
// exclude '**/*javafx*/**' //Comment to build GUI
56
-
57
61
}
58
62
}
59
63
@@ -66,13 +70,12 @@ createExe {
66
70
supportUrl = " https://github.com/superzanti/ServerSync"
67
71
productName = " ServerSync - Client"
68
72
fileDescription = " The client side for users."
69
- version = ss_version
73
+ version = project . version
70
74
}
71
75
72
76
startScripts {
73
77
dependsOn shadowJar
74
78
classpath = files(classpath = files(" ${ buildDir} /libs/${ project.name} -${ project.version} .jar" ))
75
-
76
79
}
77
80
78
81
Original file line number Diff line number Diff line change @@ -5,11 +5,11 @@ plugins {
5
5
id ' com.github.johnrengelman.shadow' version ' 7.1.2'
6
6
}
7
7
8
- group = ' com.superzanti.serversync '
8
+ group = ss_group
9
9
version = ' 4.3.0'
10
10
11
11
application {
12
- mainClass = ' com.superzanti.serversync.ServerSync '
12
+ mainClass = ss_main_class
13
13
}
14
14
15
15
repositories {
@@ -34,8 +34,8 @@ shadowJar {
34
34
}
35
35
36
36
manifest {
37
- attributes ' Main-Class' : ' com.superzanti.serversync.ServerSync '
38
- attributes ' Implementation-Version' : ' 4.3.0 '
37
+ attributes ' Main-Class' : ss_main_class
38
+ attributes ' Implementation-Version' : project . version
39
39
}
40
40
41
41
archiveClassifier. set(' ' )
@@ -50,15 +50,15 @@ shadowJar {
50
50
51
51
createExe {
52
52
jarTask = shadowJar
53
- mainClassName = ss_main_class_server
53
+ mainClassName = ss_main_class
54
54
outfile = ' ServerSyncServer.exe'
55
55
headerType = ' console'
56
- icon = " ${ rootDir} /build-shared/src/main/resources/ServersyncLogo .ico"
56
+ icon = " ${ rootDir} /build-shared/src/main/resources/ServersyncLogoServer .ico"
57
57
copyConfigurable = shadowJar. outputs. files
58
58
supportUrl = " https://github.com/superzanti/ServerSync"
59
59
productName = " ServerSync - Server"
60
60
fileDescription = " The server side for admins."
61
- version = ss_version
61
+ version = project . version
62
62
}
63
63
64
64
startScripts {
Original file line number Diff line number Diff line change 1
- import edu.sc.seis.launch4j.tasks.Launch4jLibraryTask
2
-
3
1
plugins {
4
2
id ' edu.sc.seis.launch4j' version ' 2.5.4'
5
3
id ' java'
@@ -10,19 +8,17 @@ repositories {
10
8
mavenCentral()
11
9
}
12
10
13
- group = " com.superzanti.serversync "
14
- version = ss_version
11
+ group = ss_group
12
+ version = " 4.3.0 "
15
13
16
14
dependencies {
17
-
18
15
implementation ' com.eclipsesource.minimal-json:minimal-json:0.9.5'
19
16
implementation fileTree(dir : ' libs' , include : ' *.jar' )
20
17
21
18
// Use JUnit Jupiter API for testing.
22
19
testImplementation ' org.junit.jupiter:junit-jupiter-api:5.8.2' , ' org.junit.jupiter:junit-jupiter-params:5.8.2'
23
20
// Use JUnit Jupiter Engine for testing.
24
21
testRuntimeOnly ' org.junit.jupiter:junit-jupiter-engine:5.8.2' , ' com.eclipsesource.minimal-json:minimal-json:0.9.5'
25
-
26
22
}
27
23
28
24
test {
Original file line number Diff line number Diff line change 1
- ss_version = 4.3.0
2
1
ss_main_class = com.superzanti.serversync.ServerSync
3
- ss_main_class_server = com.superzanti.serversync.ServerSyncServer
2
+ ss_group = com.superzanti.serversync
4
3
org.gradle.warning.mode =all
You can’t perform that action at this time.
0 commit comments