Add http proxy for artifact verification, remove gradle-witness

This commit is contained in:
Jonas Herzig
2017-08-28 16:23:29 +02:00
parent 25823e1081
commit c44de2b22a
12 changed files with 23 additions and 458 deletions

View File

@@ -1,4 +1,16 @@
def convertRepoToHttp = { repo ->
if (repo instanceof MavenArtifactRepository && repo.url.toString().startsWith('https://')) {
URL url = repo.url.toURL()
repo.url = new URL("http", url.getHost(), url.getPort(), url.getFile()).toURI()
}
}
allprojects {
buildscript {
repositories.all convertRepoToHttp
}
repositories.all convertRepoToHttp
tasks.withType(AbstractArchiveTask) {
preserveFileTimestamps = false
reproducibleFileOrder = true