3
0
Mirror von https://github.com/Moulberry/AxiomPaperPlugin.git synchronisiert 2024-11-17 05:40:06 +01:00

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') }} key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: | restore-keys: |
${{ runner.os }}-gradle- ${{ 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 - name: Build Paper
run: | run: |
git clone https://github.com/PaperMC/Paper.git git clone https://github.com/PaperMC/Paper.git

Datei anzeigen

@ -1,18 +1,18 @@
import net.minecrell.pluginyml.bukkit.BukkitPluginDescription import net.minecrell.pluginyml.bukkit.BukkitPluginDescription
import xyz.jpenilla.runpaper.task.RunServerTask
plugins { plugins {
`java-library` `java-library`
id("io.papermc.paperweight.userdev") version "1.1.10-LOCAL-SNAPSHOT" id("io.papermc.paperweight.userdev") version "1.1.10"
id("xyz.jpenilla.run-paper") version "1.0.3" 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" id("net.minecrell.plugin-yml.bukkit") version "0.4.0"
} }
group = "io.papermc.paperweight" group = "io.papermc.paperweight"
version = "1.0.0-SNAPSHOT" version = "1.0.0-SNAPSHOT"
description = "Test plugin for paperweight-userdev"
repositories { repositories {
mavenLocal() { mavenLocal {
content { includeGroup("io.papermc.paper") } content { includeGroup("io.papermc.paper") }
} }
} }
@ -21,10 +21,6 @@ dependencies {
paperDevBundle("1.17.1-R0.1-SNAPSHOT") paperDevBundle("1.17.1-R0.1-SNAPSHOT")
} }
runPaper {
disablePluginJarDetection()
}
tasks { tasks {
// Run reobfJar on build // Run reobfJar on build
build { build {
@ -41,19 +37,6 @@ tasks {
processResources { processResources {
filteringCharset = Charsets.UTF_8.name() 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 { bukkit {

Datei anzeigen

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