Skip to content

Commit

Permalink
Organize dependencies: add dependencyManagement to root pom, reorder …
Browse files Browse the repository at this point in the history
…them etc
  • Loading branch information
andrei-punko committed Dec 5, 2024
1 parent 1e1f139 commit a1e35aa
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 21 deletions.
2 changes: 0 additions & 2 deletions crawler-engine/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,11 @@
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>${lombok.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.jsoup</groupId>
<artifactId>jsoup</artifactId>
<version>${jsoup.version}</version>
</dependency>

<!-- Logging -->
Expand Down
21 changes: 21 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,27 @@
<module>rabota.by-crawler</module>
</modules>

<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>${lombok.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.jsoup</groupId>
<artifactId>jsoup</artifactId>
<version>${jsoup.version}</version>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
<version>3.17.0</version>
</dependency>
</dependencies>
</dependencyManagement>

<build>
<pluginManagement>
<plugins>
Expand Down
17 changes: 6 additions & 11 deletions pravtor.ru-crawler/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,23 @@
<artifactId>crawler-engine</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.jsoup</groupId>
<artifactId>jsoup</artifactId>
<version>${jsoup.version}</version>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
<version>3.14.0</version>
</dependency>
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>2.15.1</version>
<version>2.16.1</version>
</dependency>

<dependency>
Expand All @@ -39,13 +42,6 @@
<version>5.2.5</version>
</dependency>

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

<!-- Tests -->
<dependency>
<groupId>org.dbunit</groupId>
Expand Down Expand Up @@ -89,7 +85,6 @@
<!-- Pack dependent libs into fat jar -->
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<version>3.6.0</version>
<configuration>
<!-- get all project dependencies -->
<descriptorRefs>
Expand Down
12 changes: 4 additions & 8 deletions rabota.by-crawler/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,21 +22,18 @@
<artifactId>jackson-databind</artifactId>
<version>2.13.2.2</version>
</dependency>
<dependency>
<groupId>org.jsoup</groupId>
<artifactId>jsoup</artifactId>
<version>${jsoup.version}</version>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>${lombok.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.jsoup</groupId>
<artifactId>jsoup</artifactId>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
<version>3.17.0</version>
</dependency>

<!-- Logging -->
Expand Down Expand Up @@ -76,7 +73,6 @@
<!-- Pack dependent libs into fat jar -->
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<version>3.6.0</version>
<configuration>
<!-- get all project dependencies -->
<descriptorRefs>
Expand Down

0 comments on commit a1e35aa

Please sign in to comment.