Skip to content

Commit

Permalink
Update jar
Browse files Browse the repository at this point in the history
  • Loading branch information
salif committed Jul 15, 2024
1 parent 6fde82a commit b013de6
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@ Fun & Simple Original tetris

## Download

Download [Tetris.jar](https://github.com/salifm/Tetris/raw/master/out/Tetris.jar)

See releases [on Github](https://github.com/salif/Tetris/releases).
See the releases [on Github](https://github.com/salif/Tetris/releases) and
download the Tetris.jar file from the latest release.

## How to play

Expand Down
13 changes: 13 additions & 0 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,19 @@ application {
mainClass = 'com.github.salif.tetris.App'
}

jar {
preserveFileTimestamps = false
reproducibleFileOrder = true
manifest {
attributes(
'Main-Class': 'com.github.salif.tetris.App'
)
}
from {
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
}
}

tasks.named('test') {
// Use JUnit Platform for unit tests.
useJUnitPlatform()
Expand Down

0 comments on commit b013de6

Please sign in to comment.