[improvement] Ban internal palantir packages
<message key="import.illegal" value="Must not import repackaged classes."/>
</module>
<module name="IllegalImport">
+ <property name="id" value="BanGradleInternal"/>
<property name="illegalPkgs" value="^org\.gradle\.(internal|.*\.internal)"/>
<property name="regexp" value="true" />
<message key="import.illegal" value="Do not rely on gradle internal classes as these may change in minor releases - use org.gradle.api versions instead."/>
</module>
+ <module name="IllegalImport">
+ <property name="id" value="BanPalantirInternal"/>
+ <property name="illegalPkgs" value="^com\.palantir\.(internal|.*\.internal)"/>
+ <property name="regexp" value="true" />
+ <message key="import.illegal" value="Do not rely on internal classes as these may change in minor releases."/>
+ </module>
<module name="IllegalImport">
<property name="illegalPkgs" value="sun"/>
<message key="import.illegal" value="Must not use Oracle's Java implementation details. See http://www.oracle.com/technetwork/java/faq-sun-packages-142232.html ."/>
