Use new strategy for loading in dependencies

This commit is contained in:
2026-05-17 15:51:55 -04:00
parent 99564d6c22
commit ca2793eeae
2 changed files with 20 additions and 3 deletions
+4 -3
View File
@@ -2,6 +2,7 @@ plugins {
java java
`maven-publish` `maven-publish`
idea idea
id("dev.plex.module") version "1.0"
} }
group = "dev.plex" group = "dev.plex"
@@ -36,9 +37,9 @@ dependencies {
implementation("dev.plex:server:1.6") implementation("dev.plex:server:1.6")
implementation("org.json:json:20251224") implementation("org.json:json:20251224")
implementation("org.reflections:reflections:0.10.2") implementation("org.reflections:reflections:0.10.2")
implementation("org.eclipse.jetty:jetty-server:12.1.9") plexLibrary("org.eclipse.jetty:jetty-server:12.1.9")
implementation("org.eclipse.jetty.ee10:jetty-ee10-servlet:12.1.9") plexLibrary("org.eclipse.jetty.ee10:jetty-ee10-servlet:12.1.9")
implementation("org.eclipse.jetty:jetty-proxy:12.1.9") plexLibrary("org.eclipse.jetty:jetty-proxy:12.1.9")
implementation("com.github.MilkBowl:VaultAPI:1.7.1") { implementation("com.github.MilkBowl:VaultAPI:1.7.1") {
exclude("org.bukkit", "bukkit") exclude("org.bukkit", "bukkit")
} }
+16
View File
@@ -1,2 +1,18 @@
pluginManagement {
repositories {
maven("https://nexus.telesphoreo.me/repository/gradle-plugins-releases/")
maven("https://nexus.telesphoreo.me/repository/gradle-plugins-snapshots/")
gradlePluginPortal()
mavenCentral()
}
resolutionStrategy {
eachPlugin {
if (requested.id.id == "dev.plex.module") {
useModule("dev.plex:plex-modules-gradle-plugin:${requested.version}")
}
}
}
}
rootProject.name = "Module-HTTPD" rootProject.name = "Module-HTTPD"