Skip to content

Commit

Permalink
add runpaper
Browse files Browse the repository at this point in the history
  • Loading branch information
xGinko committed Mar 4, 2024
1 parent e93bea7 commit ae08ebf
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 12 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,7 @@ build/

# IntelliJ
.idea
*.iml
*.iml

# Run Paper/Folia
/AnarchyExploitFixesFolia/run/
21 changes: 15 additions & 6 deletions AnarchyExploitFixesFolia/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,21 +1,30 @@
plugins {
id("me.moomoo.anarchyexploitfixes.wrapper")
id("com.github.johnrengelman.shadow") version "8.1.1"
id("io.papermc.paperweight.userdev") version "1.5.11"
alias(libs.plugins.shadow)
alias(libs.plugins.runpaper)
alias(libs.plugins.userdev)
}

runPaper.folia.registerTask()

tasks {
runServer {
minecraftVersion(libs.versions.runpaperversion.get())
}
}

dependencies {
compileOnly("dev.folia:folia-api:1.20.2-R0.1-SNAPSHOT")
api("com.github.ben-manes.caffeine:caffeine:3.1.8") // Fast caching
paperweight.foliaDevBundle("1.20.2-R0.1-SNAPSHOT")
compileOnly(libs.folia)
paperweight.foliaDevBundle(libs.versions.foliabundle.get())
implementation(libs.caffeineJ17)
}

configure<JavaPluginExtension> {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}

tasks.withType<com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar> {
tasks.shadowJar {
archiveFileName = "${rootProject.name}-${project.name}-${project.version}.${archiveExtension.get()}"
exclude(
"LICENSE",
Expand Down
10 changes: 5 additions & 5 deletions AnarchyExploitFixesLegacy/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
plugins {
id("me.moomoo.anarchyexploitfixes.wrapper")
id("com.github.johnrengelman.shadow") version "8.1.1"
alias(libs.plugins.shadow)
}

dependencies {
compileOnly("com.destroystokyo.paper:paper-api:1.12.2-R0.1-SNAPSHOT")
api("com.github.cryptomorin:XSeries:9.9.0") // XSeries for cross-version support
api("com.github.ben-manes.caffeine:caffeine:2.9.3") // Fast caching // Use 2.x for Java8 compatibility
compileOnly(libs.paper12)
implementation("com.github.cryptomorin:XSeries:9.9.0") // XSeries for cross-version support
implementation(libs.caffeineJ8)
}

configure<JavaPluginExtension> {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}

tasks.withType<com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar> {
tasks.shadowJar {
archiveFileName = "${rootProject.name}-${project.name}-${project.version}.${archiveExtension.get()}"
exclude(
"LICENSE",
Expand Down
21 changes: 21 additions & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
metadata.format.version = "1.1"

[versions]
runpaperversion = "1.20.4"
foliabundle = "1.20.4-R0.1-SNAPSHOT"

[libraries]
paper = "io.papermc.paper:paper-api:1.20.4-R0.1-SNAPSHOT"
folia = "dev.folia:folia-api:1.20.4-R0.1-SNAPSHOT"
paper12 = "com.destroystokyo.paper:paper-api:1.12.2-R0.1-SNAPSHOT"
configmaster = "com.github.thatsmusic99:ConfigurationMaster-API:v2.0.0-rc.1"
bstats = "org.bstats:bstats-bukkit:3.0.2"
caffeineJ17 = "com.github.ben-manes.caffeine:caffeine:3.1.8"
caffeineJ8 = "com.github.ben-manes.caffeine:caffeine:2.9.3"

[plugins]
runpaper = { id = "xyz.jpenilla.run-paper", version = "2.2.2" }
shadow = { id = "com.github.johnrengelman.shadow", version = "8.1.1" }
userdev = { id = "io.papermc.paperweight.userdev", version = "1.5.11" }

[bundles]

0 comments on commit ae08ebf

Please sign in to comment.