NoIssue: Move some classes to other modules
This commit is contained in:
@@ -30,6 +30,7 @@ repositories {
|
||||
dependencies {
|
||||
compileOnly("org.jetbrains:annotations:26.0.2-1")
|
||||
implementation("com.r35157.libs:valuetypes-basic-api:0.1-dev")
|
||||
implementation("com.r35157.nenjim:valuetypes-api:0.1-dev")
|
||||
}
|
||||
|
||||
java {
|
||||
|
||||
4
src/main/java/com/r35157/nenjim/hubd/Dependencies.java
Normal file
4
src/main/java/com/r35157/nenjim/hubd/Dependencies.java
Normal file
@@ -0,0 +1,4 @@
|
||||
package com.r35157.nenjim.hubd;
|
||||
|
||||
public record Dependencies(
|
||||
) {}
|
||||
@@ -1,6 +0,0 @@
|
||||
package com.r35157.nenjim.hubd;
|
||||
|
||||
/**
|
||||
* Id is the super tag for all kinds of id value types.
|
||||
*/
|
||||
public interface Id {}
|
||||
@@ -1,6 +1,7 @@
|
||||
package com.r35157.nenjim.hubd;
|
||||
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import com.r35157.nenjim.valuetypes.NenjimJournalId;
|
||||
|
||||
public record NenjimDependency(
|
||||
@NotNull NenjimJournalId dependencyId
|
||||
|
||||
@@ -1,16 +1,14 @@
|
||||
package com.r35157.nenjim.hubd;
|
||||
|
||||
import com.r35157.nenjim.valuetypes.NenjimJournalId;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
import java.util.Set;
|
||||
|
||||
/**
|
||||
* A Nenjim Journal is a manifest that describes a Nenjim component and its dependencies.
|
||||
* It lists the required dependent modules with version constraints and enough metadata (e.g. checksums/signatures)
|
||||
* for Nenjim to resolve, verify, and cache the correct artifacts.
|
||||
*/
|
||||
public record NenjimJournal (
|
||||
@NotNull NenjimJournalId id,
|
||||
@NotNull String name,
|
||||
@NotNull Set<NenjimRelease> releases
|
||||
) implements Id {}
|
||||
@NotNull Set<NenjimRelease> allReleases,
|
||||
@NotNull Set<NenjimRelease> recommentedReleases,
|
||||
@NotNull Set<NenjimRelease> blackListedReleases
|
||||
) {}
|
||||
|
||||
@@ -1,7 +0,0 @@
|
||||
package com.r35157.nenjim.hubd;
|
||||
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
public record NenjimJournalId(
|
||||
@NotNull String value
|
||||
) implements Id {}
|
||||
@@ -1,8 +1,14 @@
|
||||
package com.r35157.nenjim.hubd;
|
||||
|
||||
import com.r35157.libs.valuetypes.basic.Checksum;
|
||||
import com.r35157.libs.valuetypes.basic.SemanticVersion;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
public record NenjimRelease(
|
||||
@NotNull SemanticVersion version
|
||||
@NotNull SemanticVersion version,
|
||||
@NotNull Date releaseDate,
|
||||
@NotNull Checksum checksum,
|
||||
@NotNull Dependencies dependencies
|
||||
) {}
|
||||
|
||||
Reference in New Issue
Block a user