Skip to content

Commit e71f2e3

Browse files
committed
add title
1 parent 5fd06bd commit e71f2e3

4 files changed

Lines changed: 12 additions & 27 deletions

File tree

app/build.gradle

Lines changed: 3 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,6 @@ plugins {
1212

1313
//Spotless
1414
id 'com.diffplug.spotless' version '8.0.0'
15-
16-
// TeaVM
17-
id 'java'
18-
id 'war'
19-
id "org.teavm" version "0.12.3"
2015
}
2116

2217
repositories {
@@ -27,9 +22,6 @@ repositories {
2722
dependencies {
2823
// This dependency is used by the application.
2924
implementation libs.guava
30-
31-
// TeaVM
32-
implementation teavm.libs.jsoApis
3325
}
3426

3527
testing {
@@ -45,12 +37,14 @@ testing {
4537
// Apply a specific Java toolchain to ease working on different environments.
4638
java {
4739
toolchain {
40+
// Use JDK 21
4841
languageVersion = JavaLanguageVersion.of(21)
4942
}
5043
}
5144

5245
tasks.withType(JavaCompile) {
53-
options.release.set(11)
46+
// Target Java 8
47+
options.release.set(8)
5448
}
5549

5650
application {
@@ -67,21 +61,3 @@ spotless {
6761
removeUnusedImports()
6862
}
6963
}
70-
71-
teavm {
72-
all {
73-
mainClass = "io.github.project516.NumberGuessingGame.Main"
74-
}
75-
js {
76-
addedToWebApp = true
77-
78-
// this is also optional, default value is <project name>.js
79-
targetFileName = "NumberGuessingGame.js"
80-
}
81-
wasmGC {
82-
addedToWebApp = true
83-
84-
// this is also optional, default value is <project name>.wasm
85-
targetFileName = "NumberGuessingGame.wasm"
86-
}
87-
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
package io.github.project516.NumberGuessingGame;
2+
3+
class IntroText {
4+
String intro() {
5+
return "This is a Number Guessing Game";
6+
}
7+
}

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,10 @@
33
public class Main {
44
public static void main(String[] args) {
55
SystemInfo SysInfo = new SystemInfo();
6+
System.out.println("===== DEBUG INFO =====\n\n");
67
System.out.println("Java version: " + SysInfo.version());
78
System.out.println("Vendor: " + SysInfo.vendor());
89
System.out.println("JDK name: " + SysInfo.name());
10+
System.out.println("\n\n");
911
}
1012
}

app/src/test/java/io/github/RandomNumberTest.java renamed to app/src/test/java/io/github/project516/NumberGuessingGame/RandomNumberTest.java

File renamed without changes.

0 commit comments

Comments
 (0)