forked from cijaaimee/Slime-World-Manager
-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f5f852c
commit ae292c4
Showing
1 changed file
with
72 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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("infernalsuite@gmail.com") | ||
} | ||
} | ||
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" |