changed accessRulesViolation to apply to both compile and testCompile

It is not possible to have different compiler configuration for main
and test sources in m2e. For now, will have to keep the two in sync.

Signed-off-by: Igor Fedorenko <igor@ifedorenko.com>