Skip to content

Commit

Permalink
refactor reading external modules
Browse files Browse the repository at this point in the history
  • Loading branch information
SentryMan committed Jul 15, 2024
1 parent e6985d5 commit f1a41bf
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ private void writeProvides(Project project) {
try (var classLoader = classLoader(project);
var pluginWriter = createFileWriter(outputDir.getPath(), "avaje-plugin-provides.txt");
var moduleCSV = createFileWriter(outputDir.getPath(), "avaje-module-dependencies.csv")) {
writeProvidedPlugins(classLoader, pluginWriter);
writeModuleCSV(classLoader, moduleCSV);

} catch (IOException e) {
throw new GradleException("Failed to write avaje-module-provides", e);
}
Expand Down Expand Up @@ -151,7 +151,7 @@ private void writeModuleCSV(ClassLoader classLoader, FileWriter moduleWriter) th
.forEach(requires::add);
modules.add(new ModuleData(name, provides, requires));
}

moduleWriter.write("\nExternal Module Type|Provides|Requires");
for (ModuleData avajeModule : modules) {
moduleWriter.write("\n");
Expand Down

0 comments on commit f1a41bf

Please sign in to comment.