forked from leuchter/VS_LET
1
0
Fork 0

Java 16 -> Java 25

main
Sandro Leuchter 2026-06-16 23:58:17 +02:00
parent 35eb1567d8
commit 0708865799
12 changed files with 231 additions and 284 deletions

View File

@ -1 +0,0 @@
*/target/

View File

@ -56,3 +56,11 @@ If you want to learn more about building native executables, please consult <htt
## Related Guides ## Related Guides
- SmallRye GraphQL ([guide](https://quarkus.io/guides/smallrye-graphql)): Create GraphQL Endpoints using the code-first approach from MicroProfile GraphQL - SmallRye GraphQL ([guide](https://quarkus.io/guides/smallrye-graphql)): Create GraphQL Endpoints using the code-first approach from MicroProfile GraphQL
## Provided Code
### SmallRye GraphQL
Start coding with this Hello GraphQL Query
[Related guide section...](https://quarkus.io/guides/smallrye-graphql)

View File

@ -1,8 +0,0 @@
dev:
mvn quarkus:dev
native:
mvn package -Dnative
graal:
mvn package -Dnative -Dquarkus.native.container-build=true

0
21-graphql-quarkus/election/mvnw.cmd vendored 100644 → 100755
View File

View File

@ -1,139 +1,113 @@
<?xml version="1.0"?> <?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0" <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <modelVersion>4.0.0</modelVersion>
<modelVersion>4.0.0</modelVersion> <groupId>vs</groupId>
<groupId>vs</groupId> <artifactId>election</artifactId>
<artifactId>election</artifactId> <version>1.0.0-SNAPSHOT</version>
<version>1.0.0-SNAPSHOT</version> <packaging>quarkus</packaging>
<properties>
<compiler-plugin.version>3.8.1</compiler-plugin.version> <properties>
<maven.compiler.release>16</maven.compiler.release> <compiler-plugin.version>3.15.0</compiler-plugin.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <maven.compiler.release>25</maven.compiler.release>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<quarkus.platform.artifact-id>quarkus-bom</quarkus.platform.artifact-id> <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<quarkus.platform.group-id>io.quarkus.platform</quarkus.platform.group-id> <quarkus.platform.artifact-id>quarkus-bom</quarkus.platform.artifact-id>
<quarkus.platform.version>2.6.3.Final</quarkus.platform.version> <quarkus.platform.group-id>io.quarkus.platform</quarkus.platform.group-id>
<surefire-plugin.version>3.0.0-M5</surefire-plugin.version> <quarkus.platform.version>3.36.2</quarkus.platform.version>
</properties> <skipITs>true</skipITs>
<dependencyManagement> <surefire-plugin.version>3.5.6</surefire-plugin.version>
</properties>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>${quarkus.platform.group-id}</groupId>
<artifactId>${quarkus.platform.artifact-id}</artifactId>
<version>${quarkus.platform.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies> <dependencies>
<dependency> <dependency>
<groupId>${quarkus.platform.group-id}</groupId> <groupId>io.quarkus</groupId>
<artifactId>${quarkus.platform.artifact-id}</artifactId> <artifactId>quarkus-smallrye-graphql</artifactId>
<version>${quarkus.platform.version}</version> </dependency>
<type>pom</type> <dependency>
<scope>import</scope> <groupId>io.quarkus</groupId>
</dependency> <artifactId>quarkus-arc</artifactId>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-junit</artifactId>
<scope>test</scope>
</dependency>
</dependencies> </dependencies>
</dependencyManagement>
<dependencies> <build>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-undertow</artifactId>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-resteasy-jsonb</artifactId>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-websockets</artifactId>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-resteasy</artifactId>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-smallrye-graphql</artifactId>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-arc</artifactId>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-junit5</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>io.rest-assured</groupId>
<artifactId>rest-assured</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>${quarkus.platform.group-id}</groupId>
<artifactId>quarkus-maven-plugin</artifactId>
<version>${quarkus.platform.version}</version>
<extensions>true</extensions>
<executions>
<execution>
<goals>
<goal>build</goal>
<goal>generate-code</goal>
<goal>generate-code-tests</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>${compiler-plugin.version}</version>
<configuration>
<compilerArgs>
<arg>-parameters</arg>
</compilerArgs>
</configuration>
</plugin>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<version>${surefire-plugin.version}</version>
<configuration>
<systemPropertyVariables>
<java.util.logging.manager>org.jboss.logmanager.LogManager</java.util.logging.manager>
<maven.home>${maven.home}</maven.home>
</systemPropertyVariables>
</configuration>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>native</id>
<activation>
<property>
<name>native</name>
</property>
</activation>
<build>
<plugins> <plugins>
<plugin> <plugin>
<artifactId>maven-failsafe-plugin</artifactId> <groupId>${quarkus.platform.group-id}</groupId>
<version>${surefire-plugin.version}</version> <artifactId>quarkus-maven-plugin</artifactId>
<executions> <version>${quarkus.platform.version}</version>
<execution> <extensions>true</extensions>
<goals> </plugin>
<goal>integration-test</goal> <plugin>
<goal>verify</goal> <artifactId>maven-compiler-plugin</artifactId>
</goals> <version>${compiler-plugin.version}</version>
<configuration> <configuration>
<systemPropertyVariables> <parameters>true</parameters>
<native.image.path>${project.build.directory}/${project.build.finalName}-runner</native.image.path>
<java.util.logging.manager>org.jboss.logmanager.LogManager</java.util.logging.manager>
<maven.home>${maven.home}</maven.home>
</systemPropertyVariables>
</configuration> </configuration>
</execution> </plugin>
</executions> <plugin>
</plugin> <artifactId>maven-surefire-plugin</artifactId>
<version>${surefire-plugin.version}</version>
<configuration>
<argLine>@{argLine}</argLine>
<systemPropertyVariables>
<java.util.logging.manager>org.jboss.logmanager.LogManager</java.util.logging.manager>
<maven.home>${maven.home}</maven.home>
</systemPropertyVariables>
</configuration>
</plugin>
<plugin>
<artifactId>maven-failsafe-plugin</artifactId>
<version>${surefire-plugin.version}</version>
<executions>
<execution>
<goals>
<goal>integration-test</goal>
<goal>verify</goal>
</goals>
</execution>
</executions>
<configuration>
<argLine>@{argLine}</argLine>
<systemPropertyVariables>
<native.image.path>${project.build.directory}/${project.build.finalName}-runner</native.image.path>
<java.util.logging.manager>org.jboss.logmanager.LogManager</java.util.logging.manager>
<maven.home>${maven.home}</maven.home>
</systemPropertyVariables>
</configuration>
</plugin>
</plugins> </plugins>
</build> </build>
<properties>
<quarkus.package.type>native</quarkus.package.type> <profiles>
</properties> <profile>
</profile> <id>native</id>
</profiles> <activation>
<property>
<name>native</name>
</property>
</activation>
<properties>
<quarkus.package.jar.enabled>false</quarkus.package.jar.enabled>
<skipITs>false</skipITs>
<quarkus.native.enabled>true</quarkus.native.enabled>
</properties>
</profile>
</profiles>
</project> </project>

View File

@ -1,7 +1,7 @@
package vs; package vs;
import jakarta.inject.Inject;
import java.util.List; import java.util.List;
import javax.inject.Inject;
import org.eclipse.microprofile.graphql.GraphQLApi; import org.eclipse.microprofile.graphql.GraphQLApi;
import org.eclipse.microprofile.graphql.Mutation; import org.eclipse.microprofile.graphql.Mutation;
import org.eclipse.microprofile.graphql.Query; import org.eclipse.microprofile.graphql.Query;

View File

@ -56,3 +56,11 @@ If you want to learn more about building native executables, please consult <htt
## Related Guides ## Related Guides
- SmallRye GraphQL ([guide](https://quarkus.io/guides/smallrye-graphql)): Create GraphQL Endpoints using the code-first approach from MicroProfile GraphQL - SmallRye GraphQL ([guide](https://quarkus.io/guides/smallrye-graphql)): Create GraphQL Endpoints using the code-first approach from MicroProfile GraphQL
## Provided Code
### SmallRye GraphQL
Start coding with this Hello GraphQL Query
[Related guide section...](https://quarkus.io/guides/smallrye-graphql)

View File

@ -1,8 +0,0 @@
dev:
mvn quarkus:dev
native:
mvn package -Dnative
graal:
mvn package -Dnative -Dquarkus.native.container-build=true

0
21-graphql-quarkus/election_solution/mvnw.cmd vendored 100644 → 100755
View File

View File

@ -1,139 +1,113 @@
<?xml version="1.0"?> <?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0" <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <modelVersion>4.0.0</modelVersion>
<modelVersion>4.0.0</modelVersion> <groupId>vs</groupId>
<groupId>vs</groupId> <artifactId>election_solution</artifactId>
<artifactId>election_solution</artifactId> <version>1.0.0-SNAPSHOT</version>
<version>1.0.0-SNAPSHOT</version> <packaging>quarkus</packaging>
<properties>
<compiler-plugin.version>3.8.1</compiler-plugin.version> <properties>
<maven.compiler.release>16</maven.compiler.release> <compiler-plugin.version>3.15.0</compiler-plugin.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <maven.compiler.release>25</maven.compiler.release>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<quarkus.platform.artifact-id>quarkus-bom</quarkus.platform.artifact-id> <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<quarkus.platform.group-id>io.quarkus.platform</quarkus.platform.group-id> <quarkus.platform.artifact-id>quarkus-bom</quarkus.platform.artifact-id>
<quarkus.platform.version>2.6.3.Final</quarkus.platform.version> <quarkus.platform.group-id>io.quarkus.platform</quarkus.platform.group-id>
<surefire-plugin.version>3.0.0-M5</surefire-plugin.version> <quarkus.platform.version>3.36.2</quarkus.platform.version>
</properties> <skipITs>true</skipITs>
<dependencyManagement> <surefire-plugin.version>3.5.6</surefire-plugin.version>
</properties>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>${quarkus.platform.group-id}</groupId>
<artifactId>${quarkus.platform.artifact-id}</artifactId>
<version>${quarkus.platform.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies> <dependencies>
<dependency> <dependency>
<groupId>${quarkus.platform.group-id}</groupId> <groupId>io.quarkus</groupId>
<artifactId>${quarkus.platform.artifact-id}</artifactId> <artifactId>quarkus-smallrye-graphql</artifactId>
<version>${quarkus.platform.version}</version> </dependency>
<type>pom</type> <dependency>
<scope>import</scope> <groupId>io.quarkus</groupId>
</dependency> <artifactId>quarkus-arc</artifactId>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-junit</artifactId>
<scope>test</scope>
</dependency>
</dependencies> </dependencies>
</dependencyManagement>
<dependencies> <build>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-undertow</artifactId>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-resteasy-jsonb</artifactId>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-websockets</artifactId>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-resteasy</artifactId>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-smallrye-graphql</artifactId>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-arc</artifactId>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-junit5</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>io.rest-assured</groupId>
<artifactId>rest-assured</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>${quarkus.platform.group-id}</groupId>
<artifactId>quarkus-maven-plugin</artifactId>
<version>${quarkus.platform.version}</version>
<extensions>true</extensions>
<executions>
<execution>
<goals>
<goal>build</goal>
<goal>generate-code</goal>
<goal>generate-code-tests</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>${compiler-plugin.version}</version>
<configuration>
<compilerArgs>
<arg>-parameters</arg>
</compilerArgs>
</configuration>
</plugin>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<version>${surefire-plugin.version}</version>
<configuration>
<systemPropertyVariables>
<java.util.logging.manager>org.jboss.logmanager.LogManager</java.util.logging.manager>
<maven.home>${maven.home}</maven.home>
</systemPropertyVariables>
</configuration>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>native</id>
<activation>
<property>
<name>native</name>
</property>
</activation>
<build>
<plugins> <plugins>
<plugin> <plugin>
<artifactId>maven-failsafe-plugin</artifactId> <groupId>${quarkus.platform.group-id}</groupId>
<version>${surefire-plugin.version}</version> <artifactId>quarkus-maven-plugin</artifactId>
<executions> <version>${quarkus.platform.version}</version>
<execution> <extensions>true</extensions>
<goals> </plugin>
<goal>integration-test</goal> <plugin>
<goal>verify</goal> <artifactId>maven-compiler-plugin</artifactId>
</goals> <version>${compiler-plugin.version}</version>
<configuration> <configuration>
<systemPropertyVariables> <parameters>true</parameters>
<native.image.path>${project.build.directory}/${project.build.finalName}-runner</native.image.path>
<java.util.logging.manager>org.jboss.logmanager.LogManager</java.util.logging.manager>
<maven.home>${maven.home}</maven.home>
</systemPropertyVariables>
</configuration> </configuration>
</execution> </plugin>
</executions> <plugin>
</plugin> <artifactId>maven-surefire-plugin</artifactId>
<version>${surefire-plugin.version}</version>
<configuration>
<argLine>@{argLine}</argLine>
<systemPropertyVariables>
<java.util.logging.manager>org.jboss.logmanager.LogManager</java.util.logging.manager>
<maven.home>${maven.home}</maven.home>
</systemPropertyVariables>
</configuration>
</plugin>
<plugin>
<artifactId>maven-failsafe-plugin</artifactId>
<version>${surefire-plugin.version}</version>
<executions>
<execution>
<goals>
<goal>integration-test</goal>
<goal>verify</goal>
</goals>
</execution>
</executions>
<configuration>
<argLine>@{argLine}</argLine>
<systemPropertyVariables>
<native.image.path>${project.build.directory}/${project.build.finalName}-runner</native.image.path>
<java.util.logging.manager>org.jboss.logmanager.LogManager</java.util.logging.manager>
<maven.home>${maven.home}</maven.home>
</systemPropertyVariables>
</configuration>
</plugin>
</plugins> </plugins>
</build> </build>
<properties>
<quarkus.package.type>native</quarkus.package.type> <profiles>
</properties> <profile>
</profile> <id>native</id>
</profiles> <activation>
<property>
<name>native</name>
</property>
</activation>
<properties>
<quarkus.package.jar.enabled>false</quarkus.package.jar.enabled>
<skipITs>false</skipITs>
<quarkus.native.enabled>true</quarkus.native.enabled>
</properties>
</profile>
</profiles>
</project> </project>

View File

@ -1,12 +1,12 @@
package vs; package vs;
import jakarta.enterprise.context.ApplicationScoped;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Collections; import java.util.Collections;
import java.util.HashMap; import java.util.HashMap;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
import java.util.Set; import java.util.Set;
import javax.enterprise.context.ApplicationScoped;
@ApplicationScoped @ApplicationScoped
public class BallotBox { public class BallotBox {

View File

@ -1,7 +1,7 @@
package vs; package vs;
import jakarta.inject.Inject;
import java.util.List; import java.util.List;
import javax.inject.Inject;
import org.eclipse.microprofile.graphql.GraphQLApi; import org.eclipse.microprofile.graphql.GraphQLApi;
import org.eclipse.microprofile.graphql.Mutation; import org.eclipse.microprofile.graphql.Mutation;
import org.eclipse.microprofile.graphql.Query; import org.eclipse.microprofile.graphql.Query;