Added designer jar

This commit is contained in:
modmuss50 2016-04-16 09:02:33 +01:00
parent 3abfc3cb13
commit 70f458d089
No known key found for this signature in database
GPG key ID: 1838986A0F12E8EE
2 changed files with 12 additions and 3 deletions

View file

@ -110,6 +110,14 @@ task deobfJar(type: Jar) {
from sourceSets.main.output
exclude "**/*.psd"
classifier = 'dev'
}
task designerJar(type: Jar) {
from sourceSets.main.output
classifier = 'designer'
exclude "techreborn/**"
include "techreborn/manual/designer"
include "techreborn/manual/saveFormat"
manifest { attributes 'Main-Class': 'techreborn.manual.designer.ManualDesigner' }
}
@ -134,13 +142,15 @@ task apiJar(type: Jar) {
}
apiJar.mustRunAfter deobfJar
designerJar.mustRunAfter apiJar
artifacts {
archives deobfJar
archives apiJar
archives designerJar
}
build.dependsOn deobfJar, apiJar
build.dependsOn deobfJar, apiJar, designerJar
uploadArchives {
repositories {

View file

@ -4,7 +4,6 @@ import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import javafx.scene.control.TreeItem;
import javafx.stage.DirectoryChooser;
import techreborn.lib.ModInfo;
import techreborn.manual.designer.ManualDesigner;
import techreborn.manual.saveFormat.Entry;
import techreborn.manual.saveFormat.ManualFormat;
@ -30,7 +29,7 @@ public class SaveSystem {
public static void export(){
List<Entry> entryList = new ArrayList<>(entries.values());
if(master == null){
master = new ManualFormat("TechReborn", ModInfo.MOD_ID, entryList);
master = new ManualFormat("TechReborn", "techreborn", entryList);
}
DirectoryChooser chooser = new DirectoryChooser();
chooser.setTitle("Select export location");