From 1443f54947faf7f6f408bf5e0be21438629a4516 Mon Sep 17 00:00:00 2001 From: Mohammed Alteneiji Date: Mon, 23 Dec 2024 14:48:22 +0400 Subject: [PATCH] move gradle plugins to libs file --- api/build.gradle.kts | 3 +-- gradle/libs.versions.toml | 4 +++- proxies/bungeecord/build.gradle.kts | 3 +-- proxies/velocity/build.gradle.kts | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/api/build.gradle.kts b/api/build.gradle.kts index b6ee0e20..45e798ec 100644 --- a/api/build.gradle.kts +++ b/api/build.gradle.kts @@ -1,10 +1,9 @@ -import java.time.Instant import java.io.ByteArrayOutputStream plugins { `java-library` `maven-publish` - alias(libs.plugins.net.kyori.blossom) + alias(libs.plugins.blossom) } diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 7baf7b54..1c37ba52 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -11,7 +11,9 @@ bungeecordApi = "1.21-R0.1-SNAPSHOT" velocity = "3.4.0-SNAPSHOT" [plugins] -net-kyori-blossom = { id = "net.kyori.blossom", version = "1.2.0" } +blossom = { id = "net.kyori.blossom", version = "1.2.0" } +shadow = { id = "com.github.johnrengelman.shadow", version = "8.1.1" } +run-velocity = { id = "xyz.jpenilla.run-velocity", version = "2.0.0" } [libraries] guava = { module = "com.google.guava:guava", version.ref = "guava" } diff --git a/proxies/bungeecord/build.gradle.kts b/proxies/bungeecord/build.gradle.kts index 0e4274be..6216aa8c 100644 --- a/proxies/bungeecord/build.gradle.kts +++ b/proxies/bungeecord/build.gradle.kts @@ -1,7 +1,6 @@ plugins { java - id("com.github.johnrengelman.shadow") version "8.1.1" - //id("xyz.jpenilla.run-waterfall") version "2.0.0" + alias(libs.plugins.shadow) } dependencies { diff --git a/proxies/velocity/build.gradle.kts b/proxies/velocity/build.gradle.kts index 76818047..e68d146c 100644 --- a/proxies/velocity/build.gradle.kts +++ b/proxies/velocity/build.gradle.kts @@ -1,7 +1,7 @@ plugins { java - id("com.github.johnrengelman.shadow") version "8.1.1" - id("xyz.jpenilla.run-velocity") version "2.0.0" + alias(libs.plugins.shadow) + alias(libs.plugins.run.velocity) } dependencies {