Add maven-publish plugin
This commit is contained in:
parent
4ff2237c2a
commit
e568eec906
|
|
@ -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<JavaLibraryPlugin>()
|
||||
apply(plugin = "maven-publish")
|
||||
|
||||
java {
|
||||
toolchain {
|
||||
|
|
@ -46,6 +48,23 @@ tasks {
|
|||
}
|
||||
}
|
||||
|
||||
publishing {
|
||||
publications {
|
||||
create<MavenPublication>("mavenJava") {
|
||||
from(components["java"])
|
||||
}
|
||||
}
|
||||
|
||||
configure<PublishingExtension> {
|
||||
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")
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user