refactor: 更改项目结构

创建父项目 plusone-parent,将 plusone-commons 放在 plusone-parent 下;
在 plusone-parent 下创建 plusone-dependencies,由 plusone-dependencies 管理可能用到的所有依赖。
This commit is contained in:
zhouxy108 2025-05-02 11:31:57 +08:00
parent 5ce738bdfc
commit 030ed9ed3b
105 changed files with 418 additions and 172 deletions

View File

@ -14,25 +14,31 @@
"cspell", "cspell",
"databind", "databind",
"datasource", "datasource",
"dbutils",
"fasterxml", "fasterxml",
"findbugs", "findbugs",
"gson", "gson",
"Hikari", "Hikari",
"hutool", "hutool",
"jasypt",
"jbcrypt",
"Jdbc", "Jdbc",
"joda", "joda",
"logback", "logback",
"mapstruct", "mapstruct",
"mindrot",
"Multimap", "Multimap",
"Multiset", "Multiset",
"mybatis", "mybatis",
"Nonnull", "Nonnull",
"NOSONAR", "NOSONAR",
"okhttp", "okhttp",
"ooxml",
"overriden", "overriden",
"plusone", "plusone",
"println", "println",
"projectlombok", "projectlombok",
"querydsl",
"regexs", "regexs",
"Seata", "Seata",
"sonarlint", "sonarlint",

133
plusone-commons/pom.xml Normal file
View File

@ -0,0 +1,133 @@
<?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/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>xyz.zhouxy.plusone</groupId>
<artifactId>plusone-parent</artifactId>
<version>1.1.0-SNAPSHOT</version>
</parent>
<artifactId>plusone-commons</artifactId>
<description>
常见工具集,结合 guava 使用。
</description>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<java.version>1.8</java.version>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
</properties>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>xyz.zhouxy.plusone</groupId>
<artifactId>plusone-dependencies</artifactId>
<version>1.1.0-SNAPSHOT</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<!-- ========== Compile Dependencies ========== -->
<dependency>
<groupId>com.google.code.findbugs</groupId>
<artifactId>jsr305</artifactId>
</dependency>
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
</dependency>
<dependency>
<groupId>joda-time</groupId>
<artifactId>joda-time</artifactId>
<optional>true</optional>
</dependency>
<!-- ========== Test Dependencies ========== -->
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-api</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-params</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<optional>true</optional>
<scope>test</scope>
</dependency>
<dependency>
<groupId>cn.hutool</groupId>
<artifactId>hutool-core</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.mybatis</groupId>
<artifactId>mybatis</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.h2database</groupId>
<artifactId>h2</artifactId>
<scope>test</scope>
</dependency>
<!-- Jackson -->
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.datatype</groupId>
<artifactId>jackson-datatype-jsr310</artifactId>
<scope>test</scope>
</dependency>
<!-- Gson -->
<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
</project>

View File

@ -400,7 +400,7 @@ class DateTimeToolsTests {
// ================================ // ================================
// ================================ // ================================
// #region - ZondId <--> DateTimeZone // #region - ZoneId <--> DateTimeZone
// ================================ // ================================
@Test @Test
@ -412,7 +412,7 @@ class DateTimeToolsTests {
} }
// ================================ // ================================
// #endregion - ZondId <--> DateTimeZone // #endregion - ZoneId <--> DateTimeZone
// ================================ // ================================
// ================================ // ================================

Some files were not shown because too many files have changed in this diff Show More