mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-02-16 10:30:42 +00:00
create addon manifests
This commit is contained in:
@@ -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());
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user