This is an automated email from the ASF dual-hosted git repository.
chia7712 pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/kafka.git
The following commit(s) were added to refs/heads/trunk by this push:
new f1d65496799 KAFKA-17706 Allow all imports for test-common and
test-common-api (#17378)
f1d65496799 is described below
commit f1d65496799d5eb99179c345385a0ecba4e64b89
Author: Chia-Ping Tsai <[email protected]>
AuthorDate: Sun Oct 6 14:02:10 2024 +0800
KAFKA-17706 Allow all imports for test-common and test-common-api (#17378)
Reviewers: David Arthur <[email protected]>
---
build.gradle | 4 ++--
checkstyle/import-control-test-common-api.xml | 26 ++++++++++++++++++++++++++
checkstyle/import-control-test-common.xml | 26 ++++++++++++++++++++++++++
3 files changed, 54 insertions(+), 2 deletions(-)
diff --git a/build.gradle b/build.gradle
index 5a864ca43c2..ce47cc538d6 100644
--- a/build.gradle
+++ b/build.gradle
@@ -1560,7 +1560,7 @@ project(':test-common') {
}
checkstyle {
- sourceSets = []
+ configProperties =
checkstyleConfigProperties("import-control-test-common.xml")
}
javadoc {
@@ -1603,7 +1603,7 @@ project(':test-common:test-common-api') {
}
checkstyle {
- sourceSets = []
+ configProperties =
checkstyleConfigProperties("import-control-test-common-api.xml")
}
javadoc {
diff --git a/checkstyle/import-control-test-common-api.xml
b/checkstyle/import-control-test-common-api.xml
new file mode 100644
index 00000000000..7331cc2d35e
--- /dev/null
+++ b/checkstyle/import-control-test-common-api.xml
@@ -0,0 +1,26 @@
+<!DOCTYPE import-control PUBLIC
+ "-//Puppy Crawl//DTD Import Control 1.1//EN"
+ "http://www.puppycrawl.com/dtds/import_control_1_1.dtd">
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<import-control pkg="org.apache.kafka">
+ <allow pkg="java" />
+ <allow pkg="org" />
+ <allow pkg="kafka" />
+ <allow pkg="scala" />
+</import-control>
diff --git a/checkstyle/import-control-test-common.xml
b/checkstyle/import-control-test-common.xml
new file mode 100644
index 00000000000..015aed73fc7
--- /dev/null
+++ b/checkstyle/import-control-test-common.xml
@@ -0,0 +1,26 @@
+<!DOCTYPE import-control PUBLIC
+ "-//Puppy Crawl//DTD Import Control 1.1//EN"
+ "http://www.puppycrawl.com/dtds/import_control_1_1.dtd">
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<import-control pkg="org.apache.kafka">
+
+ <allow pkg="java" />
+ <allow pkg="org" />
+ <allow pkg="kafka" />
+</import-control>