Exclude example package from gradle build. Remove deprecation warning related to unit tests. Fix build configuration.