mirror of
https://github.com/FabricMC/fabric.git
synced 2025-02-25 16:04:12 -05:00
Make deprecated modules opt-out instead of opt-in (#3246)
* Make deprecated modules opt-out instead of opt-in * Add comment * Update build.gradle Co-authored-by: Juuz <6596629+Juuxel@users.noreply.github.com> --------- Co-authored-by: Juuz <6596629+Juuxel@users.noreply.github.com>
This commit is contained in:
parent
eeb8eb36ff
commit
0d99377dd7
1 changed files with 8 additions and 1 deletions
|
@ -657,7 +657,7 @@ publishing {
|
|||
pom.withXml {
|
||||
def depsNode = asNode().appendNode("dependencies")
|
||||
subprojects.each {
|
||||
// Dont depend on the deprecated modules in the main artifact.
|
||||
// The maven BOM containing all of the deprecated modules is added manually below.
|
||||
if (it.path.startsWith(":deprecated")) {
|
||||
return
|
||||
}
|
||||
|
@ -668,6 +668,13 @@ publishing {
|
|||
depNode.appendNode("version", it.version)
|
||||
depNode.appendNode("scope", "compile")
|
||||
}
|
||||
|
||||
// Depend on the deprecated BOM to allow opting out of deprecated modules.
|
||||
def depNode = depsNode.appendNode("dependency")
|
||||
depNode.appendNode("groupId", group)
|
||||
depNode.appendNode("artifactId", "fabric-api-deprecated")
|
||||
depNode.appendNode("version", version)
|
||||
depNode.appendNode("scope", "compile")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue