From f1517f7abc5ea6c5225e601707d08b2b63c5257b Mon Sep 17 00:00:00 2001 From: Pyrbu Date: Wed, 26 Apr 2023 00:33:45 +0100 Subject: [PATCH] fix the build.gradle (fixes #29) --- build.gradle | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/build.gradle b/build.gradle index 34f56a6..2e59cba 100644 --- a/build.gradle +++ b/build.gradle @@ -71,6 +71,8 @@ runServer { tasks.assemble.dependsOn shadowJar tasks.compileJava.dependsOn clean +System.out.println() + publishing { publications { mavenJava(MavenPublication) { @@ -85,10 +87,10 @@ publishing { } repositories { maven { - if (DIST_USERNAME != null && DIST_PASSWORD != null) { + if (properties.containsKey("DIST_USERNAME") && properties.containsKey("DIST_PASSWORD")) { credentials { - username DIST_USERNAME - password DIST_PASSWORD + username properties.get("DIST_USERNAME") + password properties.get("DIST_PASSWORD") } } url = uri("https://repo.pyr.lol/releases/")