throw an error if a jar is missing

This commit is contained in:
modmuss50 2018-06-18 17:01:39 +01:00
parent 69f15e870c
commit 1893966038
No known key found for this signature in database
GPG key ID: 773D17BE8BF49C82

View file

@ -90,6 +90,10 @@ public class ModRemapper {
outputConsumer.finish();
remapper.finish();
if(!deobfJar.exists() || !modJar.exists()){
throw new RuntimeException("Failed to remap jar");
}
//Add the deobf jar to be uploaded to maven
project.getArtifacts().add("archives", deobfJar);
}