Skip to content

Commit

Permalink
Package resources with .jar
Browse files Browse the repository at this point in the history
  • Loading branch information
olivierperez committed Dec 31, 2020
1 parent 11c14cc commit 0c8f57a
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ SoulGame is the first game that uses GameLib engine !

### Build & Try it

1. `gradlew clean :SoulGameImpl:build`
1. `gradlew clean :SoulGameImpl:delivery`
2. Go to `./SoulGameImpl/build/libs`
3. Execute `java -jar SoulGameImpl-[version].jar`
14 changes: 14 additions & 0 deletions SoulGameImpl/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,20 @@ jar {
}
}

task prepareResources(type: Copy) {
from file("./resources")
into file("$buildDir/libs")
}

task delivery(type: Zip) {
dependsOn "build", "prepareResources"

from "$buildDir/libs"
archiveFileName = "SoulGame-${project.version}.zip"
destinationDirectory = file("$buildDir/dist")

}

repositories {
mavenCentral()
jcenter()
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes

0 comments on commit 0c8f57a

Please sign in to comment.