mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-12-02 19:22:08 +00:00
Gate mavenLocal behind -PuseMavenLocal and resolve ItemsAdder remotely
A stale ~/.m2 artifact could shadow the composite VolmLib or published artifacts, and ItemsAdder only resolved through mavenLocal. mavenLocal() is now added only with -PuseMavenLocal=true or when the composite VolmLib is off, and ItemsAdder uses beer.devs:itemsadder-api 4.0.17 from maven.devs.beer.
Upstream: c83d6964f
This commit is contained in:
1 parent
7b2a232a42
commit
041e11f4a9
3 files changed
+11
-4
No files matched your search
+7
-1
@@ -58,6 +58,10 @@ String volmLibCoordinate = providers.gradleProperty('volmLibCoordinate')
|
|||||||
.get()
|
.get()
|
||||||
String useLocalVolmLib = providers.gradleProperty('useLocalVolmLib').getOrElse('true')
|
String useLocalVolmLib = providers.gradleProperty('useLocalVolmLib').getOrElse('true')
|
||||||
String localVolmLibDirectory = providers.gradleProperty('localVolmLibDirectory').getOrNull()
|
String localVolmLibDirectory = providers.gradleProperty('localVolmLibDirectory').getOrNull()
|
||||||
|
boolean useMavenLocal = providers.gradleProperty('useMavenLocal')
|
||||||
|
.orElse(useLocalVolmLib.equalsIgnoreCase('true') ? 'false' : 'true')
|
||||||
|
.map { String value -> value.equalsIgnoreCase('true') }
|
||||||
|
.get()
|
||||||
Closure<String> loaderDisplayVersion = { String loaderVersion ->
|
Closure<String> loaderDisplayVersion = { String loaderVersion ->
|
||||||
String coordinatePrefix = "${minecraftVersion}-"
|
String coordinatePrefix = "${minecraftVersion}-"
|
||||||
if (loaderVersion.startsWith(coordinatePrefix)) {
|
if (loaderVersion.startsWith(coordinatePrefix)) {
|
||||||
@@ -821,7 +825,9 @@ allprojects {
|
|||||||
}
|
}
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
mavenLocal()
|
if (useMavenLocal) {
|
||||||
|
mavenLocal()
|
||||||
|
}
|
||||||
mavenCentral()
|
mavenCentral()
|
||||||
maven { url = uri('https://repo.papermc.io/repository/maven-public/') }
|
maven { url = uri('https://repo.papermc.io/repository/maven-public/') }
|
||||||
maven { url = uri('https://repo.codemc.org/repository/maven-public/') }
|
maven { url = uri('https://repo.codemc.org/repository/maven-public/') }
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ jaxen = "2.0.6" # https://central.sonatype.com/artifact/jaxen/jaxen
|
|||||||
|
|
||||||
# Third Party Integrations
|
# Third Party Integrations
|
||||||
nexo = "1.25.0" # https://repo.nexomc.com/#/releases/com/nexomc/nexo
|
nexo = "1.25.0" # https://repo.nexomc.com/#/releases/com/nexomc/nexo
|
||||||
itemsadder = "4.0.10" # https://github.com/LoneDev6/API-ItemsAdder
|
itemsadder = "4.0.17" # https://github.com/LoneDev6/API-ItemsAdder
|
||||||
placeholderApi = "2.11.6" # https://repo.extendedclip.com/#/releases/me/clip/placeholderapi
|
placeholderApi = "2.11.6" # https://repo.extendedclip.com/#/releases/me/clip/placeholderapi
|
||||||
score = "5.25.3.9" # https://github.com/Ssomar-Developement/SCore
|
score = "5.25.3.9" # https://github.com/Ssomar-Developement/SCore
|
||||||
mmoitems = "6.10.1-SNAPSHOT" # https://nexus.phoenixdevt.fr/repository/maven-public/net/Indyuce/MMOItems-API/maven-metadata.xml
|
mmoitems = "6.10.1-SNAPSHOT" # https://nexus.phoenixdevt.fr/repository/maven-public/net/Indyuce/MMOItems-API/maven-metadata.xml
|
||||||
@@ -95,7 +95,7 @@ jaxen = { module = "jaxen:jaxen", version.ref = "jaxen" }
|
|||||||
|
|
||||||
# Third Party Integrations
|
# Third Party Integrations
|
||||||
nexo = { module = "com.nexomc:nexo", version.ref = "nexo" }
|
nexo = { module = "com.nexomc:nexo", version.ref = "nexo" }
|
||||||
itemsadder = { module = "dev.lone:api-itemsadder", version.ref = "itemsadder" }
|
itemsadder = { module = "beer.devs:itemsadder-api", version.ref = "itemsadder" }
|
||||||
placeholderApi = { module = "me.clip:placeholderapi", version.ref = "placeholderApi" }
|
placeholderApi = { module = "me.clip:placeholderapi", version.ref = "placeholderApi" }
|
||||||
score = { module = "com.github.Ssomar-Developement:SCore", version.ref = "score" }
|
score = { module = "com.github.Ssomar-Developement:SCore", version.ref = "score" }
|
||||||
mmoitems = { module = "net.Indyuce:MMOItems-API", version.ref = "mmoitems" }
|
mmoitems = { module = "net.Indyuce:MMOItems-API", version.ref = "mmoitems" }
|
||||||
|
|||||||
+2
-1
@@ -5,7 +5,8 @@
|
|||||||
#
|
#
|
||||||
# VolmLib is normally picked up as a composite build straight from source, so this is
|
# VolmLib is normally picked up as a composite build straight from source, so this is
|
||||||
# only needed when you build with -PuseLocalVolmLib=false, or when another tool has to
|
# only needed when you build with -PuseLocalVolmLib=false, or when another tool has to
|
||||||
# resolve VolmLib from ~/.m2 rather than from the included build.
|
# resolve VolmLib from ~/.m2 rather than from the included build. Gradle reads ~/.m2 only
|
||||||
|
# when -PuseMavenLocal=true is passed or the composite VolmLib is off (-PuseLocalVolmLib=false).
|
||||||
#
|
#
|
||||||
# The lookup mirrors settings.gradle: it walks up from this script looking for a
|
# The lookup mirrors settings.gradle: it walks up from this script looking for a
|
||||||
# VolmLib checkout sitting beside the project root. Set VOLMLIB_DIR to override.
|
# VolmLib checkout sitting beside the project root. Set VOLMLIB_DIR to override.
|
||||||
|
|||||||
Reference in new issue
Block a user