From 620b39b22d609d074d32764ce9904101d0318a3e Mon Sep 17 00:00:00 2001 From: Pyrbu Date: Mon, 24 Apr 2023 19:11:52 +0100 Subject: [PATCH] fix publishing for users with no credentials --- build.gradle | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/build.gradle b/build.gradle index 8940ca6..34f56a6 100644 --- a/build.gradle +++ b/build.gradle @@ -85,9 +85,11 @@ publishing { } repositories { maven { - credentials { - username DIST_USERNAME - password DIST_PASSWORD + if (DIST_USERNAME != null && DIST_PASSWORD != null) { + credentials { + username DIST_USERNAME + password DIST_PASSWORD + } } url = uri("https://repo.pyr.lol/releases/") }