Skip to content

Commit

Permalink
✨ 优化依赖管理
Browse files Browse the repository at this point in the history
  • Loading branch information
li-xunhuan committed Dec 5, 2023
1 parent 576dae8 commit c98c2e0
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 89 deletions.
23 changes: 0 additions & 23 deletions example/mica-mqtt-client-spring-boot-example/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@
<relativePath>../../pom.xml</relativePath>
</parent>

<properties>
<java.version>1.8</java.version>
</properties>

<dependencies>
<dependency>
<groupId>net.dreamlu</groupId>
Expand All @@ -41,25 +37,6 @@
</dependency>
</dependencies>

<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-dependencies</artifactId>
<version>${spring.boot.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>net.dreamlu</groupId>
<artifactId>mica-bom</artifactId>
<version>${mica.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>

<build>
<finalName>${project.artifactId}</finalName>
<plugins>
Expand Down
2 changes: 0 additions & 2 deletions example/mica-mqtt-example/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-jdk14</artifactId>
<version>1.7.31</version>
</dependency>
<!-- GraalVM -->
<dependency>
Expand Down Expand Up @@ -146,7 +145,6 @@
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-jdk14</artifactId>
<version>1.7.31</version>
</dependency>
<!-- GraalVM -->
<dependency>
Expand Down
19 changes: 0 additions & 19 deletions example/mica-mqtt-server-spring-boot-example/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -48,25 +48,6 @@
</dependency>
</dependencies>

<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-dependencies</artifactId>
<version>${spring.boot.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>net.dreamlu</groupId>
<artifactId>mica-bom</artifactId>
<version>${mica.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>

<build>
<finalName>${project.artifactId}</finalName>
<plugins>
Expand Down
25 changes: 0 additions & 25 deletions mica-mqtt-broker/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -55,31 +55,6 @@
</dependency>
</dependencies>

<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-dependencies</artifactId>
<version>${spring.boot.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>net.dreamlu</groupId>
<artifactId>mica-bom</artifactId>
<version>${mica.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>${lombok.version}</version>
<scope>provided</scope>
</dependency>
</dependencies>
</dependencyManagement>

<build>
<finalName>${project.artifactId}</finalName>
<plugins>
Expand Down
28 changes: 16 additions & 12 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,11 @@
<maven-flatten.version>1.2.2</maven-flatten.version>
<!-- mica-net version -->
<mica-net.version>0.1.6</mica-net.version>
<mica.version>2.7.15</mica.version>
<mica.auto.version>2.3.2</mica.auto.version>
<spring.boot.version>2.7.16</spring.boot.version>
<mica.version>2.7.18</mica.version>
<spring.boot.version>2.7.18</spring.boot.version>
<fastjson.version>1.2.83</fastjson.version>
<micrometer-core.version>1.11.4</micrometer-core.version>
<jfinal.version>5.1.5</jfinal.version>
<tinylog.version>2.6.2</tinylog.version>
<junit-jupiter.version>5.10.0</junit-jupiter.version>
<lombok.version>1.18.30</lombok.version>
</properties>

<modules>
Expand All @@ -48,6 +44,20 @@

<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-dependencies</artifactId>
<version>${spring.boot.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>net.dreamlu</groupId>
<artifactId>mica-bom</artifactId>
<version>${mica.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>net.dreamlu</groupId>
<artifactId>mica-net-core</artifactId>
Expand Down Expand Up @@ -109,12 +119,6 @@
<artifactId>tinylog-impl</artifactId>
<version>${tinylog.version}</version>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
<version>${junit-jupiter.version}</version>
<scope>test</scope>
</dependency>
</dependencies>
</dependencyManagement>

Expand Down
3 changes: 0 additions & 3 deletions starter/mica-mqtt-client-spring-boot-starter/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,20 +21,17 @@
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-autoconfigure</artifactId>
<version>${spring.boot.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>${lombok.version}</version>
<scope>provided</scope>
</dependency>
<!-- mica-auto 自动生成 spring.factories、spring-devtools.properties 配置 -->
<dependency>
<groupId>net.dreamlu</groupId>
<artifactId>mica-auto</artifactId>
<version>${mica.auto.version}</version>
<scope>provided</scope>
</dependency>
</dependencies>
Expand Down
5 changes: 0 additions & 5 deletions starter/mica-mqtt-server-spring-boot-starter/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,34 +25,29 @@
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-autoconfigure</artifactId>
<version>${spring.boot.version}</version>
<scope>provided</scope>
</dependency>
<!-- 对接 micrometer 方便指标收集 begin -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-actuator-autoconfigure</artifactId>
<version>${spring.boot.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>io.micrometer</groupId>
<artifactId>micrometer-core</artifactId>
<version>${micrometer-core.version}</version>
<scope>provided</scope>
</dependency>
<!-- 对接 micrometer 方便指标收集 end -->
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>${lombok.version}</version>
<scope>provided</scope>
</dependency>
<!-- mica-auto 自动生成 spring.factories、spring-devtools.properties 配置 -->
<dependency>
<groupId>net.dreamlu</groupId>
<artifactId>mica-auto</artifactId>
<version>${mica.auto.version}</version>
<scope>provided</scope>
</dependency>
</dependencies>
Expand Down

0 comments on commit c98c2e0

Please sign in to comment.