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
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,3 @@ NumberGuessingGame-linux/
NumberGuessingGame-windows.zip
NumberGuessingGame-macos.zip
NumberGuessingGame-linux.tar.gz

# TeaVM generated JavaScript (build artifact)
teavm/classes.js
10 changes: 5 additions & 5 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ plugins {

//Spotless
id 'com.diffplug.spotless' version '8.0.0'

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

repositories {
Expand All @@ -14,6 +16,8 @@ repositories {
dependencies {
// This dependency is used by the application.
implementation libs.guava

implementation files('../libs/jlibutils-0.0.1.jar')
}

testing {
Expand All @@ -30,14 +34,10 @@ testing {
java {
toolchain {
// Use JDK 25
languageVersion = JavaLanguageVersion.of(25)
languageVersion = JavaLanguageVersion.of(8)
}
}

tasks.withType(JavaCompile) {
options.release.set(8)
}

application {
// Define the main class for the application.
mainClass = 'io.github.project516.NumberGuessingGame.Main'
Expand Down
Binary file added libs/jlibutils-0.0.1.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion package-deb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ gradle build

# Copy the compiled JAR file to the package directory
echo "Copying files to package directory..."
cp app/build/libs/app.jar debian-package/usr/share/games/numberguessinggame/game.jar
cp app/build/libs/app-all.jar debian-package/usr/share/games/numberguessinggame/game.jar

# Copy documentation files
cp README.md debian-package/usr/share/games/numberguessinggame/README.md
Expand Down
2 changes: 1 addition & 1 deletion package-linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ cd ..
# Create package directory structure
echo "Creating package structure..."
mkdir -p ${PACKAGE_NAME}
cp app/build/libs/app.jar ${PACKAGE_NAME}/game.jar
cp app/build/libs/app-all.jar ${PACKAGE_NAME}/game.jar
cp README.md ${PACKAGE_NAME}/README.txt
cp LICENSE ${PACKAGE_NAME}/LICENSE

Expand Down
2 changes: 1 addition & 1 deletion package-macos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ cd ..
# Create package directory structure
echo "Creating package structure..."
mkdir -p ${PACKAGE_NAME}
cp app/build/libs/app.jar ${PACKAGE_NAME}/game.jar
cp app/build/libs/app-all.jar ${PACKAGE_NAME}/game.jar
cp README.md ${PACKAGE_NAME}/README.txt
cp LICENSE ${PACKAGE_NAME}/LICENSE

Expand Down
2 changes: 1 addition & 1 deletion package-win.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ cd ..
# Create package directory structure
echo "Creating package structure..."
mkdir -p ${PACKAGE_NAME}
cp app/build/libs/app.jar ${PACKAGE_NAME}/game.jar
cp app/build/libs/app-all.jar ${PACKAGE_NAME}/game.jar
cp README.md ${PACKAGE_NAME}/README.txt
cp LICENSE ${PACKAGE_NAME}/LICENSE

Expand Down
2 changes: 1 addition & 1 deletion package-zip.bat
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ REM Create distribution directory structure
mkdir NumberGuessingGame

REM Copy the game JAR and necessary files
copy app\build\libs\app.jar NumberGuessingGame\game.jar
copy app\build\libs\app-all.jar NumberGuessingGame\game.jar
copy scripts\run.bat NumberGuessingGame\run.bat
copy scripts\run.sh NumberGuessingGame\run.sh
copy README.md NumberGuessingGame\README.txt
Expand Down
2 changes: 1 addition & 1 deletion package-zip.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ cd ..
mkdir NumberGuessingGame

# Copy the game JAR and necessary files
cp -r app/build/libs/app.jar NumberGuessingGame/game.jar
cp -r app/build/libs/app-all.jar NumberGuessingGame/game.jar
cp -r scripts/run.bat NumberGuessingGame/run.bat
cp -r scripts/run.sh NumberGuessingGame/run.sh
cp -r README.md NumberGuessingGame/README.txt
Expand Down
23 changes: 0 additions & 23 deletions teavm.sh

This file was deleted.

2 changes: 1 addition & 1 deletion test-gui.bat
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ REM This script runs the graphical version of the game
REM Note: Run gradlew.bat build first to compile the project

REM Run the game in GUI mode (default - opens a window)
java -jar app/build/libs/app.jar
java -jar app/build/libs/app-all.jar

@pause
2 changes: 1 addition & 1 deletion test-gui.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
./gradlew build

# Run the game in GUI mode (default - opens a window)
java -jar app/build/libs/app.jar
java -jar app/build/libs/app-all.jar
2 changes: 1 addition & 1 deletion test.bat
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ REM This script runs the console version of the game
REM Note: Run gradlew.bat build first to compile the project

REM Run the game in console mode (text-based interface)
java -jar app/build/libs/app.jar --console
java -jar app/build/libs/app-all.jar --console

@pause
2 changes: 1 addition & 1 deletion test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
./gradlew build

# Run the game in console mode (text-based interface)
java -jar app/build/libs/app.jar --console
java -jar app/build/libs/app-all.jar --console
Loading