From 24f9c05e1409c98b7e66761b1767800d3276fe67 Mon Sep 17 00:00:00 2001 From: Zaxar163 Date: Tue, 13 Aug 2019 15:31:35 +0300 Subject: [PATCH] =?UTF-8?q?[FIX]=20=D0=9D=D0=BE=D1=80=D0=BC=D0=B0=D0=BB?= =?UTF-8?q?=D1=8C=D0=BD=D1=8B=D0=B9,=20=D0=BA=D0=BE=D0=BD=D1=84=D0=B8?= =?UTF-8?q?=D0=B3=D1=83=D1=80=D0=B0=D0=B1=D0=B5=D0=BB=D1=8C=D0=BD=D1=8B?= =?UTF-8?q?=D0=B9=20=D1=84=D0=B8=D0=BA=D1=81=20maven-publish.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../auth/provider/PostgreSQLAuthProvider.java | 2 +- build.gradle | 19 +++++++++---------- 2 files changed, 10 insertions(+), 11 deletions(-) diff --git a/LaunchServer/src/main/java/pro/gravit/launchserver/auth/provider/PostgreSQLAuthProvider.java b/LaunchServer/src/main/java/pro/gravit/launchserver/auth/provider/PostgreSQLAuthProvider.java index a20a2173..75e81df4 100644 --- a/LaunchServer/src/main/java/pro/gravit/launchserver/auth/provider/PostgreSQLAuthProvider.java +++ b/LaunchServer/src/main/java/pro/gravit/launchserver/auth/provider/PostgreSQLAuthProvider.java @@ -37,6 +37,6 @@ public AuthProviderResult auth(String login, String password, String ip) throws @Override public void close() { - // Do nothing + postgreSQLHolder.close(); } } \ No newline at end of file diff --git a/build.gradle b/build.gradle index 46e04aac..8cd414d3 100644 --- a/build.gradle +++ b/build.gradle @@ -42,16 +42,15 @@ } defaultTasks 'build' - -if (hasProperty('mavenUsername') && hasProperty('mavenPassword')) -publishing { - repositories { - maven { - // change URLs to point to your repos, e.g. http://my.org/repo - url = version.endsWith('SNAPSHOT') ? 'https://oss.sonatype.org/content/repositories/snapshots/' : 'https://oss.sonatype.org/service/local/staging/deploy/maven2/' - credentials { - username getProperty('mavenUsername') - password getProperty('mavenPassword') +if (hasProperty('mavenUsername') && hasProperty('mavenPassword') && hasProperty('mavenReleaseRepository') && hasProperty('mavenSnapshotRepository')) { + publishing { + repositories { + maven { + url = version.endsWith('SNAPSHOT') ? getProperty('mavenSnapshotRepository') : getProperty('mavenReleaseRepository') + credentials { + username getProperty('mavenUsername') + password getProperty('mavenPassword') + } } } }