mirror of https://github.com/apache/kafka.git
KAFKA-18658 add import control for examples module (#18812)
Reviewers: Chia-Ping Tsai <chia7712@gmail.com>
This commit is contained in:
parent
da21b536c4
commit
a6972db660
|
@ -1800,7 +1800,7 @@ project(':examples') {
|
||||||
}
|
}
|
||||||
|
|
||||||
checkstyle {
|
checkstyle {
|
||||||
configProperties = checkstyleConfigProperties("import-control-core.xml")
|
configProperties = checkstyleConfigProperties("import-control-examples.xml")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,42 @@
|
||||||
|
<!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="kafka.examples">
|
||||||
|
|
||||||
|
<!-- common library dependencies -->
|
||||||
|
<allow pkg="java" />
|
||||||
|
<allow pkg="scala" />
|
||||||
|
<allow pkg="javax.management" />
|
||||||
|
<allow pkg="org.slf4j" />
|
||||||
|
<allow pkg="org.junit" />
|
||||||
|
<allow pkg="java.security" />
|
||||||
|
<allow pkg="javax.net.ssl" />
|
||||||
|
<allow pkg="javax.security" />
|
||||||
|
|
||||||
|
<!-- public API-->
|
||||||
|
<allow pkg="org.apache.kafka.clients.consumer" />
|
||||||
|
<allow pkg="org.apache.kafka.clients.producer" />
|
||||||
|
<allow pkg="org.apache.kafka.clients.admin" />
|
||||||
|
<allow pkg="org.apache.kafka.common" />
|
||||||
|
<allow pkg="org.apache.kafka.common.errors" />
|
||||||
|
<allow pkg="org.apache.kafka.common.serialization" />
|
||||||
|
|
||||||
|
|
||||||
|
</import-control>
|
Loading…
Reference in New Issue