Skip to content

Commit

Permalink
Fix api sourceSet missing lwjgl classes and live mirror check returni…
Browse files Browse the repository at this point in the history
…ng http URLs
  • Loading branch information
eigenraven committed Jan 11, 2024
1 parent 620f9d6 commit 1b8c702
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -334,8 +334,10 @@ public MCPTasks(Project project, MinecraftExtension mcExt, MinecraftTasks mcTask
final Configuration cfgCompileOnlyApi = project.getConfigurations().getByName("compileOnlyApi");
final SourceSet apiSet = javaExt.getSourceSets().create("api", set -> {
set.setCompileClasspath(
set.getCompileClasspath().plus(patchedConfiguration).plus(patchedMcSources.getOutput()));
set.setRuntimeClasspath(set.getRuntimeClasspath().plus(patchedConfiguration));
set.getCompileClasspath().plus(patchedConfiguration).plus(patchedMcSources.getOutput())
.plus(mcTasks.getLwjgl2Configuration()));
set.setRuntimeClasspath(
set.getRuntimeClasspath().plus(patchedConfiguration).plus(mcTasks.getLwjgl2Configuration()));
});
mainSet.setCompileClasspath(mainSet.getCompileClasspath().plus(apiSet.getOutput()));
mainSet.setRuntimeClasspath(mainSet.getRuntimeClasspath().plus(apiSet.getOutput()));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -235,12 +235,12 @@ public void run() {
int response = connection.getResponseCode();
if (response >= 200 && response <= 399) {
synchronized (successUrl) {
successUrl.set(url);
successUrl.set(rawUrl);
successUrl.notifyAll();
}
}
} catch (IOException e) {
project.getLogger().info("RFG mirror {} failed: {}", url, e.getMessage());
project.getLogger().info("RFG mirror {} failed: {}", rawUrl, e.getMessage());
}
}
};
Expand Down

0 comments on commit 1b8c702

Please sign in to comment.