File tree Expand file tree Collapse file tree
main/java/io/github/project516/NumberGuessingGame
test/java/io/github/project516/NumberGuessingGame Expand file tree Collapse file tree Original file line number Diff line number Diff 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
2217repositories {
@@ -27,9 +22,6 @@ repositories {
2722dependencies {
2823 // This dependency is used by the application.
2924 implementation libs. guava
30-
31- // TeaVM
32- implementation teavm. libs. jsoApis
3325}
3426
3527testing {
@@ -45,12 +37,14 @@ testing {
4537// Apply a specific Java toolchain to ease working on different environments.
4638java {
4739 toolchain {
40+ // Use JDK 21
4841 languageVersion = JavaLanguageVersion . of(21 )
4942 }
5043}
5144
5245tasks. withType(JavaCompile ) {
53- options. release. set(11 )
46+ // Target Java 8
47+ options. release. set(8 )
5448}
5549
5650application {
@@ -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- }
Original file line number Diff line number Diff line change 1+ package io .github .project516 .NumberGuessingGame ;
2+
3+ class IntroText {
4+ String intro () {
5+ return "This is a Number Guessing Game" ;
6+ }
7+ }
Original file line number Diff line number Diff line change 33public 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}
File renamed without changes.
You can’t perform that action at this time.
0 commit comments