summaryrefslogtreecommitdiff
path: root/plugin/src/main/kotlin/moe/nea/archenemy/mojang/MappingDependency.kt
blob: a0e1b143193614d6835e6b19dc878a6cdbc921cc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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 findMapping(files: Set<File>): File?
    fun applyMapping(
        mappingsFile: File,
        sourceFile: File,
        targetFile: File,
        sourceNameSpace: String,
        targetNameSpace: String,
    )
}