Skip to content

Commit

Permalink
Forbid imports of shaded Guava and OkHttp classes
Browse files Browse the repository at this point in the history
  • Loading branch information
findepi committed Aug 8, 2020
1 parent 8de1efe commit d388f8a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
Airbase 103

* Checkstyle updates:
- Forbid imports of shaded Guava and OkHttp classes.

Airbase 102

* Add dependencies:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,10 @@

<module name="IllegalImport">
<property name="illegalPkgs" value=".*\.\$internal" />
<!-- Shaded Guava -->
<property name="illegalPkgs" value=".*\.com\.google\.common" />
<!-- Shaded okhttp3; match "shaded", since "com.example.okhttp3" could be OK HTTP-specific code within com.example -->
<property name="illegalPkgs" value=".*\.shaded\.okhttp3" />
<property name="regexp" value="true" />
</module>
</module>
Expand Down

0 comments on commit d388f8a

Please sign in to comment.