Skip to content

Commit

Permalink
Organize POMs: move some repeatable stuff into parent POM
Browse files Browse the repository at this point in the history
  • Loading branch information
andrei-punko committed Nov 3, 2024
1 parent 0fdb318 commit 8b2cf03
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 76 deletions.
30 changes: 2 additions & 28 deletions crawler-engine/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,25 +11,17 @@

<artifactId>crawler-engine</artifactId>

<properties>
<maven.compiler.source>21</maven.compiler.source>
<maven.compiler.target>21</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<lombok.version>1.18.34</lombok.version>
<slf4j.version>2.0.10</slf4j.version>
<log4j-core.version>2.21.1</log4j-core.version>
</properties>

<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>1.17.2</version>
<version>${jsoup.version}</version>
</dependency>

<!-- Logging -->
Expand All @@ -44,22 +36,4 @@
<version>${slf4j.version}</version>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.13.0</version>
<configuration>
<annotationProcessorPaths>
<path>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>${lombok.version}</version>
</path>
</annotationProcessorPaths>
</configuration>
</plugin>
</plugins>
</build>
</project>
26 changes: 25 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,38 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>

<maven.compiler.source>21</maven.compiler.source>
<maven.compiler.target>21</maven.compiler.target>

<lombok.version>1.18.34</lombok.version>
<jsoup.version>1.17.2</jsoup.version>
<slf4j.version>2.0.10</slf4j.version>
<log4j-core.version>2.21.1</log4j-core.version>
</properties>

<modules>
<module>crawler-engine</module>
<module>pravtor.ru-crawler</module>
<module>rabota.by-crawler</module>
</modules>

<build>
<pluginManagement>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.13.0</version>
<configuration>
<annotationProcessorPaths>
<path>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>${lombok.version}</version>
</path>
</annotationProcessorPaths>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
</project>
26 changes: 3 additions & 23 deletions pravtor.ru-crawler/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,6 @@

<artifactId>pravtor.ru-crawler</artifactId>

<properties>
<apache-poi.version>5.2.5</apache-poi.version>
<lombok.version>1.18.30</lombok.version>
<slf4j.version>2.0.10</slf4j.version>
<log4j-core.version>2.21.1</log4j-core.version>
</properties>

<dependencies>
<dependency>
<groupId>by.andd3dfx</groupId>
Expand All @@ -27,7 +20,7 @@
<dependency>
<groupId>org.jsoup</groupId>
<artifactId>jsoup</artifactId>
<version>1.17.2</version>
<version>${jsoup.version}</version>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
Expand All @@ -43,13 +36,14 @@
<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>poi</artifactId>
<version>${apache-poi.version}</version>
<version>5.2.5</version>
</dependency>

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

<!-- Tests -->
Expand Down Expand Up @@ -122,20 +116,6 @@
</execution>
</executions>
</plugin>

<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.12.1</version>
<configuration>
<annotationProcessorPaths>
<path>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>${lombok.version}</version>
</path>
</annotationProcessorPaths>
</configuration>
</plugin>
</plugins>
</build>
</project>
25 changes: 1 addition & 24 deletions rabota.by-crawler/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,6 @@

<artifactId>rabota.by-crawler</artifactId>

<properties>
<lombok.version>1.18.30</lombok.version>
<slf4j.version>1.7.36</slf4j.version>
</properties>

<dependencies>
<dependency>
<groupId>by.andd3dfx</groupId>
Expand All @@ -30,7 +25,7 @@
<dependency>
<groupId>org.jsoup</groupId>
<artifactId>jsoup</artifactId>
<version>1.14.3</version>
<version>${jsoup.version}</version>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
Expand Down Expand Up @@ -62,22 +57,4 @@
<scope>test</scope>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.12.1</version>
<configuration>
<annotationProcessorPaths>
<path>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>${lombok.version}</version>
</path>
</annotationProcessorPaths>
</configuration>
</plugin>
</plugins>
</build>
</project>

0 comments on commit 8b2cf03

Please sign in to comment.