From b2ef9b25e3de83f4ed7d4bf17fea70f45adba785 Mon Sep 17 00:00:00 2001 From: DmitriyMX Date: Fri, 8 Jan 2021 20:13:51 +0300 Subject: [PATCH] =?UTF-8?q?gradle:LibsPlugin:=20=D0=BE=D0=B1=D0=BD=D0=BE?= =?UTF-8?q?=D0=B2=D0=BB=D0=B5=D0=BD=D0=B8=D0=B5=20=D1=84=D0=B8=D0=BB=D1=8C?= =?UTF-8?q?=D1=82=D1=80=D0=B0=D1=86=D0=B8=D0=B8=20=D0=B7=D0=B0=D0=B2=D0=B8?= =?UTF-8?q?=D1=81=D0=B8=D0=BC=D0=BE=D1=81=D1=82=D0=B5=D0=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- buildSrc/src/main/groovy/LibsPlugin.groovy | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/buildSrc/src/main/groovy/LibsPlugin.groovy b/buildSrc/src/main/groovy/LibsPlugin.groovy index 87b3a02..99c963e 100644 --- a/buildSrc/src/main/groovy/LibsPlugin.groovy +++ b/buildSrc/src/main/groovy/LibsPlugin.groovy @@ -57,8 +57,12 @@ class LibsExtention { result[0] = library.lib result[1] = { library.exclude.each { String excludeLibStr -> - String[] excludeLib = excludeLibStr.split(':') - exclude group: excludeLib[0], module: excludeLib[1] + String[] excludeLib = excludeLibStr.split(':', 2) + if (excludeLib.length == 2) { + exclude group: excludeLib[0], module: excludeLib[1] + } else { + exclude group: excludeLib[0] + } } }