From d621e9c4f46062d92b1435f18e6857219637d342 Mon Sep 17 00:00:00 2001 From: DmitriyMX Date: Fri, 8 Jan 2021 20:07:34 +0300 Subject: [PATCH] =?UTF-8?q?gradle:=20=D0=B1=D0=B5=D0=B7=D0=BE=D0=BF=D0=B0?= =?UTF-8?q?=D1=81=D0=BD=D0=BE=D0=B5=20=D0=B8=D1=81=D0=BF=D0=BE=D0=BB=D1=8C?= =?UTF-8?q?=D0=B7=D0=BE=D0=B2=D0=B0=D0=BD=D0=B8=D0=B5=20properties?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build.gradle | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/build.gradle b/build.gradle index 259cc8c..aac6e36 100644 --- a/build.gradle +++ b/build.gradle @@ -11,8 +11,12 @@ subprojects { } project.group = projectGroup - project.version = moduleVersion - jar.archiveBaseName.set(moduleName) + if (project.hasProperty('moduleVersion')) { + project.version = project.property('moduleVersion') + } + if (project.hasProperty('moduleName')) { + jar.archiveBaseName.set(project.property('moduleName') as String) + } repositories { mavenLocal()