Skip to content

Commit

Permalink
Generator cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
Griefed committed Nov 7, 2023
1 parent b8bff7c commit 5597f63
Show file tree
Hide file tree
Showing 8 changed files with 303 additions and 819 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import com.fasterxml.jackson.databind.DeserializationFeature;
import com.fasterxml.jackson.databind.ObjectMapper;
import de.griefed.generation.blocks.BlockDefinitionParser;
import de.griefed.generation.generator.CommonGeneration;
import org.gradle.api.Plugin;
import org.gradle.api.Project;

Expand All @@ -28,17 +29,12 @@ public void apply(Project project) {
project.getTasks().register("blockAndItemCodeGen", task -> task.doLast(s -> System.out.println("Hello from plugin " + this.getClass().getName())));
try {
Properties gradleProperties = new Properties();
gradleProperties.load(new FileInputStream(new File(project.getRootDir(),"gradle.properties")));
gradleProperties.load(new FileInputStream(new File(project.getRootDir(), "gradle.properties")));
String modName = gradleProperties.getProperty("mod_name");
BlockDefinitionParser parser = new BlockDefinitionParser(project, objectMapper);

BlockDefinitionParser parser = new BlockDefinitionParser(project, objectMapper);
CommonGeneration common = new CommonGeneration(project.findProject("Common"), modName, parser, objectMapper);
//FabricGeneration fabric = new FabricGeneration(project.findProject("fabric"), modName, parser, objectMapper);
//ForgeGeneration forge = new ForgeGeneration(project.findProject("forge"), modName, parser, objectMapper);

common.run();
//fabric.run();
//forge.run();
} catch (IOException e) {
throw new RuntimeException("Error generating block and item code.", e);
}
Expand Down
132 changes: 0 additions & 132 deletions buildSrc/src/main/java/de/griefed/generation/CommonGeneration.java

This file was deleted.

145 changes: 0 additions & 145 deletions buildSrc/src/main/java/de/griefed/generation/FabricGeneration.java

This file was deleted.

Loading

0 comments on commit 5597f63

Please sign in to comment.