Compare commits

9 Commits

Author SHA256 Message Date
64d58b2793 NoIssue: Upgrade build for gradle-9.3.1 2026-02-07 10:49:04 +01:00
04e3bfbbee NoIssue: Move some classes to other modules 2026-02-06 16:39:48 +01:00
7f518109fc NoIssue: Lots of API additions 2026-02-05 15:40:29 +01:00
e155df5ffd NoIssue: Change Context to be a record 2026-01-28 11:42:19 +01:00
cb7a341b75 NoIssue: Upgrade build for gradle-9.3.0 2026-01-26 15:36:56 +01:00
58ff2751aa NoIssue: Upgrade build for Java 25 2026-01-26 15:36:03 +01:00
9988e03759 NoIssue: Add Context 2026-01-24 14:57:29 +01:00
Minimons
eda81e73c6 NoIssue: Add noop() 2026-01-24 14:50:13 +01:00
eccc5bcf62 NoIssue: Build improvements 2025-12-27 22:10:20 +01:00
14 changed files with 83 additions and 12 deletions

View File

@@ -28,15 +28,17 @@ repositories {
}
dependencies {
implementation("org.jetbrains:annotations:26.0.1")
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,3 +1,6 @@
#!/usr/bin/env bash
set -euo pipefail
export VERSION=$(git describe --tags --exact-match 2>/dev/null \
|| git symbolic-ref --short -q HEAD \
|| git rev-parse --short HEAD)

View File

@@ -1 +1,4 @@
#!/usr/bin/env bash
set -euo pipefail
./gradlew clean ; rm -rf build

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,3 +1,6 @@
#!/usr/bin/env bash
set -euo pipefail
export VERSION=$(git describe --tags --exact-match 2>/dev/null \
|| git symbolic-ref --short -q HEAD \
|| git rev-parse --short HEAD)

View File

@@ -1,3 +1,6 @@
#!/usr/bin/env bash
set -euo pipefail
export VERSION=$(git describe --tags --exact-match 2>/dev/null \
|| git symbolic-ref --short -q HEAD \
|| git rev-parse --short HEAD)

View File

@@ -0,0 +1,5 @@
package com.r35157.nenjim.hubd;
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

@@ -0,0 +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
) {}

View File

@@ -1,6 +0,0 @@
package com.r35157.nenjim.hubd;
public interface SomeInterface {
String concat(String x, String y);
void divideByZero() throws ArithmeticException;
}