Added designer jar
This commit is contained in:
parent
3abfc3cb13
commit
70f458d089
2 changed files with 12 additions and 3 deletions
12
build.gradle
12
build.gradle
|
@ -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 {
|
||||
|
|
|
@ -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");
|
||||
|
|
Loading…
Add table
Reference in a new issue