summaryrefslogtreecommitdiff
path: root/plugin/src/main/kotlin/moe/nea/archenemy/mojang/MappingDependency.kt
blob: 292db4f0950514219ff2d53084ea62b36fd7e735 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package moe.nea.archenemy.mojang

import org.gradle.api.artifacts.Dependency
import org.gradle.api.provider.Provider
import java.io.File
import java.security.MessageDigest

interface MappingDependency : Provider<Dependency> {
    fun updateHash(digest: MessageDigest)
    fun title(): String
    fun resolveMappingsOnce(extension: ArchenemyMojangExtension)
    fun applyMapping(
        sourceFile: File,
        targetFile: File,
        sourceNameSpace: String,
        targetNameSpace: String,
    )
}