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 .github/workflows/javadoc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@ jobs:

- name: Generate JavaDoc
run: ./gradlew javadoc

- name: Build TeaVM (JavaScript compilation)
run: ./teavm.sh

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
Expand Down
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ A simple number guessing game where you try to guess a randomly generated number
**Features:**
- Swing-based GUI (default)
- Console mode (use `--console` flag)
- Web browser version (available on GitHub Pages)
- High score tracking with usernames
- Persistent score storage
- Cross-platform
Expand Down
19 changes: 2 additions & 17 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ plugins {

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

// TeaVM plugin for JavaScript compilation
id 'io.github.zebalu.teavm-gradle-plugin' version '1.0.0'
}

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

// TeaVM JSO APIs for web development (needed at compile time for WebGUI)
compileOnly 'org.teavm:teavm-jso-apis:0.12.3'
}

testing {
suites {
// Configure the built-in test suite
test {
// Use JUnit Jupiter test framework
useJUnitJupiter('6.0.1')
useJUnitJupiter('5.14.1')
}
}
}
Expand All @@ -41,10 +35,7 @@ java {
}

tasks.withType(JavaCompile) {
// Changed from 8 to 11 to support TeaVM for web deployment.
// TeaVM 0.10.2+ requires Java 11 as minimum target.
// This change affects the minimum JRE required to run the JAR.
options.release.set(17)
options.release.set(8)
}

application {
Expand All @@ -70,9 +61,3 @@ jar {
)
}
}

// TeaVM configuration for compiling Java GUI to JavaScript
teavm {
// Main class to compile
mainClass = 'io.github.project516.NumberGuessingGame.WebGUI'
}
214 changes: 0 additions & 214 deletions app/src/main/java/io/github/project516/NumberGuessingGame/WebGUI.java

This file was deleted.

2 changes: 1 addition & 1 deletion package-linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,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/25/ga"
ADOPTIUM_BASE_URL="https://api.adoptium.net/v3/binary/latest/8/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 @@ -11,7 +11,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/25/ga"
ADOPTIUM_BASE_URL="https://api.adoptium.net/v3/binary/latest/8/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 @@ -11,7 +11,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/25/ga"
ADOPTIUM_BASE_URL="https://api.adoptium.net/v3/binary/latest/8/ga"

# Clean up any previous builds
rm -rf ${PACKAGE_NAME}
Expand Down
45 changes: 0 additions & 45 deletions teavm/README.md

This file was deleted.

Loading
Loading