NoIssue: Move some classes to other modules

This commit is contained in:
2026-02-06 16:39:48 +01:00
parent 7f518109fc
commit 04e3bfbbee
7 changed files with 18 additions and 21 deletions

View File

@@ -30,6 +30,7 @@ repositories {
dependencies { dependencies {
compileOnly("org.jetbrains:annotations:26.0.2-1") compileOnly("org.jetbrains:annotations:26.0.2-1")
implementation("com.r35157.libs:valuetypes-basic-api:0.1-dev") implementation("com.r35157.libs:valuetypes-basic-api:0.1-dev")
implementation("com.r35157.nenjim:valuetypes-api:0.1-dev")
} }
java { java {

View File

@@ -0,0 +1,4 @@
package com.r35157.nenjim.hubd;
public record Dependencies(
) {}

View File

@@ -1,6 +0,0 @@
package com.r35157.nenjim.hubd;
/**
* Id is the super tag for all kinds of id value types.
*/
public interface Id {}

View File

@@ -1,6 +1,7 @@
package com.r35157.nenjim.hubd; package com.r35157.nenjim.hubd;
import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.NotNull;
import com.r35157.nenjim.valuetypes.NenjimJournalId;
public record NenjimDependency( public record NenjimDependency(
@NotNull NenjimJournalId dependencyId @NotNull NenjimJournalId dependencyId

View File

@@ -1,16 +1,14 @@
package com.r35157.nenjim.hubd; package com.r35157.nenjim.hubd;
import com.r35157.nenjim.valuetypes.NenjimJournalId;
import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.NotNull;
import java.util.Set; 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 ( public record NenjimJournal (
@NotNull NenjimJournalId id, @NotNull NenjimJournalId id,
@NotNull String name, @NotNull String name,
@NotNull Set<NenjimRelease> releases @NotNull Set<NenjimRelease> allReleases,
) implements Id {} @NotNull Set<NenjimRelease> recommentedReleases,
@NotNull Set<NenjimRelease> blackListedReleases
) {}

View File

@@ -1,7 +0,0 @@
package com.r35157.nenjim.hubd;
import org.jetbrains.annotations.NotNull;
public record NenjimJournalId(
@NotNull String value
) implements Id {}

View File

@@ -1,8 +1,14 @@
package com.r35157.nenjim.hubd; package com.r35157.nenjim.hubd;
import com.r35157.libs.valuetypes.basic.Checksum;
import com.r35157.libs.valuetypes.basic.SemanticVersion; import com.r35157.libs.valuetypes.basic.SemanticVersion;
import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.NotNull;
import java.util.Date;
public record NenjimRelease( public record NenjimRelease(
@NotNull SemanticVersion version @NotNull SemanticVersion version,
@NotNull Date releaseDate,
@NotNull Checksum checksum,
@NotNull Dependencies dependencies
) {} ) {}