Bump to Java 19, Spring Boot 3.0
This commit is contained in:
parent
320766a0b1
commit
9cbc95e131
@ -13,7 +13,7 @@ A word guessing game based on the [game show](https://en.wikipedia.org/wiki/Ling
|
||||
|
||||
#### JavaFX client
|
||||
|
||||
- Requirements: Java 17, Maven 3
|
||||
- Requirements: Java 19, Maven 3
|
||||
- Build: `mvn clean install`
|
||||
- Start client: `mvn -f client javafx:run`
|
||||
|
||||
|
@ -12,7 +12,7 @@
|
||||
<name>Lingo :: Client</name>
|
||||
|
||||
<properties>
|
||||
<javafx.version>17.0.1</javafx.version>
|
||||
<javafx.version>19</javafx.version>
|
||||
<lingo.url>https://lingo.gould.dev</lingo.url>
|
||||
</properties>
|
||||
|
||||
|
@ -12,7 +12,7 @@ import org.springframework.stereotype.Component;
|
||||
|
||||
import dev.gould.lingo.common.WordReader;
|
||||
|
||||
import javax.annotation.PostConstruct;
|
||||
import jakarta.annotation.PostConstruct;
|
||||
|
||||
@Component
|
||||
public class WordRepository {
|
||||
|
@ -6,7 +6,7 @@ import java.util.UUID;
|
||||
import java.util.concurrent.CountDownLatch;
|
||||
import java.util.function.Consumer;
|
||||
|
||||
import javax.annotation.PostConstruct;
|
||||
import jakarta.annotation.PostConstruct;
|
||||
|
||||
import dev.gould.lingo.common.LobbyData;
|
||||
import org.slf4j.Logger;
|
||||
|
@ -4,8 +4,8 @@ import java.util.concurrent.BlockingQueue;
|
||||
import java.util.concurrent.LinkedBlockingQueue;
|
||||
import java.util.function.Consumer;
|
||||
|
||||
import javax.annotation.PostConstruct;
|
||||
import javax.annotation.PreDestroy;
|
||||
import jakarta.annotation.PostConstruct;
|
||||
import jakarta.annotation.PreDestroy;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
@ -1,7 +1,7 @@
|
||||
module dev.gould.lingo.client {
|
||||
requires dev.gould.lingo.common;
|
||||
requires dev.gould.lingo.api;
|
||||
requires java.annotation;
|
||||
requires jakarta.annotation;
|
||||
requires javafx.controls;
|
||||
requires javafx.fxml;
|
||||
requires javafx.graphics;
|
||||
|
4
pom.xml
4
pom.xml
@ -5,7 +5,7 @@
|
||||
<parent>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-parent</artifactId>
|
||||
<version>2.6.2</version>
|
||||
<version>3.0.0</version>
|
||||
</parent>
|
||||
|
||||
<groupId>dev.gould</groupId>
|
||||
@ -17,7 +17,7 @@
|
||||
|
||||
<properties>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
<java.version>17</java.version>
|
||||
<java.version>19</java.version>
|
||||
</properties>
|
||||
|
||||
<modules>
|
||||
|
@ -45,12 +45,12 @@
|
||||
<plugin>
|
||||
<groupId>com.google.cloud.tools</groupId>
|
||||
<artifactId>jib-maven-plugin</artifactId>
|
||||
<version>3.1.4</version>
|
||||
<version>3.3.1</version>
|
||||
<configuration>
|
||||
<!-- Enable this setting to allow pushes to local Docker registry -->
|
||||
<!--<allowInsecureRegistries>true</allowInsecureRegistries>-->
|
||||
<from>
|
||||
<image>eclipse-temurin:17-jre</image>
|
||||
<image>eclipse-temurin:19-jre</image>
|
||||
</from>
|
||||
<to>
|
||||
<image>docker.io/charego/lingo</image>
|
||||
|
@ -8,7 +8,7 @@ import java.util.Map;
|
||||
import java.util.Set;
|
||||
import java.util.TreeMap;
|
||||
|
||||
import javax.annotation.PostConstruct;
|
||||
import jakarta.annotation.PostConstruct;
|
||||
|
||||
import dev.gould.lingo.api.Destinations;
|
||||
import dev.gould.lingo.common.*;
|
||||
|
@ -12,7 +12,7 @@ import org.springframework.stereotype.Component;
|
||||
|
||||
import dev.gould.lingo.common.WordReader;
|
||||
|
||||
import javax.annotation.PostConstruct;
|
||||
import jakarta.annotation.PostConstruct;
|
||||
|
||||
@Component
|
||||
public class WordRepository {
|
||||
|
@ -1,7 +1,7 @@
|
||||
module dev.gould.lingo.server {
|
||||
requires dev.gould.lingo.common;
|
||||
requires dev.gould.lingo.api;
|
||||
requires java.annotation;
|
||||
requires jakarta.annotation;
|
||||
requires org.slf4j;
|
||||
requires spring.beans;
|
||||
requires spring.boot;
|
||||
|
Loading…
x
Reference in New Issue
Block a user