2024-03-29 16:26:33 +08:00
|
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
2024-04-07 10:54:47 +08:00
|
|
|
|
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
|
|
|
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
2024-03-29 16:26:33 +08:00
|
|
|
|
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>com.bytedesk</groupId>
|
2024-08-06 08:18:01 +08:00
|
|
|
|
<artifactId>modules</artifactId>
|
|
|
|
|
|
<version>${revision}</version>
|
2024-03-29 16:26:33 +08:00
|
|
|
|
</parent>
|
|
|
|
|
|
|
2024-05-21 09:02:02 +08:00
|
|
|
|
<artifactId>bytedesk-module-core</artifactId>
|
2024-08-06 08:18:01 +08:00
|
|
|
|
|
2024-07-08 22:11:03 +08:00
|
|
|
|
<name>bytedesk-module-core</name>
|
2024-10-21 07:19:58 +08:00
|
|
|
|
<description>https://ai.bytedesk.com</description>
|
2024-03-29 16:26:33 +08:00
|
|
|
|
|
|
|
|
|
|
<properties>
|
2024-04-30 09:37:49 +08:00
|
|
|
|
<jsonwebtoken.version>0.12.5</jsonwebtoken.version>
|
2024-03-29 16:26:33 +08:00
|
|
|
|
</properties>
|
|
|
|
|
|
|
|
|
|
|
|
<dependencies>
|
|
|
|
|
|
|
2024-06-18 15:28:57 +08:00
|
|
|
|
<!--
|
|
|
|
|
|
https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-websocket -->
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
|
|
<artifactId>spring-boot-starter-websocket</artifactId>
|
|
|
|
|
|
<scope>provided</scope>
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
|
|
<!--
|
|
|
|
|
|
https://mvnrepository.com/artifact/org.springframework.security/spring-security-messaging -->
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>org.springframework.security</groupId>
|
|
|
|
|
|
<artifactId>spring-security-messaging</artifactId>
|
|
|
|
|
|
<scope>provided</scope>
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
2024-03-29 16:26:33 +08:00
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
|
|
<artifactId>spring-boot-starter-oauth2-resource-server</artifactId>
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
2024-10-21 07:19:58 +08:00
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
|
|
<artifactId>spring-boot-starter-artemis</artifactId>
|
|
|
|
|
|
<scope>provided</scope>
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- spring statemachine - 迁移到 cola statemachine -->
|
|
|
|
|
|
<!-- https://github.com/spring-projects/spring-statemachine -->
|
|
|
|
|
|
<!-- https://mvnrepository.com/artifact/org.springframework.statemachine/spring-statemachine-starter -->
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>org.springframework.statemachine</groupId>
|
|
|
|
|
|
<artifactId>spring-statemachine-starter</artifactId>
|
|
|
|
|
|
<version>4.0.0</version>
|
2024-10-28 07:52:17 +08:00
|
|
|
|
<scope>provided</scope>
|
2024-10-21 07:19:58 +08:00
|
|
|
|
</dependency>
|
|
|
|
|
|
<!-- https://mvnrepository.com/artifact/org.springframework.statemachine/spring-statemachine-data-jpa -->
|
|
|
|
|
|
<!-- <dependency>
|
|
|
|
|
|
<groupId>org.springframework.statemachine</groupId>
|
|
|
|
|
|
<artifactId>spring-statemachine-data-jpa</artifactId>
|
|
|
|
|
|
<version>4.0.0</version>
|
|
|
|
|
|
</dependency> -->
|
|
|
|
|
|
<!-- https://mvnrepository.com/artifact/org.springframework.statemachine/spring-statemachine-data-redis -->
|
|
|
|
|
|
<!-- <dependency>
|
|
|
|
|
|
<groupId>org.springframework.statemachine</groupId>
|
|
|
|
|
|
<artifactId>spring-statemachine-data-redis</artifactId>
|
|
|
|
|
|
<version>4.0.0</version>
|
|
|
|
|
|
</dependency> -->
|
|
|
|
|
|
<!-- 替换上面的 spring-statemachine https://mvnrepository.com/artifact/com.alibaba.cola/cola-component-statemachine -->
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>com.alibaba.cola</groupId>
|
|
|
|
|
|
<artifactId>cola-component-statemachine</artifactId>
|
|
|
|
|
|
<version>5.0.0</version>
|
2024-10-28 07:52:17 +08:00
|
|
|
|
<scope>provided</scope>
|
2024-10-21 07:19:58 +08:00
|
|
|
|
</dependency>
|
2024-07-09 11:10:23 +08:00
|
|
|
|
|
2024-06-18 15:28:57 +08:00
|
|
|
|
<!-- https://mvnrepository.com/artifact/io.netty/netty-all -->
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>io.netty</groupId>
|
|
|
|
|
|
<artifactId>netty-all</artifactId>
|
|
|
|
|
|
<version>4.1.106.Final</version>
|
|
|
|
|
|
<scope>provided</scope>
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- https://mvnrepository.com/artifact/com.google.code.gson/gson -->
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>com.google.code.gson</groupId>
|
|
|
|
|
|
<artifactId>gson</artifactId>
|
|
|
|
|
|
<version>2.10.1</version>
|
|
|
|
|
|
<scope>provided</scope>
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- https://mvnrepository.com/artifact/com.google.protobuf/protobuf-java-util -->
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>com.google.protobuf</groupId>
|
|
|
|
|
|
<artifactId>protobuf-java-util</artifactId>
|
2024-10-07 07:29:38 +08:00
|
|
|
|
<!-- <version>3.25.2</version> -->
|
|
|
|
|
|
<version>4.28.2</version>
|
2024-06-18 15:28:57 +08:00
|
|
|
|
<scope>provided</scope>
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
|
|
<!--
|
|
|
|
|
|
https://mvnrepository.com/artifact/com.googlecode.protobuf-java-format/protobuf-java-format -->
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>com.googlecode.protobuf-java-format</groupId>
|
|
|
|
|
|
<artifactId>protobuf-java-format</artifactId>
|
|
|
|
|
|
<version>1.4</version>
|
|
|
|
|
|
<scope>provided</scope>
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
2024-03-29 16:26:33 +08:00
|
|
|
|
<!-- https://github.com/redisson/redisson?tab=readme-ov-file -->
|
|
|
|
|
|
<!-- https://mvnrepository.com/artifact/org.redisson/redisson -->
|
|
|
|
|
|
<!-- <dependency>
|
|
|
|
|
|
<groupId>org.redisson</groupId>
|
|
|
|
|
|
<artifactId>redisson</artifactId>
|
|
|
|
|
|
<version>3.27.0</version>
|
|
|
|
|
|
</dependency> -->
|
|
|
|
|
|
|
2024-10-07 07:29:38 +08:00
|
|
|
|
<!-- ////////////////////// 推送 /////////////////////////////////// -->
|
|
|
|
|
|
|
|
|
|
|
|
<!-- apple push -->
|
|
|
|
|
|
<!-- https://github.com/jchambers/pushy -->
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>com.eatthepath</groupId>
|
|
|
|
|
|
<artifactId>pushy</artifactId>
|
|
|
|
|
|
<version>0.15.4</version>
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- https://codelabs.developers.google.com/codelabs/push-notifications#0 -->
|
|
|
|
|
|
<!-- https://github.com/web-push-libs/webpush-java -->
|
|
|
|
|
|
<!-- web push -->
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>nl.martijndwars</groupId>
|
|
|
|
|
|
<artifactId>web-push</artifactId>
|
|
|
|
|
|
<version>5.1.1</version>
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- web push 依赖 bouncycastle-->
|
|
|
|
|
|
<!-- https://search.maven.org/artifact/org.bouncycastle/bcprov-jdk15on/1.70/jar -->
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>org.bouncycastle</groupId>
|
|
|
|
|
|
<artifactId>bcprov-jdk15on</artifactId>
|
|
|
|
|
|
<version>1.70</version>
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
|
|
<!--小米推送,FIXME: 找不到,只能将jar放到本地.m2相应目录中-->
|
|
|
|
|
|
<!-- <dependency>
|
|
|
|
|
|
<groupId>com.xiaomi</groupId>
|
|
|
|
|
|
<artifactId>xpush</artifactId>
|
|
|
|
|
|
<version>1.0.2</version>
|
|
|
|
|
|
</dependency> -->
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ////////////////////// 推送 /////////////////////////////////// -->
|
|
|
|
|
|
|
2024-11-04 07:22:57 +08:00
|
|
|
|
<!-- https://mvnrepository.com/artifact/org.apache.httpcomponents.client5/httpclient5 -->
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>org.apache.httpcomponents.client5</groupId>
|
|
|
|
|
|
<artifactId>httpclient5</artifactId>
|
|
|
|
|
|
<version>5.4.1</version>
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
2024-03-29 16:26:33 +08:00
|
|
|
|
<!-- https://mvnrepository.com/artifact/org.apache.httpcomponents.core5/httpcore5 -->
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>org.apache.httpcomponents.core5</groupId>
|
|
|
|
|
|
<artifactId>httpcore5</artifactId>
|
|
|
|
|
|
<version>5.2.4</version>
|
|
|
|
|
|
</dependency>
|
2024-11-18 13:17:15 +08:00
|
|
|
|
|
2024-03-29 16:26:33 +08:00
|
|
|
|
<!-- https://mvnrepository.com/artifact/io.jsonwebtoken/jjwt-api -->
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>io.jsonwebtoken</groupId>
|
|
|
|
|
|
<artifactId>jjwt-api</artifactId>
|
2024-04-30 09:37:49 +08:00
|
|
|
|
<version>${jsonwebtoken.version}</version>
|
2024-03-29 16:26:33 +08:00
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- https://mvnrepository.com/artifact/io.jsonwebtoken/jjwt-impl -->
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>io.jsonwebtoken</groupId>
|
|
|
|
|
|
<artifactId>jjwt-impl</artifactId>
|
2024-04-30 09:37:49 +08:00
|
|
|
|
<version>${jsonwebtoken.version}</version>
|
2024-03-29 16:26:33 +08:00
|
|
|
|
<scope>runtime</scope>
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- https://mvnrepository.com/artifact/io.jsonwebtoken/jjwt-jackson -->
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>io.jsonwebtoken</groupId>
|
|
|
|
|
|
<artifactId>jjwt-jackson</artifactId>
|
2024-04-30 09:37:49 +08:00
|
|
|
|
<version>${jsonwebtoken.version}</version>
|
2024-03-29 16:26:33 +08:00
|
|
|
|
<scope>runtime</scope>
|
|
|
|
|
|
</dependency>
|
2024-10-07 11:42:38 +08:00
|
|
|
|
|
2024-03-29 16:26:33 +08:00
|
|
|
|
<!-- ip2region -->
|
|
|
|
|
|
<!-- https://github.com/lionsoul2014/ip2region -->
|
|
|
|
|
|
<!-- https://mvnrepository.com/artifact/org.lionsoul/ip2region -->
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>org.lionsoul</groupId>
|
|
|
|
|
|
<artifactId>ip2region</artifactId>
|
|
|
|
|
|
<version>2.7.0</version>
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
|
|
</dependencies>
|
|
|
|
|
|
|
|
|
|
|
|
<build>
|
|
|
|
|
|
<plugins>
|
2024-06-18 15:28:57 +08:00
|
|
|
|
<!--自动生成protobuf
|
|
|
|
|
|
java类-->
|
|
|
|
|
|
<plugin>
|
|
|
|
|
|
<groupId>org.xolstice.maven.plugins</groupId>
|
|
|
|
|
|
<artifactId>protobuf-maven-plugin</artifactId>
|
|
|
|
|
|
<version>0.6.1</version>
|
|
|
|
|
|
<extensions>true</extensions>
|
|
|
|
|
|
<configuration>
|
|
|
|
|
|
<!--默认值-->
|
|
|
|
|
|
<protoSourceRoot>${project.basedir}/src/main/proto</protoSourceRoot>
|
|
|
|
|
|
<!--默认值-->
|
|
|
|
|
|
<!--<outputDirectory>${project.build.directory}/generated-sources/protobuf/java</outputDirectory>-->
|
|
|
|
|
|
<!--<outputDirectory>${project.build.sourceDirectory}</outputDirectory>-->
|
|
|
|
|
|
<!--设置是否在生成java文件之前清空outputDirectory的文件,默认值为true,设置为false时也会覆盖同名文件-->
|
|
|
|
|
|
<clearOutputDirectory>false</clearOutputDirectory>
|
|
|
|
|
|
<!--默认值-->
|
|
|
|
|
|
<temporaryProtoFileDirectory>${project.build.directory}/protoc-dependencies</temporaryProtoFileDirectory>
|
|
|
|
|
|
<!--更多配置信息可以查看https://www.xolstice.org/protobuf-maven-plugin/compile-mojo.html-->
|
|
|
|
|
|
</configuration>
|
|
|
|
|
|
<executions>
|
|
|
|
|
|
<execution>
|
|
|
|
|
|
<goals>
|
|
|
|
|
|
<goal>compile</goal>
|
|
|
|
|
|
<goal>test-compile</goal>
|
|
|
|
|
|
</goals>
|
|
|
|
|
|
<!--也可以设置成局部变量,执行compile或test-compile时才执行-->
|
|
|
|
|
|
<!--<configuration>-->
|
|
|
|
|
|
<!--<protoSourceRoot>${project.basedir}/src/main/proto</protoSourceRoot>-->
|
|
|
|
|
|
<!--<outputDirectory>${project.build.directory}/generated-sources/protobuf/java</outputDirectory>-->
|
|
|
|
|
|
<!--<temporaryProtoFileDirectory>${project.build.directory}/protoc-dependencies</temporaryProtoFileDirectory>-->
|
|
|
|
|
|
<!--</configuration>-->
|
|
|
|
|
|
</execution>
|
|
|
|
|
|
</executions>
|
|
|
|
|
|
</plugin>
|
|
|
|
|
|
<plugin>
|
|
|
|
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
|
|
|
|
<artifactId>build-helper-maven-plugin</artifactId>
|
|
|
|
|
|
<executions>
|
|
|
|
|
|
<execution>
|
|
|
|
|
|
<id>add-protobuf-generate-sources</id>
|
|
|
|
|
|
<phase>generate-sources</phase>
|
|
|
|
|
|
<goals>
|
|
|
|
|
|
<goal>add-source</goal>
|
|
|
|
|
|
</goals>
|
|
|
|
|
|
<configuration>
|
|
|
|
|
|
<sources>
|
|
|
|
|
|
<!--<source>target/generated-sources/protobuf/java</source>-->
|
|
|
|
|
|
<source>src/main/java</source>
|
|
|
|
|
|
</sources>
|
|
|
|
|
|
</configuration>
|
|
|
|
|
|
</execution>
|
|
|
|
|
|
<execution>
|
|
|
|
|
|
<id>add-protobuf-generate-test-sources</id>
|
|
|
|
|
|
<phase>generate-sources</phase>
|
|
|
|
|
|
<goals>
|
|
|
|
|
|
<goal>add-test-source</goal>
|
|
|
|
|
|
</goals>
|
|
|
|
|
|
<configuration>
|
|
|
|
|
|
<sources>
|
|
|
|
|
|
<source>target/generated-test-sources/protobuf/java</source>
|
|
|
|
|
|
</sources>
|
|
|
|
|
|
</configuration>
|
|
|
|
|
|
</execution>
|
|
|
|
|
|
</executions>
|
|
|
|
|
|
</plugin>
|
|
|
|
|
|
|
2024-03-29 16:26:33 +08:00
|
|
|
|
</plugins>
|
|
|
|
|
|
</build>
|
|
|
|
|
|
|
2024-06-18 15:28:57 +08:00
|
|
|
|
|
2024-04-07 10:54:47 +08:00
|
|
|
|
</project>
|