Skip to content

Commit

Permalink
Melhoria da compatibilidade com shadowJar
Browse files Browse the repository at this point in the history
  • Loading branch information
SrBedrock committed Sep 18, 2024
1 parent 120fe2e commit a26e980
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 27 deletions.
1 change: 0 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import org.gradle.kotlin.dsl.support.uppercaseFirstChar

plugins {
id("root-plugin")
id("com.gradleup.shadow") version "8.3.1"
}

java {
Expand Down
6 changes: 1 addition & 5 deletions buildSrc/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,8 @@ plugins {
`kotlin-dsl`
}

repositories {
gradlePluginPortal()
mavenCentral()
}

dependencies {
implementation(libs.paperweight)
implementation(libs.shadowjar)
implementation(libs.runpaper)
}
7 changes: 0 additions & 7 deletions buildSrc/src/main/kotlin/paper-plugin.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
plugins {
id("io.papermc.paperweight.userdev")

id("xyz.jpenilla.run-paper")

id("root-plugin")
}

Expand All @@ -12,15 +10,10 @@ base {

repositories {
maven("https://repo.extendedclip.com/content/repositories/placeholderapi/")

maven("https://repo.papermc.io/repository/maven-public/")

maven("https://repo.codemc.io/repository/maven-public/")

maven("https://repo.triumphteam.dev/snapshots/")

maven("https://repo.oraxen.com/releases/")

flatDir { dirs("libs") }
}

Expand Down
1 change: 1 addition & 0 deletions buildSrc/src/main/kotlin/root-plugin.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
plugins {
id("com.gradleup.shadow")
`java-library`
`maven-publish`
}
Expand Down
8 changes: 3 additions & 5 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,25 +1,23 @@
[versions]
kyori_version = "4.17.0"

paperweight_version = "1.7.2"
runpaper_version = "2.2.3"

shadow_version = "8.3.2"
modrinth_version = "2.8.7"
hangar_version = "0.1.2"

[plugins]
hangar = { id = "io.papermc.hangar-publish-plugin", version.ref = "hangar_version" }
modrinth = { id = "com.modrinth.minotaur", version.ref = "modrinth_version" }

shadowjar = { id = "com.gradleup.shadow.shadow-gradle-plugin", version.ref = "shadow_version" }
paperweight = { id = "io.papermc.paperweight.userdev", version.ref = "paperweight_version" }
runpaper = { id = "xyz.jpenilla.run-paper", version.ref = "runpaper_version" }

[libraries]
adventure = { module = "net.kyori:adventure-api", version.ref = "kyori_version" }
minimessage = { module = "net.kyori:adventure-text-minimessage", version.ref = "kyori_version" }

paperweight = { module = "io.papermc.paperweight:paperweight-userdev", version.ref = "paperweight_version" }
runpaper = { module = "xyz.jpenilla:run-task", version.ref = "runpaper_version" }

shadowjar = { module = "com.gradleup.shadow:shadow-gradle-plugin", version.ref = "shadow_version" }
hangar = { module = "io.papermc:hangar-publish-plugin", version.ref = "hangar_version" }
modrinth = { module = "com.modrinth.minotaur:Minotaur", version.ref = "modrinth_version" }
8 changes: 0 additions & 8 deletions paper/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,23 +1,15 @@
plugins {
id("paper-plugin")
id("com.gradleup.shadow") version "8.3.1"
}

dependencies {
api(project(":common"))

implementation(libs.cluster.paper)

implementation(libs.triumphcmds)

implementation(libs.nbtapi)

compileOnly(libs.decentholograms)

compileOnly(libs.placeholderapi)

compileOnly(libs.oraxen)

compileOnly(fileTree("libs").include("*.jar"))
}

Expand Down
2 changes: 1 addition & 1 deletion paper/run/server.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#Minecraft server properties
#Wed Sep 18 10:49:27 GMT-03:00 2024
#Wed Sep 18 10:59:37 GMT-03:00 2024
accepts-transfers=false
allow-flight=false
allow-nether=false
Expand Down

0 comments on commit a26e980

Please sign in to comment.