Skip to content

Commit

Permalink
Forgot to move FlatLaf to GUI
Browse files Browse the repository at this point in the history
  • Loading branch information
PhoenixVX committed Dec 10, 2024
1 parent 06c1582 commit 9dc0857
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
3 changes: 0 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,6 @@ allprojects {
implementation "org.json:json:${project.json_version}"
implementation "com.github.MCPHackers:DiffPatch:${project.diffpatch_version}"
implementation "net.fabricmc:mapping-io:${project.mapping_io_version}"

// TODO: Move this dependency to GUI only
implementation "com.formdev:flatlaf:${project.flatlaf_version}"
}

tasks.withType(JavaCompile).configureEach {
Expand Down
2 changes: 2 additions & 0 deletions gui/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar

dependencies {
implementation rootProject

implementation "com.formdev:flatlaf:${project.flatlaf_version}"
}

application {
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/mcphackers/mcp/tasks/TaskRecompile.java
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public static List<Path> collectClassPath(MCP mcp, Side side) {
protected Stage[] setStages() {
JavaCompiler compiler = ToolProvider.getSystemJavaCompiler();
if (compiler == null) {
throw new RuntimeException("Could not find compiling API");
throw new RuntimeException("Could not find compiling API. Please install or use a Java Development Kit to run this program.");
}
Path binPath = MCPPaths.get(mcp, BIN, side);
Path srcPath = MCPPaths.get(mcp, SOURCE, side);
Expand Down

0 comments on commit 9dc0857

Please sign in to comment.