2026-11-02 11:16:41 +08:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
|
<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">
|
|
|
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
|
|
|
|
|
|
<parent>
|
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
|
<artifactId>spring-boot-starter-parent</artifactId>
|
|
|
|
|
<version>3.5.16</version>
|
|
|
|
|
<relativePath/>
|
|
|
|
|
</parent>
|
|
|
|
|
|
|
|
|
|
<groupId>com.qlinker</groupId>
|
|
|
|
|
<artifactId>qlinker-server</artifactId>
|
|
|
|
|
<version>0.0.1-SNAPSHOT</version>
|
|
|
|
|
<name>qlinker-server</name>
|
|
|
|
|
<description>QLinker 后端服务</description>
|
|
|
|
|
|
|
|
|
|
<properties>
|
|
|
|
|
<java.version>21</java.version>
|
|
|
|
|
<maven.compiler.release>21</maven.compiler.release>
|
|
|
|
|
<maven-enforcer-plugin.version>3.6.3</maven-enforcer-plugin.version>
|
|
|
|
|
</properties>
|
|
|
|
|
|
|
|
|
|
<dependencies>
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
|
<artifactId>spring-boot-starter-web</artifactId>
|
|
|
|
|
</dependency>
|
2026-11-04 11:34:34 +08:00
|
|
|
<dependency>
|
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
|
<artifactId>spring-boot-starter-jdbc</artifactId>
|
|
|
|
|
</dependency>
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
|
<artifactId>spring-boot-starter-validation</artifactId>
|
|
|
|
|
</dependency>
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
|
<artifactId>spring-boot-starter-websocket</artifactId>
|
|
|
|
|
</dependency>
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>org.springframework.security</groupId>
|
|
|
|
|
<artifactId>spring-security-crypto</artifactId>
|
|
|
|
|
</dependency>
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>io.minio</groupId>
|
|
|
|
|
<artifactId>minio</artifactId>
|
|
|
|
|
<version>8.5.17</version>
|
|
|
|
|
</dependency>
|
2026-11-02 11:16:41 +08:00
|
|
|
<dependency>
|
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
|
<artifactId>spring-boot-starter-actuator</artifactId>
|
|
|
|
|
</dependency>
|
2026-11-04 11:34:34 +08:00
|
|
|
<dependency>
|
|
|
|
|
<groupId>org.flywaydb</groupId>
|
|
|
|
|
<artifactId>flyway-core</artifactId>
|
|
|
|
|
</dependency>
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>org.flywaydb</groupId>
|
|
|
|
|
<artifactId>flyway-mysql</artifactId>
|
|
|
|
|
</dependency>
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>com.mysql</groupId>
|
|
|
|
|
<artifactId>mysql-connector-j</artifactId>
|
|
|
|
|
<scope>runtime</scope>
|
|
|
|
|
</dependency>
|
2026-11-02 11:16:41 +08:00
|
|
|
<dependency>
|
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
|
<artifactId>spring-boot-starter-test</artifactId>
|
|
|
|
|
<scope>test</scope>
|
|
|
|
|
</dependency>
|
2026-11-04 11:34:34 +08:00
|
|
|
<!-- 任务 004 自动化测试使用内存数据库验证唯一约束与真实 SQL,不依赖本机 MySQL。 -->
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>com.h2database</groupId>
|
|
|
|
|
<artifactId>h2</artifactId>
|
|
|
|
|
<scope>test</scope>
|
|
|
|
|
</dependency>
|
2026-11-02 11:16:41 +08:00
|
|
|
</dependencies>
|
|
|
|
|
|
|
|
|
|
<build>
|
|
|
|
|
<plugins>
|
|
|
|
|
<plugin>
|
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
|
<artifactId>maven-enforcer-plugin</artifactId>
|
|
|
|
|
<version>${maven-enforcer-plugin.version}</version>
|
|
|
|
|
<executions>
|
|
|
|
|
<execution>
|
|
|
|
|
<id>enforce-java-version</id>
|
|
|
|
|
<phase>validate</phase>
|
|
|
|
|
<goals>
|
|
|
|
|
<goal>enforce</goal>
|
|
|
|
|
</goals>
|
|
|
|
|
<configuration>
|
|
|
|
|
<rules>
|
|
|
|
|
<requireJavaVersion>
|
|
|
|
|
<version>[21,)</version>
|
|
|
|
|
<message>QLinker 要求使用 JDK 21 构建,请使用 JDK 21 入口执行构建。</message>
|
|
|
|
|
</requireJavaVersion>
|
|
|
|
|
<requireMavenVersion>
|
|
|
|
|
<version>[3.9.9,4.0.0)</version>
|
|
|
|
|
</requireMavenVersion>
|
|
|
|
|
</rules>
|
|
|
|
|
</configuration>
|
|
|
|
|
</execution>
|
|
|
|
|
</executions>
|
|
|
|
|
</plugin>
|
|
|
|
|
<plugin>
|
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
|
|
|
|
</plugin>
|
|
|
|
|
</plugins>
|
|
|
|
|
</build>
|
|
|
|
|
</project>
|