Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ NumberGuessingGame-macos/
NumberGuessingGame-linux/
NumberGuessingGame-windows.zip
NumberGuessingGame-macos.zip
NumberGuessingGame-linux.tar.gz
NumberGuessingGame-linux.tar.xz
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ Download the `archive.zip` from the [latest release](https://github.com/project5

#### Requirements

- Java 8 or higher
- Java 17 or higher

#### How to Run

Expand Down
13 changes: 5 additions & 8 deletions app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,22 +1,19 @@
plugins {
// Apply the application plugin to add support for building a CLI application in Java.
id 'application'

//Spotless
id 'application'
id 'com.diffplug.spotless' version '8.1.0'

id 'com.gradleup.shadow' version '9.2.2'
}

repositories {
// Use Maven Central for resolving dependencies.

mavenCentral()
gradlePluginPortal()
google()
}

dependencies {
// This dependency is used by the application.

implementation libs.guava
}

Expand All @@ -33,8 +30,8 @@ testing {
// Apply a specific Java toolchain to ease working on different environments.
java {
toolchain {
// Use JDK 25
languageVersion = JavaLanguageVersion.of(8)

languageVersion = JavaLanguageVersion.of(17)
}
}

Expand Down
2 changes: 1 addition & 1 deletion debian-package/DEBIAN/control
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Version: 1.0.0
Section: games
Priority: optional
Architecture: all
Depends: default-jre | java8-runtime
Depends: default-jre
Maintainer: project516 <[email protected]>
Description: A simple number guessing game
A simple number guessing game where you try to guess a randomly
Expand Down
2 changes: 1 addition & 1 deletion fedora-package/SPECS/numberguessinggame.spec
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ URL: https://github.com/Project516/NumberGuessingGame
Source0: game.jar

BuildArch: noarch
Requires: java-1.8.0-openjdk-headless
Requires: java-17-openjdk-headless

%description
A simple number guessing game where you try to guess a randomly
Expand Down
2 changes: 1 addition & 1 deletion package-linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ echo "Building Number Guessing Game for Linux with bundled JRE..."
# Configuration
PACKAGE_NAME="NumberGuessingGame-linux"
JRE_DIR="jre-linux"
ADOPTIUM_BASE_URL="https://api.adoptium.net/v3/binary/latest/8/ga"
ADOPTIUM_BASE_URL="https://api.adoptium.net/v3/binary/latest/17/ga"

# Clean up any previous builds
rm -rf ${PACKAGE_NAME}
Expand Down
2 changes: 1 addition & 1 deletion package-macos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ echo "Building Number Guessing Game for macOS with bundled JRE..."
# Configuration
PACKAGE_NAME="NumberGuessingGame-macos"
JRE_DIR="jre-macos"
ADOPTIUM_BASE_URL="https://api.adoptium.net/v3/binary/latest/8/ga"
ADOPTIUM_BASE_URL="https://api.adoptium.net/v3/binary/latest/17/ga"

# Clean up any previous builds
rm -rf ${PACKAGE_NAME}
Expand Down
2 changes: 1 addition & 1 deletion package-win.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ echo "Building Number Guessing Game for Windows with bundled JRE..."
# Configuration
PACKAGE_NAME="NumberGuessingGame-windows"
JRE_DIR="jre-windows"
ADOPTIUM_BASE_URL="https://api.adoptium.net/v3/binary/latest/8/ga"
ADOPTIUM_BASE_URL="https://api.adoptium.net/v3/binary/latest/17/ga"

# Clean up any previous builds
rm -rf ${PACKAGE_NAME}
Expand Down
Loading