Class not found error when running sonar runner

I am getting class not found error and class not accessible through class loader error when running the sonarrunner from gradle. These classes are include as dependecies in compile time in gradle and gradle build works fine. How to include these classes for sonar ?

ERROR - Class not found: javax.annotation.Nonnull
09:12:53.675 ERROR - Class not found: javax.annotation.CheckForNull
09:12:53.676 ERROR - Class not found: com.lim.dw.dao.base.bean.WarehouseFeed

09:12:56.164 WARN  - Class 'com/lim/dw/dao/util/EMFUtil' is not accessible through the ClassLoader.
09:12:56.164 WARN  - Class 'com/lim/dw/dao/util/EMFUtil' is not accessible through the ClassLoader.
09:12:56.164 WARN  - Class 'com/lim/dw/dao/util/EMFUtil' is not accessible through the ClassLoader.
09:12:56.164 WARN  - Class 'com/lim/dw/dao/util/EMFUtil' is not accessible through the ClassLoader.