1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-11-20 13:50:12 +01:00

Merge branch 'scanner-debian-maven' into 'master'

Fix local Debian Maven repo handling

See merge request fdroid/fdroidserver!670
This commit is contained in:
Hans-Christoph Steiner 2019-08-29 20:59:23 +00:00
commit 13dc98795f
2 changed files with 21 additions and 1 deletions

View File

@ -110,7 +110,9 @@ def scan_source(build_dir, build=metadata.Build()):
's3.amazonaws.com/repo.commonsware.com', # CommonsWare
'plugins.gradle.org/m2', # Gradle plugin repo
'maven.google.com', # Google Maven Repo, https://developer.android.com/studio/build/dependencies.html#google-maven
'file:///usr/share/maven-repo', # local repo on Debian installs
]
] + [re.compile(r'^file://' + re.escape(repo) + r'/*') for repo in [
'/usr/share/maven-repo', # local repo on Debian installs
]
]

View File

@ -0,0 +1,18 @@
buildscript {
repositories {
maven { url 'file:///usr/share/maven-repo' }
maven { url 'https://maven.google.com' }
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.2.2'
}
}
allprojects {
repositories {
maven { url 'file:///usr/share/maven-repo' }
maven { url 'https://maven.google.com' }
jcenter()
}
}