Skip to content

Commit

Permalink
fix(core): add package-info.java to script + handle subgroups properly
Browse files Browse the repository at this point in the history
  • Loading branch information
brian-mulier-p committed Feb 21, 2025
1 parent 4710bae commit ac2643c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -177,11 +177,11 @@ public Set<String> subGroupNames() {
pluginSubGroup = null;
}

if (pluginSubGroup != null && clazz.getPackageName().startsWith(this.group()) ) {
return this.group() + "." + clazz.getPackageName().substring(this.group().length() + 1);
} else {
if (pluginSubGroup == null) {
return null;
}

return clazz.getPackageName();
})
.filter(Objects::nonNull)
.collect(Collectors.toSet());
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
@PluginSubGroup(categories = PluginSubGroup.PluginCategory.SCRIPT)
package io.kestra.plugin.scripts.runner.docker;

import io.kestra.core.models.annotations.PluginSubGroup;

0 comments on commit ac2643c

Please sign in to comment.