summaryrefslogtreecommitdiff
path: root/pom.xml
diff options
context:
space:
mode:
authorchaoc <[email protected]>2023-08-03 15:57:20 +0800
committerchaoc <[email protected]>2023-08-03 15:57:20 +0800
commitd4bc2787d43887c565024e29068365a892bec668 (patch)
tree9be506eaaa07a82bf02013f8a6512ee5b9df0947 /pom.xml
parent53eca341917fad4fa1fc305b76b012b3d8719639 (diff)
chore: add test deps and some plugins
Diffstat (limited to 'pom.xml')
-rw-r--r--pom.xml98
1 files changed, 52 insertions, 46 deletions
diff --git a/pom.xml b/pom.xml
index 39f8f00..71d7fe9 100644
--- a/pom.xml
+++ b/pom.xml
@@ -22,7 +22,6 @@
<slf4j.version>1.7.32</slf4j.version>
<log4j.version>2.17.1</log4j.version>
<jackson.version>2.13.2.20220328</jackson.version>
- <scalatest.version>3.2.15</scalatest.version>
</properties>
<dependencies>
@@ -57,11 +56,6 @@
</dependency>
<dependency>
- <groupId>org.scalatest</groupId>
- <artifactId>scalatest_${scala.binary.version}</artifactId>
- <scope>test</scope>
- </dependency>
- <dependency>
<groupId>com.github.javafaker</groupId>
<artifactId>javafaker</artifactId>
<scope>test</scope>
@@ -85,6 +79,11 @@
<scope>test</scope>
<classifier>tests</classifier>
</dependency>
+ <dependency>
+ <groupId>org.junit.jupiter</groupId>
+ <artifactId>junit-jupiter</artifactId>
+ <scope>test</scope>
+ </dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
@@ -138,37 +137,10 @@
</dependency>
<dependency>
- <groupId>org.scala-lang</groupId>
- <artifactId>scala-library</artifactId>
- <version>${scala.version}</version>
- </dependency>
- <dependency>
- <groupId>org.scala-lang</groupId>
- <artifactId>scala-reflect</artifactId>
- <version>${scala.version}</version>
- </dependency>
- <dependency>
- <groupId>org.scala-lang</groupId>
- <artifactId>scala-compiler</artifactId>
- <version>${scala.version}</version>
- </dependency>
- <dependency>
- <groupId>org.scalatest</groupId>
- <artifactId>scalatest_${scala.binary.version}</artifactId>
- <version>${scalatest.version}</version>
- </dependency>
- <dependency>
<groupId>com.github.javafaker</groupId>
<artifactId>javafaker</artifactId>
<version>1.0.2</version>
</dependency>
- <dependency>
- <groupId>com.fasterxml.jackson</groupId>
- <artifactId>jackson-bom</artifactId>
- <type>pom</type>
- <scope>import</scope>
- <version>${jackson.version}</version>
- </dependency>
<dependency>
<groupId>com.zdjizhi</groupId>
@@ -181,6 +153,13 @@
</exclusion>
</exclusions>
</dependency>
+
+ <dependency>
+ <groupId>org.junit.jupiter</groupId>
+ <artifactId>junit-jupiter</artifactId>
+ <version>5.8.0</version>
+ <scope>test</scope>
+ </dependency>
</dependencies>
</dependencyManagement>
@@ -197,29 +176,35 @@
</plugin>
<plugin>
- <groupId>net.alchim31.maven</groupId>
- <artifactId>scala-maven-plugin</artifactId>
- <version>3.2.2</version>
+ <groupId>org.jacoco</groupId>
+ <artifactId>jacoco-maven-plugin</artifactId>
<executions>
<execution>
- <id>scala-compile</id>
- <phase>compile</phase>
+ <id>pre-unit-test</id>
<goals>
- <goal>add-source</goal>
- <goal>compile</goal>
+ <goal>prepare-agent</goal>
</goals>
+ <configuration>
+ <destFile>${project.build.directory}/jacoco.exec</destFile>
+ </configuration>
</execution>
<execution>
- <id>scala-test-compile</id>
+ <id>test-report</id>
+ <phase>verify</phase>
<goals>
- <goal>testCompile</goal>
+ <goal>report</goal>
</goals>
+ <configuration>
+ <dataFile>${project.build.directory}/jacoco.exec</dataFile>
+ <outputDirectory>${project.reporting.outputDirectory}/jacoco</outputDirectory>
+ </configuration>
</execution>
</executions>
- <configuration>
- <scalaVersion>${scala.version}</scalaVersion>
- <scalaCompatVersion>${scala.binary.version}</scalaCompatVersion>
- </configuration>
+ </plugin>
+
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-source-plugin</artifactId>
</plugin>
<plugin>
@@ -233,6 +218,7 @@
<goal>shade</goal>
</goals>
<configuration>
+ <createDependencyReducedPom>false</createDependencyReducedPom>
<artifactSet>
<excludes>
<exclude>org.apache.flink:force-shading</exclude>
@@ -258,5 +244,25 @@
</executions>
</plugin>
</plugins>
+
+ <pluginManagement>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-source-plugin</artifactId>
+ <version>3.2.1</version>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <version>3.0.0-M5</version>
+ </plugin>
+ <plugin>
+ <groupId>org.jacoco</groupId>
+ <artifactId>jacoco-maven-plugin</artifactId>
+ <version>0.8.7</version>
+ </plugin>
+ </plugins>
+ </pluginManagement>
</build>
</project> \ No newline at end of file