Skip to content

Commit

Permalink
Update build.gradle.kts
Browse files Browse the repository at this point in the history
Xiao-MoMi committed Oct 7, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 67732ec commit 6b2bbea
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions api/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -4,6 +4,9 @@ plugins {
}

repositories {
maven("https://jitpack.io/")
maven("https://papermc.io/repo/repository/maven-public/")
maven("https://oss.sonatype.org/content/repositories/snapshots")
}

dependencies {
@@ -22,14 +25,6 @@ dependencies {
compileOnly("com.google.code.gson:gson:${rootProject.properties["gson_version"]}")
}

tasks {
shadowJar {
archiveClassifier = ""
relocate ("net.kyori", "net.momirealms.customnameplates.libraries")
relocate("dev.dejvokep", "net.momirealms.customnameplates.libraries")
}
}

java {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
@@ -44,6 +39,15 @@ tasks.withType<JavaCompile> {
dependsOn(tasks.clean)
}

tasks {
shadowJar {
archiveClassifier = ""
archiveFileName = "CustomNameplates-${rootProject.properties["project_version"]}.jar"
relocate ("net.kyori", "net.momirealms.customnameplates.libraries")
relocate("dev.dejvokep", "net.momirealms.customnameplates.libraries")
}
}

publishing {
publications {
create<MavenPublication>("mavenJava") {

0 comments on commit 6b2bbea

Please sign in to comment.