Upgrade to Gradle 7.0 (#1712)

* Convert to gradle 7.

* More fixes, regenerated lockfiles.

* Update lockfiles for dependency update.

* Fix show_upgrade_diff for new lockfile format

* Add property for allowInsecureProtocol

Allow us to override the restriction against use of plain HTTP for
communication to dependency repositories.  We need this to be able to use a
local proxy for dependency gathering.

* Checking in missing gradle.lockfile
This commit is contained in:
Michael Muller 2022-07-26 11:41:27 -04:00 committed by GitHub
parent 68f975451e
commit 06ca9266b4
349 changed files with 3999 additions and 26646 deletions

View file

@ -58,7 +58,10 @@ def parse_lockfile(filename: str) -> PackageMap:
if line.startswith(b'#'):
continue
line = line.rstrip()
package = cast(Tuple[bytes, bytes, bytes], tuple(line.split(b':')))
package = line.split(b'=')[0]
if package == 'empty':
continue
package = cast(Tuple[bytes, bytes, bytes], tuple(package.split(b':')))
result.setdefault(package[:-1], set()).add(package[-1])
return result