Have defined better the dependencies for 'library', using new gradle options: 'api' and 'implementation'