File tree Expand file tree Collapse file tree
src/main/java/io/github/project516/NumberGuessingGame Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2323
2424 - name : Generate JavaDoc
2525 run : ./gradlew javadoc
26-
27- - name : Build TeaVM (JavaScript compilation)
28- run : ./teavm.sh
2926
3027 - name : Deploy to GitHub Pages
3128 uses : peaceiris/actions-gh-pages@v4
Original file line number Diff line number Diff line change @@ -5,7 +5,6 @@ A simple number guessing game where you try to guess a randomly generated number
55** Features:**
66- Swing-based GUI (default)
77- Console mode (use ` --console ` flag)
8- - Web browser version (available on GitHub Pages)
98- High score tracking with usernames
109- Persistent score storage
1110- Cross-platform
Original file line number Diff line number Diff line change @@ -4,9 +4,6 @@ plugins {
44
55 // Spotless
66 id ' com.diffplug.spotless' version ' 8.0.0'
7-
8- // TeaVM plugin for JavaScript compilation
9- id ' io.github.zebalu.teavm-gradle-plugin' version ' 1.0.0'
107}
118
129repositories {
@@ -17,17 +14,14 @@ repositories {
1714dependencies {
1815 // This dependency is used by the application.
1916 implementation libs. guava
20-
21- // TeaVM JSO APIs for web development (needed at compile time for WebGUI)
22- compileOnly ' org.teavm:teavm-jso-apis:0.12.3'
2317}
2418
2519testing {
2620 suites {
2721 // Configure the built-in test suite
2822 test {
2923 // Use JUnit Jupiter test framework
30- useJUnitJupiter(' 6.0 .1' )
24+ useJUnitJupiter(' 5.14 .1' )
3125 }
3226 }
3327}
@@ -41,10 +35,7 @@ java {
4135}
4236
4337tasks. withType(JavaCompile ) {
44- // Changed from 8 to 11 to support TeaVM for web deployment.
45- // TeaVM 0.10.2+ requires Java 11 as minimum target.
46- // This change affects the minimum JRE required to run the JAR.
47- options. release. set(17 )
38+ options. release. set(8 )
4839}
4940
5041application {
7061 )
7162 }
7263}
73-
74- // TeaVM configuration for compiling Java GUI to JavaScript
75- teavm {
76- // Main class to compile
77- mainClass = ' io.github.project516.NumberGuessingGame.WebGUI'
78- }
Load diff This file was deleted.
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ echo "Building Number Guessing Game for Linux with bundled JRE..."
1111# Configuration
1212PACKAGE_NAME=" NumberGuessingGame-linux"
1313JRE_DIR=" jre-linux"
14- ADOPTIUM_BASE_URL=" https://api.adoptium.net/v3/binary/latest/25 /ga"
14+ ADOPTIUM_BASE_URL=" https://api.adoptium.net/v3/binary/latest/8 /ga"
1515
1616# Clean up any previous builds
1717rm -rf ${PACKAGE_NAME}
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ echo "Building Number Guessing Game for macOS with bundled JRE..."
1111# Configuration
1212PACKAGE_NAME=" NumberGuessingGame-macos"
1313JRE_DIR=" jre-macos"
14- ADOPTIUM_BASE_URL=" https://api.adoptium.net/v3/binary/latest/25 /ga"
14+ ADOPTIUM_BASE_URL=" https://api.adoptium.net/v3/binary/latest/8 /ga"
1515
1616# Clean up any previous builds
1717rm -rf ${PACKAGE_NAME}
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ echo "Building Number Guessing Game for Windows with bundled JRE..."
1111# Configuration
1212PACKAGE_NAME=" NumberGuessingGame-windows"
1313JRE_DIR=" jre-windows"
14- ADOPTIUM_BASE_URL=" https://api.adoptium.net/v3/binary/latest/25 /ga"
14+ ADOPTIUM_BASE_URL=" https://api.adoptium.net/v3/binary/latest/8 /ga"
1515
1616# Clean up any previous builds
1717rm -rf ${PACKAGE_NAME}
Load diff This file was deleted.
You can’t perform that action at this time.
0 commit comments