- Update .gitignore to include additional build outputs and IDE files. - Modify pom.xml to add new plugin versions and configurations for frontend and OpenAPI TypeScript client generation. - Introduce project guidelines in roleplay-project.mdc, detailing architecture, coding standards, and testing practices. - Add initial documentation for the RolePlay concept and specifications. - Implement catch-all JAX-RS resource for serving the React application and establish API base path in application.yml. - Create foundational web components and TypeScript configuration for the frontend application.
237 lines
10 KiB
XML
237 lines
10 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
xmlns="http://maven.apache.org/POM/4.0.0"
|
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
<groupId>de.neitzel</groupId>
|
|
<artifactId>roleplay</artifactId>
|
|
<version>0.1.0-SNAPSHOT</version>
|
|
|
|
<properties>
|
|
<java.version>21</java.version>
|
|
<maven.compiler.plugin.version>3.12.1</maven.compiler.plugin.version>
|
|
<maven.resources.plugin.version>3.3.1</maven.resources.plugin.version>
|
|
<maven.surefire.plugin.version>3.2.5</maven.surefire.plugin.version>
|
|
<quarkus.platform.group-id>io.quarkus.platform</quarkus.platform.group-id>
|
|
<quarkus.platform.artifact-id>quarkus-bom</quarkus.platform.artifact-id>
|
|
<quarkus.platform.version>3.15.3</quarkus.platform.version>
|
|
<quarkus.plugin.version>${quarkus.platform.version}</quarkus.plugin.version>
|
|
<lombok.version>1.18.42</lombok.version>
|
|
<junit.jupiter.version>5.10.3</junit.jupiter.version>
|
|
<mockito.version>5.12.0</mockito.version>
|
|
<openapi.generator.version>7.11.0</openapi.generator.version>
|
|
<frontend.plugin.version>1.15.1</frontend.plugin.version>
|
|
<node.version>v22.13.1</node.version>
|
|
<npm.version>10.9.2</npm.version>
|
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
</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>
|
|
<dependency>
|
|
<groupId>io.quarkus</groupId>
|
|
<artifactId>quarkus-arc</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>io.quarkus</groupId>
|
|
<artifactId>quarkus-rest</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>io.quarkus</groupId>
|
|
<artifactId>quarkus-rest-jackson</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>io.quarkus</groupId>
|
|
<artifactId>quarkus-hibernate-validator</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>io.quarkus</groupId>
|
|
<artifactId>quarkus-liquibase</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>io.quarkus</groupId>
|
|
<artifactId>quarkus-rest-client-jackson</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.projectlombok</groupId>
|
|
<artifactId>lombok</artifactId>
|
|
<version>${lombok.version}</version>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.junit.jupiter</groupId>
|
|
<artifactId>junit-jupiter</artifactId>
|
|
<version>${junit.jupiter.version}</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.mockito</groupId>
|
|
<artifactId>mockito-junit-jupiter</artifactId>
|
|
<version>${mockito.version}</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
</dependencies>
|
|
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>io.quarkus</groupId>
|
|
<artifactId>quarkus-maven-plugin</artifactId>
|
|
<version>${quarkus.plugin.version}</version>
|
|
<extensions>true</extensions>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
<artifactId>build-helper-maven-plugin</artifactId>
|
|
<version>3.6.0</version>
|
|
<executions>
|
|
<execution>
|
|
<id>add-openapi-generated-sources</id>
|
|
<phase>generate-sources</phase>
|
|
<goals>
|
|
<goal>add-source</goal>
|
|
</goals>
|
|
<configuration>
|
|
<sources>
|
|
<source>${project.build.directory}/generated-sources/openapi/src/main/java</source>
|
|
</sources>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.openapitools</groupId>
|
|
<artifactId>openapi-generator-maven-plugin</artifactId>
|
|
<version>${openapi.generator.version}</version>
|
|
<executions>
|
|
<execution>
|
|
<id>generate-roleplay-api</id>
|
|
<goals>
|
|
<goal>generate</goal>
|
|
</goals>
|
|
<configuration>
|
|
<inputSpec>${project.basedir}/src/main/resources/openapi-roleplay-public-v1.yml</inputSpec>
|
|
<generatorName>jaxrs-spec</generatorName>
|
|
<output>${project.build.directory}/generated-sources/openapi</output>
|
|
<apiPackage>de.neitzel.roleplay.fascade.api</apiPackage>
|
|
<modelPackage>de.neitzel.roleplay.fascade.model</modelPackage>
|
|
<configOptions>
|
|
<interfaceOnly>true</interfaceOnly>
|
|
<returnResponse>false</returnResponse>
|
|
<useSwaggerAnnotations>false</useSwaggerAnnotations>
|
|
<useBeanValidation>true</useBeanValidation>
|
|
<sourceFolder>src/main/java</sourceFolder>
|
|
<dateLibrary>java8</dateLibrary>
|
|
<openApiNullable>false</openApiNullable>
|
|
<useTags>true</useTags>
|
|
<jackson>true</jackson>
|
|
<useJakartaEe>true</useJakartaEe>
|
|
</configOptions>
|
|
<generateSupportingFiles>false</generateSupportingFiles>
|
|
</configuration>
|
|
</execution>
|
|
<execution>
|
|
<id>generate-typescript-client</id>
|
|
<goals>
|
|
<goal>generate</goal>
|
|
</goals>
|
|
<configuration>
|
|
<inputSpec>${project.basedir}/src/main/resources/openapi-roleplay-public-v1.yml</inputSpec>
|
|
<generatorName>typescript-fetch</generatorName>
|
|
<output>${project.basedir}/src/main/web/src/api/generated</output>
|
|
<configOptions>
|
|
<supportsES6>true</supportsES6>
|
|
<useSingleRequestParameter>true</useSingleRequestParameter>
|
|
<enumPropertyNaming>original</enumPropertyNaming>
|
|
<modelPropertyNaming>camelCase</modelPropertyNaming>
|
|
<stringEnums>true</stringEnums>
|
|
<withInterfaces>false</withInterfaces>
|
|
</configOptions>
|
|
<generateSupportingFiles>true</generateSupportingFiles>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
|
<version>${maven.compiler.plugin.version}</version>
|
|
<configuration>
|
|
<release>${java.version}</release>
|
|
<parameters>true</parameters>
|
|
<annotationProcessorPaths>
|
|
<path>
|
|
<groupId>org.projectlombok</groupId>
|
|
<artifactId>lombok</artifactId>
|
|
<version>${lombok.version}</version>
|
|
</path>
|
|
</annotationProcessorPaths>
|
|
</configuration>
|
|
</plugin>
|
|
<plugin>
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
<version>${maven.surefire.plugin.version}</version>
|
|
<configuration>
|
|
<useModulePath>false</useModulePath>
|
|
<argLine>-Dnet.bytebuddy.experimental=true</argLine>
|
|
</configuration>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>com.github.eirslett</groupId>
|
|
<artifactId>frontend-maven-plugin</artifactId>
|
|
<version>${frontend.plugin.version}</version>
|
|
<configuration>
|
|
<workingDirectory>src/main/web</workingDirectory>
|
|
<installDirectory>${project.build.directory}/node</installDirectory>
|
|
</configuration>
|
|
<executions>
|
|
<execution>
|
|
<id>install-node-and-npm</id>
|
|
<phase>initialize</phase>
|
|
<goals>
|
|
<goal>install-node-and-npm</goal>
|
|
</goals>
|
|
<configuration>
|
|
<nodeVersion>${node.version}</nodeVersion>
|
|
<npmVersion>${npm.version}</npmVersion>
|
|
</configuration>
|
|
</execution>
|
|
<execution>
|
|
<id>npm-install</id>
|
|
<phase>generate-resources</phase>
|
|
<goals>
|
|
<goal>npm</goal>
|
|
</goals>
|
|
<configuration>
|
|
<arguments>install</arguments>
|
|
</configuration>
|
|
</execution>
|
|
<execution>
|
|
<id>npm-build</id>
|
|
<phase>generate-resources</phase>
|
|
<goals>
|
|
<goal>npm</goal>
|
|
</goals>
|
|
<configuration>
|
|
<arguments>run build</arguments>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
</project>
|
|
|