From e568eec906d574fcb0af73c083d6853eeb0554a2 Mon Sep 17 00:00:00 2001 From: Len <40720638+destro174@users.noreply.github.com> Date: Sun, 11 Sep 2022 10:57:29 +0200 Subject: [PATCH] Add maven-publish plugin --- build.gradle.kts | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/build.gradle.kts b/build.gradle.kts index 8f6fd7b..9977564 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -5,9 +5,10 @@ import net.minecrell.pluginyml.bukkit.BukkitPluginDescription plugins { id("java") + id("java-library") id("net.minecrell.plugin-yml.bukkit") version "0.5.1" -// id("com.github.johnrengelman.shadow") version "7.1.0" id("xyz.jpenilla.run-paper") version "1.0.6" + id("maven-publish") } group = "com.alttd.playershops" @@ -15,6 +16,7 @@ version = System.getenv("BUILD_NUMBER") ?: "1.0-SNAPSHOT" description = "Player Shop plugin for Altitude." apply() +apply(plugin = "maven-publish") java { toolchain { @@ -46,6 +48,23 @@ tasks { } } +publishing { + publications { + create("mavenJava") { + from(components["java"]) + } + } + + configure { + repositories { + maven { + name = "maven" + url = uri("https://repo.destro.xyz/snapshots/") + credentials(PasswordCredentials::class) + } + } + } +} dependencies { compileOnly("com.alttd:Galaxy-API:1.19.2-R0.1-SNAPSHOT")