refactor: 重构模块依赖层级

This commit is contained in:
click33
2026-02-27 12:14:01 +08:00
parent f40f0d3adf
commit 6a96d2fabd
14 changed files with 120 additions and 36 deletions

10
pom.xml
View File

@@ -18,10 +18,8 @@
<!-- 所有模块 -->
<modules>
<module>sa-token-basic-dependencies</module>
<module>sa-token-spring-boot2-dependencies</module>
<module>sa-token-spring-boot3-dependencies</module>
<module>sa-token-spring-boot4-dependencies</module>
<module>sa-token-dependencies</module>
<module>sa-token-special-dependencies</module>
<module>sa-token-bom</module>
<module>sa-token-core</module>
<module>sa-token-starter</module>
@@ -80,12 +78,12 @@
<dependencies>
<!--
导入 sa-token-basic-dependencies 所有版本定义,并传导到每个子项目。
导入 sa-token-dependencies 所有版本定义,并传导到每个子项目。
需要注意的是:该 import 只会导入 <dependencyManagement> 部分,而不会导入 <dependencies> 部分和 <properties> 部分。
-->
<dependency>
<groupId>cn.dev33</groupId>
<artifactId>sa-token-basic-dependencies</artifactId>
<artifactId>sa-token-dependencies</artifactId>
<version>${project.version}</version>
<type>pom</type>
<scope>import</scope>

View File

@@ -16,7 +16,7 @@
<description>A Java Web lightweight authority authentication framework, comprehensive function, easy to use</description>
<dependencies>
<!-- Zero dependence -->
<!-- Zero Dependence -->
</dependencies>

View File

@@ -10,7 +10,7 @@
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>3.0.1</version>
<version>3.5.11</version>
<relativePath/>
</parent>

View File

@@ -5,10 +5,10 @@
<modelVersion>4.0.0</modelVersion>
<groupId>cn.dev33</groupId>
<artifactId>sa-token-basic-dependencies</artifactId>
<artifactId>sa-token-dependencies</artifactId>
<version>${revision}</version>
<packaging>pom</packaging>
<name>sa-token-basic-dependencies</name>
<name>sa-token-dependencies</name>
<description>Sa-Token Dependencies</description>
<properties>
@@ -283,7 +283,7 @@
<encoding>UTF-8</encoding>
</configuration>
</plugin>
<!-- 统一版本号管理 -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
@@ -310,7 +310,7 @@
</execution>
</executions>
</plugin>
</plugins>
<pluginManagement>
<plugins>

View File

@@ -7,7 +7,7 @@
``` js
── sa-token
├── sa-token-core // [核心] Sa-Token 核心模块
├── sa-token-basic-dependencies // [依赖] Sa-Token 依赖版本信息
├── sa-token-dependencies // [依赖] Sa-Token 依赖版本信息
├── sa-token-bom // [核心] Sa-Token bom 包
├── sa-token-starter // [整合] Sa-Token 与其它框架整合
├── sa-token-plugin // [插件] Sa-Token 插件合集
@@ -28,7 +28,7 @@
``` js
── sa-token
├── sa-token-core // [核心] Sa-Token 核心模块
├── sa-token-basic-dependencies // [依赖] Sa-Token 依赖版本信息
├── sa-token-dependencies // [依赖] Sa-Token 依赖版本信息
├── sa-token-bom // [核心] Sa-Token bom 包
├── sa-token-starter // [整合] Sa-Token 与其它框架整合
├── sa-token-servlet // [整合] Sa-Token 整合 Servlet 容器实现类包

View File

@@ -54,17 +54,6 @@
<module>sa-token-redisson-spring-boot-starter</module>
</modules>
<dependencies>
<!-- spring-boot-configuration -->
<!--<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-configuration-processor</artifactId>
<version>2.5.14</version>
<optional>true</optional>
</dependency>-->
</dependencies>
<dependencyManagement>
<dependencies>

View File

@@ -0,0 +1,25 @@
<?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 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>cn.dev33</groupId>
<artifactId>sa-token-parent</artifactId>
<version>${revision}</version>
<relativePath>../pom.xml</relativePath>
</parent>
<packaging>pom</packaging>
<artifactId>sa-token-special-dependencies</artifactId>
<name>sa-token-special-dependencies</name>
<description>Sa-Token Special Dependencies - 聚合 Spring Boot 各版本依赖</description>
<modules>
<module>sa-token-spring-boot2-dependencies</module>
<module>sa-token-spring-boot3-dependencies</module>
<module>sa-token-spring-boot4-dependencies</module>
</modules>
</project>

View File

@@ -7,7 +7,7 @@
<!-- 父仓库 -->
<parent>
<groupId>cn.dev33</groupId>
<artifactId>sa-token-parent</artifactId>
<artifactId>sa-token-special-dependencies</artifactId>
<version>${revision}</version>
<relativePath>../pom.xml</relativePath>
</parent>

View File

@@ -7,7 +7,7 @@
<!-- 父仓库 -->
<parent>
<groupId>cn.dev33</groupId>
<artifactId>sa-token-parent</artifactId>
<artifactId>sa-token-special-dependencies</artifactId>
<version>${revision}</version>
<relativePath>../pom.xml</relativePath>
</parent>
@@ -18,8 +18,8 @@
<description>Sa-Token SpringBoot3 Dependencies</description>
<properties>
<springboot3.version>3.0.1</springboot3.version>
<springboot3-spring.version>6.2.5</springboot3-spring.version>
<springboot3.version>3.5.11</springboot3.version>
<springboot3-spring.version>6.2.16</springboot3-spring.version>
</properties>
<dependencyManagement>

View File

@@ -7,7 +7,7 @@
<!-- 父仓库 -->
<parent>
<groupId>cn.dev33</groupId>
<artifactId>sa-token-parent</artifactId>
<artifactId>sa-token-special-dependencies</artifactId>
<version>${revision}</version>
<relativePath>../pom.xml</relativePath>
</parent>

View File

@@ -14,7 +14,15 @@
* limitations under the License.
*/
/**
* Sa-Token 集成 Reactor 响应式编程 (SpringBoot 3.x)
*/
package cn.dev33.satoken.reactor;
/**
* 占位符
*
* @author click33
* @since 1.45.0
*/
public class Placeholder {
}

View File

@@ -14,7 +14,15 @@
* limitations under the License.
*/
/**
* Sa-Token 集成 Reactor 响应式编程 (SpringBoot 4.x)
*/
package cn.dev33.satoken.reactor;
/**
* 占位符
*
* @author click33
* @since 1.45.0
*/
public class Placeholder {
}

View File

@@ -0,0 +1,28 @@
/*
* Copyright 2020-2099 sa-token.cc
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package cn.dev33.satoken;
/**
* 占位符
*
* @author click33
* @since 1.45.0
*/
public class Placeholder {
}

View File

@@ -0,0 +1,28 @@
/*
* Copyright 2020-2099 sa-token.cc
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package cn.dev33.satoken;
/**
* 占位符
*
* @author click33
* @since 1.45.0
*/
public class Placeholder {
}