Use dependency resolution scope COMPILE.