You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by ai...@apache.org on 2022/01/31 09:01:09 UTC
[flink] 01/06: [FLINK-25220][test] update flink pom for ArchUnit test infra
This is an automated email from the ASF dual-hosted git repository.
airblader pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/flink.git
commit c132595205130622352821bb95c77399d54ba2e0
Author: Jing Ge <ge...@gmail.com>
AuthorDate: Thu Jan 20 21:08:49 2022 +0100
[FLINK-25220][test] update flink pom for ArchUnit test infra
- define some ArchUnit dependencies in the dependencyManagement
- exclude archunit-violations stores from the license check
---
pom.xml | 35 ++++++++++++++++++++++++++++++++++-
1 file changed, 34 insertions(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index f41649d..44eef02 100644
--- a/pom.xml
+++ b/pom.xml
@@ -129,6 +129,7 @@ under the License.
<jaxb.api.version>2.3.1</jaxb.api.version>
<junit4.version>4.13.2</junit4.version>
<junit5.version>5.8.1</junit5.version>
+ <archunit.version>0.22.0</archunit.version>
<mockito.version>2.21.0</mockito.version>
<powermock.version>2.0.9</powermock.version>
<hamcrest.version>1.3</hamcrest.version>
@@ -784,6 +785,21 @@ under the License.
<scope>test</scope>
</dependency>
+
+ <dependency>
+ <groupId>org.apache.flink</groupId>
+ <artifactId>flink-architecture-tests-base</artifactId>
+ <version>${project.version}</version>
+ <scope>test</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.flink</groupId>
+ <artifactId>flink-architecture-tests-test</artifactId>
+ <version>${project.version}</version>
+ <scope>test</scope>
+ </dependency>
+
<dependency>
<!-- log4j2 has an optional dependency on disruptor which may affect other dependencies (like hive)
pin the version here to make this behavior explicit -->
@@ -811,6 +827,21 @@ under the License.
<type>pom</type>
<scope>import</scope>
</dependency>
+
+ <dependency>
+ <groupId>com.tngtech.archunit</groupId>
+ <artifactId>archunit</artifactId>
+ <version>${archunit.version}</version>
+ <scope>test</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>com.tngtech.archunit</groupId>
+ <artifactId>archunit-junit5</artifactId>
+ <version>${archunit.version}</version>
+ <scope>test</scope>
+ </dependency>
+
</dependencies>
</dependencyManagement>
@@ -1456,7 +1487,9 @@ under the License.
<exclude>flink-connectors/flink-connector-aws-kinesis-data-streams/src/test/resources/profile</exclude>
<exclude>flink-table/flink-table-code-splitter/src/test/resources/**</exclude>
<exclude>flink-connectors/flink-connector-pulsar/src/test/resources/**</exclude>
- <exclude>flink-architecture-tests/violations/**</exclude>
+
+ <!-- ArchUnit violation stores -->
+ <exclude>**/archunit-violations/**</exclude>
<!-- snapshots -->
<exclude>**/src/test/resources/serializer-snapshot-*</exclude>