Skip to content

Commit af490ed

Browse files
authored
Merge pull request #103 from Project516/java17
java 17
2 parents 68f58e2 + 2aba553 commit af490ed

File tree

8 files changed

+12
-15
lines changed

8 files changed

+12
-15
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,4 @@ NumberGuessingGame-macos/
3636
NumberGuessingGame-linux/
3737
NumberGuessingGame-windows.zip
3838
NumberGuessingGame-macos.zip
39-
NumberGuessingGame-linux.tar.gz
39+
NumberGuessingGame-linux.tar.xz

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ Download the `archive.zip` from the [latest release](https://github.com/project5
9696

9797
#### Requirements
9898

99-
- Java 8 or higher
99+
- Java 17 or higher
100100

101101
#### How to Run
102102

app/build.gradle

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,19 @@
11
plugins {
2-
// Apply the application plugin to add support for building a CLI application in Java.
3-
id 'application'
42

5-
//Spotless
3+
id 'application'
64
id 'com.diffplug.spotless' version '8.1.0'
7-
85
id 'com.gradleup.shadow' version '9.2.2'
96
}
107

118
repositories {
12-
// Use Maven Central for resolving dependencies.
9+
1310
mavenCentral()
1411
gradlePluginPortal()
1512
google()
1613
}
1714

1815
dependencies {
19-
// This dependency is used by the application.
16+
2017
implementation libs.guava
2118
}
2219

@@ -33,8 +30,8 @@ testing {
3330
// Apply a specific Java toolchain to ease working on different environments.
3431
java {
3532
toolchain {
36-
// Use JDK 25
37-
languageVersion = JavaLanguageVersion.of(8)
33+
34+
languageVersion = JavaLanguageVersion.of(17)
3835
}
3936
}
4037

debian-package/DEBIAN/control

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Version: 1.0.0
33
Section: games
44
Priority: optional
55
Architecture: all
6-
Depends: default-jre | java8-runtime
6+
Depends: default-jre
77
Maintainer: project516 <[email protected]>
88
Description: A simple number guessing game
99
A simple number guessing game where you try to guess a randomly

fedora-package/SPECS/numberguessinggame.spec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ URL: https://github.com/Project516/NumberGuessingGame
1212
Source0: game.jar
1313

1414
BuildArch: noarch
15-
Requires: java-1.8.0-openjdk-headless
15+
Requires: java-17-openjdk-headless
1616

1717
%description
1818
A simple number guessing game where you try to guess a randomly

package-linux.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ echo "Building Number Guessing Game for Linux with bundled JRE..."
1616
# Configuration
1717
PACKAGE_NAME="NumberGuessingGame-linux"
1818
JRE_DIR="jre-linux"
19-
ADOPTIUM_BASE_URL="https://api.adoptium.net/v3/binary/latest/8/ga"
19+
ADOPTIUM_BASE_URL="https://api.adoptium.net/v3/binary/latest/17/ga"
2020

2121
# Clean up any previous builds
2222
rm -rf ${PACKAGE_NAME}

package-macos.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ echo "Building Number Guessing Game for macOS with bundled JRE..."
1616
# Configuration
1717
PACKAGE_NAME="NumberGuessingGame-macos"
1818
JRE_DIR="jre-macos"
19-
ADOPTIUM_BASE_URL="https://api.adoptium.net/v3/binary/latest/8/ga"
19+
ADOPTIUM_BASE_URL="https://api.adoptium.net/v3/binary/latest/17/ga"
2020

2121
# Clean up any previous builds
2222
rm -rf ${PACKAGE_NAME}

package-win.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ echo "Building Number Guessing Game for Windows with bundled JRE..."
1616
# Configuration
1717
PACKAGE_NAME="NumberGuessingGame-windows"
1818
JRE_DIR="jre-windows"
19-
ADOPTIUM_BASE_URL="https://api.adoptium.net/v3/binary/latest/8/ga"
19+
ADOPTIUM_BASE_URL="https://api.adoptium.net/v3/binary/latest/17/ga"
2020

2121
# Clean up any previous builds
2222
rm -rf ${PACKAGE_NAME}

0 commit comments

Comments
 (0)