From 89549ef12f8bc00fe33ebecdbd08fe8aa4e92920 Mon Sep 17 00:00:00 2001 From: destro174 <40720638+destro174@users.noreply.github.com> Date: Wed, 22 Sep 2021 20:30:05 +0200 Subject: [PATCH] add publishing plugin to gradle --- build.gradle.kts | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/build.gradle.kts b/build.gradle.kts index 7007c85..f7cd394 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -1,5 +1,6 @@ plugins { java + `maven-publish` id("com.github.johnrengelman.shadow") version "7.0.0" } @@ -51,6 +52,23 @@ dependencies { compileOnly("com.alttd:ShutdownInfo:1.0") } +publishing { + publications { + create("mavenJava") { + from(components["java"]) + } + } + + repositories{ + maven { + name = "maven" + url = uri("http://leo:8081/") + isAllowInsecureProtocol = true + credentials(PasswordCredentials::class) + } + } +} + tasks { shadowJar {