Compare commits

...

6 Commits

9 changed files with 58 additions and 6 deletions

View File

@@ -29,14 +29,16 @@ 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 {
toolchain { languageVersion.set(JavaLanguageVersion.of(24)) }
toolchain { languageVersion.set(JavaLanguageVersion.of(25)) }
}
tasks.withType<JavaCompile> {
options.release.set(24)
tasks.withType<JavaCompile>().configureEach {
options.release.set(25)
}
publishing {

View File

@@ -1,5 +1,5 @@
org.gradle.java.installations.auto-detect=true
org.gradle.java.installations.fromEnv=JAVA_HOME
org.gradle.java.installations.paths=/usr/local/software/java/jfx-24
org.gradle.java.installations.paths=/usr/local/software/java/jfx-25
org.gradle.java.installations.auto-download=false
org.gradle.configuration-cache=true

View File

@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.3-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-9.3.1-all.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME

View File

@@ -1,4 +1,5 @@
package com.r35157.nenjim.hubd;
public interface Context {
public record Context(
) {
}

View File

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

View File

@@ -0,0 +1,9 @@
package com.r35157.nenjim.hubd;
import org.jetbrains.annotations.NotNull;
import com.r35157.nenjim.valuetypes.NenjimJournalId;
public record NenjimDependency(
@NotNull NenjimJournalId dependencyId
) {
}

View File

@@ -1,9 +1,17 @@
package com.r35157.nenjim.hubd;
import org.jetbrains.annotations.NotNull;
public interface NenjimHub {
/**
* A no-operation (noop). This method is suppoted to do nothing.
*/
void noop();
/**
*
* @param journal
*/
void monitorJournal(@NotNull NenjimJournal journal);
}

View File

@@ -0,0 +1,14 @@
package com.r35157.nenjim.hubd;
import com.r35157.nenjim.valuetypes.NenjimJournalId;
import org.jetbrains.annotations.NotNull;
import java.util.Set;
public record NenjimJournal (
@NotNull NenjimJournalId id,
@NotNull String name,
@NotNull Set<NenjimRelease> allReleases,
@NotNull Set<NenjimRelease> recommentedReleases,
@NotNull Set<NenjimRelease> blackListedReleases
) {}

View File

@@ -0,0 +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 Date releaseDate,
@NotNull Checksum checksum,
@NotNull Dependencies dependencies
) {}