0

gradle:LibsPlugin: обновление фильтрации зависимостей

This commit is contained in:
2021-01-08 20:13:51 +03:00
parent d602296032
commit b2ef9b25e3

View File

@@ -57,8 +57,12 @@ class LibsExtention {
result[0] = library.lib result[0] = library.lib
result[1] = { result[1] = {
library.exclude.each { String excludeLibStr -> library.exclude.each { String excludeLibStr ->
String[] excludeLib = excludeLibStr.split(':') String[] excludeLib = excludeLibStr.split(':', 2)
exclude group: excludeLib[0], module: excludeLib[1] if (excludeLib.length == 2) {
exclude group: excludeLib[0], module: excludeLib[1]
} else {
exclude group: excludeLib[0]
}
} }
} }