Use release version of paperweight

Dieser Commit ist enthalten in:
Jason Penilla 2021-08-17 16:37:14 -05:00
Ursprung 89dcb07871
Commit d8f180064b
3 geänderte Dateien mit 5 neuen und 28 gelöschten Zeilen

Datei anzeigen

@ -25,12 +25,6 @@ jobs:
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Build paperweight
run: |
git clone https://github.com/PaperMC/paperweight.git
cd paperweight
git switch userdev
./gradlew publishToMavenLocal --stacktrace
- name: Build Paper
run: |
git clone https://github.com/PaperMC/Paper.git

Datei anzeigen

@ -1,18 +1,18 @@
import net.minecrell.pluginyml.bukkit.BukkitPluginDescription
import xyz.jpenilla.runpaper.task.RunServerTask
plugins {
`java-library`
id("io.papermc.paperweight.userdev") version "1.1.10-LOCAL-SNAPSHOT"
id("xyz.jpenilla.run-paper") version "1.0.3"
id("io.papermc.paperweight.userdev") version "1.1.10"
id("xyz.jpenilla.run-paper") version "1.0.4-SNAPSHOT" // Adds runServer and runMojangMappedServer tasks for testing
id("net.minecrell.plugin-yml.bukkit") version "0.4.0"
}
group = "io.papermc.paperweight"
version = "1.0.0-SNAPSHOT"
description = "Test plugin for paperweight-userdev"
repositories {
mavenLocal() {
mavenLocal {
content { includeGroup("io.papermc.paper") }
}
}
@ -21,10 +21,6 @@ dependencies {
paperDevBundle("1.17.1-R0.1-SNAPSHOT")
}
runPaper {
disablePluginJarDetection()
}
tasks {
// Run reobfJar on build
build {
@ -41,19 +37,6 @@ tasks {
processResources {
filteringCharset = Charsets.UTF_8.name()
}
// Task to run obfuscated/production server and plugin
runServer {
minecraftVersion("1.17.1")
pluginJars(reobfJar.flatMap { it.outputJar })
}
// Task to run mojang mapped/dev server and plugin
register<RunServerTask>("runMojangMappedServer") {
minecraftVersion("1.17.1")
pluginJars(jar.flatMap { it.archiveFile })
paperclip(paperweight.mojangMappedServerJar)
}
}
bukkit {

Datei anzeigen

@ -1,8 +1,8 @@
pluginManagement {
repositories {
mavenLocal()
gradlePluginPortal()
maven("https://papermc.io/repo/repository/maven-public/")
maven("https://repo.jpenilla.xyz/snapshots/")
}
}