summaryrefslogtreecommitdiff
path: root/plugin/src/main/kotlin/moe
diff options
context:
space:
mode:
authorLinnea Gräf <nea@nea.moe>2023-12-10 21:02:07 +0100
committerLinnea Gräf <nea@nea.moe>2023-12-10 21:02:07 +0100
commit9058126b0d77c315436226a589ade0748d8a2905 (patch)
tree5191f8a05add79a96932dd5c4b0d3a678f7dc054 /plugin/src/main/kotlin/moe
parentc8c3959ff81de9052c4383540756687dbd2b5a84 (diff)
downloadarchenemy-9058126b0d77c315436226a589ade0748d8a2905.tar.gz
archenemy-9058126b0d77c315436226a589ade0748d8a2905.tar.bz2
archenemy-9058126b0d77c315436226a589ade0748d8a2905.zip
Add intermediary mappings
Diffstat (limited to 'plugin/src/main/kotlin/moe')
-rw-r--r--plugin/src/main/kotlin/moe/nea/archenemy/mojang/ArchenemyMojangExtension.kt7
1 files changed, 6 insertions, 1 deletions
diff --git a/plugin/src/main/kotlin/moe/nea/archenemy/mojang/ArchenemyMojangExtension.kt b/plugin/src/main/kotlin/moe/nea/archenemy/mojang/ArchenemyMojangExtension.kt
index db667ae..8125900 100644
--- a/plugin/src/main/kotlin/moe/nea/archenemy/mojang/ArchenemyMojangExtension.kt
+++ b/plugin/src/main/kotlin/moe/nea/archenemy/mojang/ArchenemyMojangExtension.kt
@@ -52,12 +52,17 @@ abstract class ArchenemyMojangExtension(val project: Project) {
return OfficialMappingDependency(side, version, project.providers.provider { dependency })
}
+ fun intermediaryMappings(version: String): MappingDependency {
+ return yarnMappings(project.dependencies.create("net.fabricmc:intermediary:$version:v2"))
+ }
+
fun mapJar(
- dependency: ModuleDependency,
+ dependency: Dependency,
mappings: MappingDependency,
sourceNamespace: String,
destinationNamespace: String
): Dependency {
+ dependency as ModuleDependency
_registerMinecraftProvider
return project.dependencies.create(
mappedRepositoryProvider.getDependencyCoordiante(