Skip to content

xmagic-parent使用说明

当前版本 1.0.8

JDK版本 JDK17

SpringBoot版本 3.3.7

使用

xmagic-parent,包含了SpringBoot的依赖和三方依赖,可用作根项目。

  1. 包含SpringBoot的包依赖版本统一管理
  2. 包含xmagic-dependencies的三方包依赖版本统一管理
  3. 用于传统java项目
  4. 包含已预置的通用包依赖

Maven

xml

<parent>
    <groupId>tech.xmagic</groupId>
    <artifactId>xmagic-parent</artifactId>
    <version>${xmagic-parent.version}</version>
    <relativePath/>
</parent>

预置依赖

xml

<dependencies>
  <!--hutool-->
  <dependency>
    <groupId>cn.hutool</groupId>
    <artifactId>hutool-all</artifactId>
  </dependency>
  <!--lombok-->
  <dependency>
    <groupId>org.projectlombok</groupId>
    <artifactId>lombok</artifactId>
    <scope>provided</scope>
  </dependency>
  <!-- slf4j -->
  <dependency>
    <groupId>org.slf4j</groupId>
    <artifactId>slf4j-api</artifactId>
  </dependency>
  <!-- logback -->
  <dependency>
    <groupId>ch.qos.logback</groupId>
    <artifactId>logback-core</artifactId>
  </dependency>
  <!-- logback -->
  <dependency>
    <groupId>ch.qos.logback</groupId>
    <artifactId>logback-classic</artifactId>
  </dependency>
  <!--测试-->
  <dependency>
    <groupId>org.junit.jupiter</groupId>
    <artifactId>junit-jupiter</artifactId>
    <scope>test</scope>
  </dependency>
</dependencies>

Gradle

groovy