mirror of https://github.com/FabricMC/yarn.git
Add checkMappings command to gradle (#144)
This commit is contained in:
parent
65ee82c8a8
commit
d381decf03
24
build.gradle
24
build.gradle
|
@ -5,11 +5,13 @@ buildscript {
|
|||
name = "Fabric"
|
||||
url = "http://maven.fabricmc.net/"
|
||||
}
|
||||
maven {
|
||||
name "RX14 Repository"
|
||||
url 'http://mvn.rx14.co.uk/local/'
|
||||
}
|
||||
}
|
||||
dependencies {
|
||||
classpath("net.fabricmc:weave:0.1.0.6") {
|
||||
exclude module: 'procyon-compilertools'
|
||||
}
|
||||
classpath "net.fabricmc:weave:0.1.0.11"
|
||||
classpath "commons-io:commons-io:1.4"
|
||||
classpath "com.google.guava:guava:19.0"
|
||||
}
|
||||
|
@ -31,6 +33,7 @@ import com.google.common.hash.Hashing
|
|||
import com.google.common.io.Files
|
||||
import net.fabricmc.weave.merge.JarMerger
|
||||
import net.fabricmc.weave.CommandTinyify
|
||||
import net.fabricmc.weave.CommandFindMappingErrors
|
||||
import groovy.util.XmlSlurper
|
||||
import java.io.FileInputStream;
|
||||
import java.io.FileOutputStream;
|
||||
|
@ -108,7 +111,7 @@ task mergeJars << {
|
|||
tasks.mergeJars.dependsOn "download"
|
||||
|
||||
task setupPomf << {
|
||||
|
||||
|
||||
}
|
||||
tasks.setupPomf.dependsOn "mergeJars"
|
||||
|
||||
|
@ -120,7 +123,7 @@ task pomf << {
|
|||
|
||||
logger.lifecycle(":downloading enigma metadata")
|
||||
FileUtils.copyURLToFile(new URL("http://maven.fabricmc.net/cuchaz/enigma/maven-metadata.xml"), mavenMetadata)
|
||||
|
||||
|
||||
def metadata = new XmlSlurper().parseText(FileUtils.readFileToString(mavenMetadata))
|
||||
def enigmaVersion = metadata.versioning.release
|
||||
|
||||
|
@ -144,6 +147,17 @@ task build(type: Zip) {
|
|||
destinationDir(file("build/libs"))
|
||||
}
|
||||
|
||||
task checkMappings << {
|
||||
logger.lifecycle(":checking mappings")
|
||||
|
||||
String[] args = [
|
||||
new File("${minecraft_version}-merged.jar").getAbsolutePath(),
|
||||
new File("mappings").getAbsolutePath()
|
||||
]
|
||||
|
||||
new CommandFindMappingErrors().run(args)
|
||||
}
|
||||
|
||||
task buildTiny << {
|
||||
logger.lifecycle(":generating tiny mappings")
|
||||
|
||||
|
|
Loading…
Reference in New Issue