mirror of
https://github.com/f-droid/fdroidserver.git
synced 2026-05-10 00:34:35 -04:00
scanner: catalog: relax VERSION_CATALOG_REGEX
There may be other blocks in dependencyResolutionManagement
This commit is contained in:
@@ -73,9 +73,7 @@ GRADLE_KTS_CATALOG_FILE_REGEX = re.compile(
|
||||
GRADLE_CATALOG_FILE_REGEX = re.compile(
|
||||
r'''(\w+)\s*\{[^}]*from\(files\(['"]([^"]+)['"]\)\)'''
|
||||
)
|
||||
VERSION_CATALOG_REGEX = re.compile(
|
||||
r'dependencyResolutionManagement\s*\{[^}]*versionCatalogs\s*\{'
|
||||
)
|
||||
VERSION_CATALOG_REGEX = re.compile(r'versionCatalogs\s*\{')
|
||||
|
||||
|
||||
class ExitCode(IntEnum):
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
dependencyResolutionManagement {
|
||||
repositories {
|
||||
mavenCentral()
|
||||
}
|
||||
defaultLibrariesExtensionName = "projectLibs"
|
||||
versionCatalogs {
|
||||
create("libs") {
|
||||
|
||||
Reference in New Issue
Block a user