To solve the issues regarding: Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'.