Skip to content

Commit

Permalink
根POM结构调整
Browse files Browse the repository at this point in the history
  • Loading branch information
1993heqiang committed Jul 3, 2024
1 parent 72ac14b commit 6495658
Showing 1 changed file with 38 additions and 31 deletions.
69 changes: 38 additions & 31 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,19 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>${maven.compiler.source}</maven.compiler.target>

<!-- NOTE: keep them align -->
<spring-boot.version>2.7.5</spring-boot.version>
<testcontainers.version>1.17.5</testcontainers.version>
<assertj.version>3.22.0</assertj.version>
<guava.version>30.1.1-jre</guava.version>
<cglib.version>3.2.12</cglib.version>
<javassist.version>3.24.0-GA</javassist.version>
<junit.version>5.9.1</junit.version>
<mockito.version>4.8.0</mockito.version>
<spring-boot.version>2.7.5</spring-boot.version>
<testcontainers.version>1.17.5</testcontainers.version>
<lombok.version>1.18.24</lombok.version>

<!-- plugin versions -->
<flatten-maven-plugin.version>1.3.0</flatten-maven-plugin.version>
<maven-compiler-plugin.version>3.8.1</maven-compiler-plugin.version>
<maven-surefire-plugin.version>3.0.0-M6</maven-surefire-plugin.version>
Expand All @@ -39,42 +43,21 @@

<dependencyManagement>
<dependencies>
<!-- project models -->
<dependency>
<groupId>com.example</groupId>
<artifactId>base</artifactId>
<version>${revision}</version>
</dependency>

<dependency>
<groupId>org.junit</groupId>
<artifactId>junit-bom</artifactId>
<version>${junit.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>

<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-bom</artifactId>
<version>${mockito.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>

<!-- third party Lib -->
<dependency>
<groupId>org.assertj</groupId>
<artifactId>assertj-core</artifactId>
<version>${assertj.version}</version>
<scope>test</scope>
</dependency>

<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<version>${spring-boot.version}</version>
<scope>test</scope>
</dependency>

<dependency>
<groupId>org.javassist</groupId>
<artifactId>javassist</artifactId>
Expand All @@ -93,6 +76,36 @@
<version>${guava.version}</version>
</dependency>

<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>${lombok.version}</version>
</dependency>

<!--test framework-->
<dependency>
<groupId>org.junit</groupId>
<artifactId>junit-bom</artifactId>
<version>${junit.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>

<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-bom</artifactId>
<version>${mockito.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>

<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<version>${spring-boot.version}</version>
<scope>test</scope>
</dependency>

<dependency>
<groupId>org.testcontainers</groupId>
<artifactId>testcontainers</artifactId>
Expand All @@ -104,12 +117,6 @@
<artifactId>junit-jupiter</artifactId>
<version>${testcontainers.version}</version>
</dependency>

<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>${lombok.version}</version>
</dependency>
</dependencies>
</dependencyManagement>

Expand Down

0 comments on commit 6495658

Please sign in to comment.