From 7532cf3a4fc52acfc008b4ff26e98f02933fa8c0 Mon Sep 17 00:00:00 2001 From: broccolai Date: Tue, 31 Oct 2023 14:08:46 +0000 Subject: [PATCH] cleanup gremlin usage --- paper/build.gradle.kts | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/paper/build.gradle.kts b/paper/build.gradle.kts index 351c04c..d166946 100644 --- a/paper/build.gradle.kts +++ b/paper/build.gradle.kts @@ -10,26 +10,25 @@ repositories { maven("https://repo.jpenilla.xyz/snapshots/") } +fun DependencyHandler.runtimeDownloadApi(dependencyNotation: Any) { + api(dependencyNotation) + runtimeDownload(dependencyNotation) +} + dependencies { - api(project(":tags-core")) - runtimeDownload(project(":tags-core")) + runtimeDownloadApi(projects.tagsCore) compileOnly(libs.paper.api) compileOnly(libs.papi) compileOnly(libs.vault) - api(libs.cloud.paper) - runtimeDownload(libs.cloud.paper) - api(libs.cloud.extras) - runtimeDownload(libs.cloud.extras) - api(libs.corn.minecraft.paper) - runtimeDownload(libs.corn.minecraft.paper) + runtimeDownloadApi(libs.cloud.paper) + runtimeDownloadApi(libs.cloud.extras) + runtimeDownloadApi(libs.corn.minecraft.paper) - api(libs.interfaces.paper) - runtimeDownload(libs.interfaces.paper) + runtimeDownloadApi(libs.interfaces.paper) - api(libs.h2) - runtimeDownload(libs.h2) + runtimeDownloadApi(libs.h2) } configurations.runtimeDownload {