From 3ad7ce3f02f5efa60f07ed82ebdd0ce4cbc09110 Mon Sep 17 00:00:00 2001 From: dgelessus <dgelessus@users.noreply.github.com> Date: Wed, 29 Jun 2022 12:55:19 +0200 Subject: [PATCH] Prepare configuring publish secrets in GitLab CI --- build.gradle | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/build.gradle b/build.gradle index 4d4fa6b..b9c229b 100644 --- a/build.gradle +++ b/build.gradle @@ -17,6 +17,14 @@ java { targetCompatibility = JavaVersion.VERSION_1_8 } +if (project.hasProperty("gradlePublishKey")) { + ext."gradle.publish.key" = project.gradlePublishKey +} + +if (project.hasProperty("gradlePublishSecret")) { + ext."gradle.publish.secret" = project.gradlePublishSecret +} + gradlePlugin { plugins { sableccPlugin { -- GitLab