create addon manifests

This commit is contained in:
dfsek 2021-11-17 10:20:04 -07:00
parent b9a6f11245
commit 16bcc12ccb
2 changed files with 3 additions and 2 deletions

View File

@ -38,7 +38,7 @@ public class ManifestAddonLoader implements BootstrapBaseAddon<ManifestAddon> {
try {
return Files.walk(addonsFolder, 1)
.filter(path -> path.toFile().isFile() && path.getFileName().endsWith(".jar"))
.filter(path -> path.toFile().isFile() && path.toString().endsWith(".jar"))
.flatMap(path -> {
try {
JarFile jar = new JarFile(path.toFile());

View File

@ -28,7 +28,8 @@ public class AddonManifest implements ConfigTemplate, StringIdentifiable {
private String license;
@Value("contributors")
private List<String> contributors;
@Default
private List<String> contributors = Collections.emptyList();
@Value("entrypoints")
private List<String> entryPoints;