Skip to content

Commit 1a89ce5

Browse files
committed
fix: plugins added recursively and metadata repeats
1 parent 76ed830 commit 1a89ce5

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

plugin/src/main/java/com/icst/plugin/builder/MergePluginMetadataTask.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,11 @@ public void merge() throws Exception {
5050
List<JsonElement> variants = new ArrayList<>();
5151

5252
if (dir.exists()) {
53-
collectJsonFiles(dir, variants);
53+
for (File file : dir.listFiles()) {
54+
if (file.isDirectory()) {
55+
collectJsonFiles(file, variants);
56+
}
57+
}
5458
}
5559

5660
Gson gson = new GsonBuilder().setPrettyPrinting().create();

0 commit comments

Comments
 (0)