Skip to content

Commit

Permalink
chore(bom): try to add bom module
Browse files Browse the repository at this point in the history
  • Loading branch information
Alice52 committed Mar 6, 2023
1 parent 8caa7ad commit 02ce33e
Show file tree
Hide file tree
Showing 19 changed files with 789 additions and 496 deletions.
12 changes: 12 additions & 0 deletions common-actuator/pom.xml
Expand Up @@ -16,6 +16,18 @@
<module>common-actuator-client</module>
</modules>

<dependencyManagement>
<dependencies>
<dependency>
<groupId>io.github.alice52</groupId>
<artifactId>common-api-bom</artifactId>
<version>${project.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>

<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
Expand Down
372 changes: 372 additions & 0 deletions common-api-bom/pom.xml

Large diffs are not rendered by default.

52 changes: 5 additions & 47 deletions common-api-inject/pom.xml
Expand Up @@ -19,6 +19,11 @@
<version>${project.version}</version>
</dependency>
-->
<dependency>
<groupId>io.github.alice52</groupId>
<artifactId>common-apis</artifactId>
<version>${project.version}</version>
</dependency>

<dependency>
<groupId>io.github.alice52</groupId>
Expand Down Expand Up @@ -77,52 +82,5 @@
<artifactId>common-crypt</artifactId>
<version>${project.version}</version>
</dependency>

<!-- tool -->
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
</dependency>
<dependency>
<groupId>org.mapstruct</groupId>
<artifactId>mapstruct</artifactId>
</dependency>

<!-- spring & web -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
<exclusions>
<exclusion>
<artifactId>spring-boot-starter-tomcat</artifactId>
<groupId>org.springframework.boot</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-undertow</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>

<!-- test -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
</project>
161 changes: 161 additions & 0 deletions common-apis/pom.xml
@@ -0,0 +1,161 @@
<?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">
<parent>
<artifactId>common-api</artifactId>
<groupId>io.github.alice52</groupId>
<version>0.0.1</version>
</parent>
<modelVersion>4.0.0</modelVersion>

<artifactId>common-apis</artifactId>

<dependencyManagement>
<dependencies>
<dependency>
<groupId>io.github.alice52</groupId>
<artifactId>common-api-bom</artifactId>
<version>${project.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>

<dependencies>
<!-- jackson -->
<dependency>
<groupId>com.fasterxml.jackson.module</groupId>
<artifactId>jackson-module-parameter-names</artifactId>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.datatype</groupId>
<artifactId>jackson-datatype-jdk8</artifactId>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.datatype</groupId>
<artifactId>jackson-datatype-jsr310</artifactId>
</dependency>

<!-- tool -->
<dependency>
<groupId>cn.hutool</groupId>
<artifactId>hutool-all</artifactId>
</dependency>
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
</dependency>
<dependency>
<groupId>org.mapstruct</groupId>
<artifactId>mapstruct</artifactId>
</dependency>
<dependency>
<groupId>com.github.ulisesbocchio</groupId>
<artifactId>jasypt-spring-boot-starter</artifactId>
</dependency>

<!-- lombok -->
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
</dependency>

<!-- logger -->
<dependency>
<artifactId>slf4j-api</artifactId>
<groupId>org.slf4j</groupId>
</dependency>
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-core</artifactId>
</dependency>
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
</dependency>

<!-- spring -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-configuration-processor</artifactId>
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-webmvc</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-validation</artifactId>
</dependency>

<!-- validator -->
<dependency>
<groupId>jakarta.validation</groupId>
<artifactId>jakarta.validation-api</artifactId>
</dependency>

<!-- aop -->
<dependency>
<groupId>org.aspectj</groupId>
<artifactId>aspectjrt</artifactId>
</dependency>
<dependency>
<groupId>org.aspectj</groupId>
<artifactId>aspectjweaver</artifactId>
</dependency>

<!-- tool -->
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
</dependency>
<dependency>
<groupId>org.mapstruct</groupId>
<artifactId>mapstruct</artifactId>
</dependency>

<!-- spring & web -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
<exclusions>
<exclusion>
<artifactId>spring-boot-starter-tomcat</artifactId>
<groupId>org.springframework.boot</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-undertow</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>

<!-- test -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-test</artifactId>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-test</artifactId>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
</dependency>
</dependencies>
</project>
18 changes: 18 additions & 0 deletions common-core/pom.xml
Expand Up @@ -11,7 +11,25 @@

<artifactId>common-core</artifactId>

<dependencyManagement>
<dependencies>
<dependency>
<groupId>io.github.alice52</groupId>
<artifactId>common-api-bom</artifactId>
<version>${project.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>

<dependencies>
<dependency>
<groupId>io.github.alice52</groupId>
<artifactId>common-apis</artifactId>
<version>${project.version}</version>
</dependency>

<dependency>
<groupId>jakarta.servlet</groupId>
<artifactId>jakarta.servlet-api</artifactId>
Expand Down
18 changes: 18 additions & 0 deletions common-crypt/pom.xml
Expand Up @@ -11,7 +11,25 @@

<artifactId>common-crypt</artifactId>

<dependencyManagement>
<dependencies>
<dependency>
<groupId>io.github.alice52</groupId>
<artifactId>common-api-bom</artifactId>
<version>${project.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>

<dependencies>
<dependency>
<groupId>io.github.alice52</groupId>
<artifactId>common-apis</artifactId>
<version>${project.version}</version>
</dependency>

<dependency>
<groupId>io.github.alice52</groupId>
<artifactId>common-core</artifactId>
Expand Down
18 changes: 18 additions & 0 deletions common-database/pom.xml
Expand Up @@ -18,7 +18,25 @@
<module>database-common</module>
</modules>

<dependencyManagement>
<dependencies>
<dependency>
<groupId>io.github.alice52</groupId>
<artifactId>common-api-bom</artifactId>
<version>${project.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>

<dependencies>
<dependency>
<groupId>io.github.alice52</groupId>
<artifactId>common-apis</artifactId>
<version>${project.version}</version>
</dependency>

<!-- database -->
<dependency>
<groupId>mysql</groupId>
Expand Down
18 changes: 18 additions & 0 deletions common-http/pom.xml
Expand Up @@ -11,7 +11,25 @@

<artifactId>common-http</artifactId>

<dependencyManagement>
<dependencies>
<dependency>
<groupId>io.github.alice52</groupId>
<artifactId>common-api-bom</artifactId>
<version>${project.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>

<dependencies>
<dependency>
<groupId>io.github.alice52</groupId>
<artifactId>common-apis</artifactId>
<version>${project.version}</version>
</dependency>

<dependency>
<groupId>com.squareup.okhttp3</groupId>
<artifactId>okhttp</artifactId>
Expand Down
18 changes: 18 additions & 0 deletions common-log/pom.xml
Expand Up @@ -11,7 +11,25 @@

<artifactId>common-log</artifactId>

<dependencyManagement>
<dependencies>
<dependency>
<groupId>io.github.alice52</groupId>
<artifactId>common-api-bom</artifactId>
<version>${project.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>

<dependencies>
<dependency>
<groupId>io.github.alice52</groupId>
<artifactId>common-apis</artifactId>
<version>${project.version}</version>
</dependency>

<dependency>
<groupId>org.codehaus.janino</groupId>
<artifactId>janino</artifactId>
Expand Down

0 comments on commit 02ce33e

Please sign in to comment.