Skip to content

Commit 42ec5af

Browse files
Merge pull request #485 from SimonC4/RemoveOldDistTasks
Removed old dist and distZip tasks
2 parents f9a249a + 04c00f8 commit 42ec5af

File tree

2 files changed

+7
-25
lines changed

2 files changed

+7
-25
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ Run any commands in the project root directory (where you cloned / extracted the
7272
* Download / clone the [source from GitHub](https://github.com/MovingBlocks/DestinationSol)
7373
* To run from the command line: `gradlew run` (on Linux you might need to use `./gradlew run`)
7474
* To prepare for IntelliJ run: `gradlew idea` then load the generated project via `DestinationSol.ipr`
75-
* To create a game package for distribution (Windows, Linux, Mac): `gradlew distZip`
75+
* Distributions (Windows, Linux, Mac) should be obtained from the [Jenkins build server](http://jenkins.terasology.org/view/DestSol/job/DestinationSol/), but you can also create a distribution locally by running: `gradlew distZipBundleJREs`
7676

7777
For Android a little extra setup is needed
7878

desktop/build.gradle

Lines changed: 6 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ task run(type: JavaExec) {
5050
classpath = sourceSets.main.runtimeClasspath
5151
standardInput = System.in
5252
workingDir = rootProject.projectDir
53-
ignoreExitValue = true
53+
ignoreExitValue true
5454
}
5555

5656
jar {
@@ -75,28 +75,6 @@ task moduleDist(type: Sync) {
7575
}
7676
}
7777

78-
task dist(type: Sync) {
79-
description = "Creates an application package for distribution"
80-
dependsOn jar
81-
82-
into("$distsDir/app")
83-
84-
from("$rootDir/launcher")
85-
86-
into('libs') {
87-
from configurations.runtime
88-
from jar
89-
}
90-
}
91-
92-
dist.finalizedBy moduleDist
93-
94-
task distZip(type: Zip) {
95-
dependsOn dist
96-
from "$distsDir/app"
97-
archiveName = "DestinationSol.zip"
98-
}
99-
10078
task copyLaunchers (type: Copy) {
10179
description = "Copy launchers into the distribution folder."
10280

@@ -117,7 +95,8 @@ task libsDist(type: Copy) {
11795

11896
task distUnbundledJRE() {
11997
description = "Creates an application package without any bundled JRE."
120-
98+
group 'Distribution'
99+
121100
dependsOn jar
122101
dependsOn copyLaunchers
123102
}
@@ -126,6 +105,7 @@ distUnbundledJRE.finalizedBy moduleDist
126105

127106
task distZipUnbundledJRE(type: Zip) {
128107
description = "Creates an application package and zip archive without any bundled JRE."
108+
group 'Distribution'
129109

130110
dependsOn distUnbundledJRE
131111
from "$distsDir/app"
@@ -134,13 +114,15 @@ task distZipUnbundledJRE(type: Zip) {
134114

135115
task distBundleJREs {
136116
description = "Creates an application package with a bundled JRE."
117+
group 'Distribution'
137118

138119
dependsOn distUnbundledJRE
139120
dependsOn downloadJreAll
140121
}
141122

142123
task distZipBundleJREs (type: Zip) {
143124
description = "Creates an application package and zip archive with a bundled JRE."
125+
group 'Distribution'
144126

145127
dependsOn distBundleJREs
146128
from "$distsDir/app"

0 commit comments

Comments
 (0)