From b013de60300aacadd18a466c9ac987114e936f56 Mon Sep 17 00:00:00 2001 From: Salif Mehmed Date: Mon, 15 Jul 2024 19:01:56 +0300 Subject: [PATCH] Update jar --- README.md | 5 ++--- app/build.gradle | 13 +++++++++++++ 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 538a265..8417509 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/app/build.gradle b/app/build.gradle index 19c224d..7e28d55 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -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()