Skip to content

Commit f760e36

Browse files
authored
Merge pull request #77 from Project516/java-8
java 8
2 parents 07d5f01 + fef4805 commit f760e36

10 files changed

Lines changed: 5 additions & 1215 deletions

File tree

.github/workflows/javadoc.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,6 @@ jobs:
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

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff 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

app/build.gradle

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff 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

129
repositories {
@@ -17,17 +14,14 @@ repositories {
1714
dependencies {
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

2519
testing {
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

4337
tasks.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

5041
application {
@@ -70,9 +61,3 @@ jar {
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-
}

app/src/main/java/io/github/project516/NumberGuessingGame/WebGUI.java

Lines changed: 0 additions & 214 deletions
This file was deleted.

package-linux.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ echo "Building Number Guessing Game for Linux with bundled JRE..."
1111
# Configuration
1212
PACKAGE_NAME="NumberGuessingGame-linux"
1313
JRE_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
1717
rm -rf ${PACKAGE_NAME}

package-macos.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ echo "Building Number Guessing Game for macOS with bundled JRE..."
1111
# Configuration
1212
PACKAGE_NAME="NumberGuessingGame-macos"
1313
JRE_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
1717
rm -rf ${PACKAGE_NAME}

package-win.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ echo "Building Number Guessing Game for Windows with bundled JRE..."
1111
# Configuration
1212
PACKAGE_NAME="NumberGuessingGame-windows"
1313
JRE_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
1717
rm -rf ${PACKAGE_NAME}

teavm/README.md

Lines changed: 0 additions & 45 deletions
This file was deleted.

0 commit comments

Comments
 (0)