Skip to content

Commit

Permalink
Configure API for nexus publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
ComputerNerd100 committed May 4, 2022
1 parent f5f852c commit ae292c4
Showing 1 changed file with 72 additions and 0 deletions.
72 changes: 72 additions & 0 deletions slimeworldmanager-api/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,10 +1,82 @@
plugins {
`java-library`
`maven-publish`
signing
}

dependencies {
implementation("com.flowpowered:flow-nbt:2.0.2")
compileOnly("io.papermc.paper:paper-api:1.17.1-R0.1-SNAPSHOT")
}

java {
withSourcesJar()
withJavadocJar()
}

publishing {
publications {
create<MavenPublication>("maven") {
groupId = "${project.group}"
artifactId = project.name
version = "${project.version}"

from(components["java"])

pom {
name.set("Advanced Slime World Manager API")
description.set("API for ASWM")
url.set("https://github.com/Paul19988/Advanced-Slime-World-Manager")
licenses {
license {
name.set("GNU General Public License, Version 3.0")
url.set("https://www.gnu.org/licenses/gpl-3.0.txt")
}
}
developers {
developer {
id.set("InfernalSuite")
name.set("The InfernalSuite Team")
url.set("https://github.com/InfernalSuite")
email.set("[email protected]")
}
}
scm {
connection.set("scm:git:https://github.com/Paul19988/Advanced-Slime-World-Manager.git")
developerConnection.set("scm:git:ssh://github.com/Paul19988/Advanced-Slime-World-Manager.git")
url.set("https://github.com/Paul19988/Advanced-Slime-World-Manager/")
}
issueManagement {
system.set("Github")
url.set("https://github.com/Paul19988/Advanced-Slime-World-Manager/issues")
}
}

versionMapping {
usage("java-api") {
fromResolutionOf("runtimeClasspath")
}
usage("java-runtime") {
fromResolutionResult()
}
}
}
}
repositories {
maven {
name = "rapture"
url = uri("https://repo.rapture.pw/repository/maven-snapshots/")
credentials {
username = project.property("raptureUsername") as String?
password = project.property("rapturePassword") as String?
}
}
}
}

signing {
useGpgCmd()
sign(publishing.publications["maven"])
}

description = "slimeworldmanager-api"

0 comments on commit ae292c4

Please sign in to comment.