Merge pull request #486 from jedrivisser/7.1.x

GH-485: (android) Replace deprecated "compile" with "implementation"
This commit is contained in:
Darryl Pogue 2018-09-25 22:30:46 -07:00 committed by GitHub
commit 8dfddef6f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -193,7 +193,7 @@ class ProjectBuilder {
throw new CordovaError('Unsupported system library (does not work with gradle): ' + p); throw new CordovaError('Unsupported system library (does not work with gradle): ' + p);
} }
} }
depsList += ' compile "' + mavenRef + '"\n'; depsList += ' implementation "' + mavenRef + '"\n';
}); });
buildGradle = buildGradle.replace(/(SUB-PROJECT DEPENDENCIES START)[\s\S]*(\/\/ SUB-PROJECT DEPENDENCIES END)/, '$1\n' + depsList + ' $2'); buildGradle = buildGradle.replace(/(SUB-PROJECT DEPENDENCIES START)[\s\S]*(\/\/ SUB-PROJECT DEPENDENCIES END)/, '$1\n' + depsList + ' $2');