From e45c5c2be68098c43517b4e49ca0980c7019f5df Mon Sep 17 00:00:00 2001 From: Jason Penilla <11360596+jpenilla@users.noreply.github.com> Date: Sat, 10 Jul 2021 16:09:39 -0700 Subject: [PATCH] fix task for running mojang mapped server --- build.gradle.kts | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 617a977..0a70afa 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -15,8 +15,6 @@ repositories { mavenLocal() { content { includeGroup("io.papermc.paper") } } - mavenCentral() - maven("https://papermc.io/repo/repository/maven-public/") } dependencies { @@ -47,14 +45,14 @@ tasks { // Task to run obfuscated/production server and plugin runServer { minecraftVersion("1.17.1") - pluginJars.from(reobfJar.flatMap { it.outputJar }) + pluginJars(reobfJar.flatMap { it.outputJar }) } // Task to run mojang mapped/dev server and plugin register("runMojangMappedServer") { minecraftVersion("1.17.1") - pluginJars.from(jar.flatMap { it.archiveFile }) - paperclip(layout.file(configurations.mojangMappedServer.map { it.singleFile })) + pluginJars(jar.flatMap { it.archiveFile }) + paperclip(paperweight.mojangMappedPaperServerJar) } }