Remove version from license file name for GCS SDK (#31221)

Most of our license file names strip the version off the artifact name
when deducing the license filename. However, the version on the GCS SDK
(google-api-services-storage) does not match the usual format and
instead starts with a vee. This means that the license filename for this
license ended up carrying the version and we should not do that. This
commit adjusts the regex the deduces the license filename to account for
this case, and adjusts the google-api-services-storage license files
accordingly.
This commit is contained in:
Jason Tedor 2018-06-08 21:19:16 -04:00 committed by GitHub
parent bdb0fb2555
commit 3db1fe7afe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 1 additions and 1 deletions

View File

@ -151,7 +151,7 @@ public class DependencyLicensesTask extends DefaultTask {
for (File dependency : dependencies) { for (File dependency : dependencies) {
String jarName = dependency.getName() String jarName = dependency.getName()
String depName = jarName - ~/\-\d+.*/ String depName = jarName - ~/\-v?\d+.*/
if (ignoreShas.contains(depName)) { if (ignoreShas.contains(depName)) {
// local deps should not have sha files! // local deps should not have sha files!
if (getShaFile(jarName).exists()) { if (getShaFile(jarName).exists()) {