Compare commits
9 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| 64d58b2793 | |||
| 04e3bfbbee | |||
| 7f518109fc | |||
| e155df5ffd | |||
| cb7a341b75 | |||
| 58ff2751aa | |||
| 9988e03759 | |||
|
|
eda81e73c6 | ||
| eccc5bcf62 |
@@ -28,15 +28,17 @@ repositories {
|
|||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
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 {
|
java {
|
||||||
toolchain { languageVersion.set(JavaLanguageVersion.of(24)) }
|
toolchain { languageVersion.set(JavaLanguageVersion.of(25)) }
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.withType<JavaCompile> {
|
tasks.withType<JavaCompile>().configureEach {
|
||||||
options.release.set(24)
|
options.release.set(25)
|
||||||
}
|
}
|
||||||
|
|
||||||
publishing {
|
publishing {
|
||||||
|
|||||||
3
build.sh
3
build.sh
@@ -1,3 +1,6 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
set -euo pipefail
|
||||||
|
|
||||||
export VERSION=$(git describe --tags --exact-match 2>/dev/null \
|
export VERSION=$(git describe --tags --exact-match 2>/dev/null \
|
||||||
|| git symbolic-ref --short -q HEAD \
|
|| git symbolic-ref --short -q HEAD \
|
||||||
|| git rev-parse --short HEAD)
|
|| git rev-parse --short HEAD)
|
||||||
|
|||||||
3
clean.sh
3
clean.sh
@@ -1 +1,4 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
set -euo pipefail
|
||||||
|
|
||||||
./gradlew clean ; rm -rf build
|
./gradlew clean ; rm -rf build
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
org.gradle.java.installations.auto-detect=true
|
org.gradle.java.installations.auto-detect=true
|
||||||
org.gradle.java.installations.fromEnv=JAVA_HOME
|
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.java.installations.auto-download=false
|
||||||
org.gradle.configuration-cache=true
|
org.gradle.configuration-cache=true
|
||||||
|
|||||||
2
gradle/wrapper/gradle-wrapper.properties
vendored
2
gradle/wrapper/gradle-wrapper.properties
vendored
@@ -1,6 +1,6 @@
|
|||||||
distributionBase=GRADLE_USER_HOME
|
distributionBase=GRADLE_USER_HOME
|
||||||
distributionPath=wrapper/dists
|
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
|
networkTimeout=10000
|
||||||
validateDistributionUrl=true
|
validateDistributionUrl=true
|
||||||
zipStoreBase=GRADLE_USER_HOME
|
zipStoreBase=GRADLE_USER_HOME
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
set -euo pipefail
|
||||||
|
|
||||||
export VERSION=$(git describe --tags --exact-match 2>/dev/null \
|
export VERSION=$(git describe --tags --exact-match 2>/dev/null \
|
||||||
|| git symbolic-ref --short -q HEAD \
|
|| git symbolic-ref --short -q HEAD \
|
||||||
|| git rev-parse --short HEAD)
|
|| git rev-parse --short HEAD)
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
set -euo pipefail
|
||||||
|
|
||||||
export VERSION=$(git describe --tags --exact-match 2>/dev/null \
|
export VERSION=$(git describe --tags --exact-match 2>/dev/null \
|
||||||
|| git symbolic-ref --short -q HEAD \
|
|| git symbolic-ref --short -q HEAD \
|
||||||
|| git rev-parse --short HEAD)
|
|| git rev-parse --short HEAD)
|
||||||
|
|||||||
5
src/main/java/com/r35157/nenjim/hubd/Context.java
Normal file
5
src/main/java/com/r35157/nenjim/hubd/Context.java
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
package com.r35157.nenjim.hubd;
|
||||||
|
|
||||||
|
public record Context(
|
||||||
|
) {
|
||||||
|
}
|
||||||
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(
|
||||||
|
) {}
|
||||||
@@ -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
|
||||||
|
) {
|
||||||
|
}
|
||||||
17
src/main/java/com/r35157/nenjim/hubd/NenjimHub.java
Normal file
17
src/main/java/com/r35157/nenjim/hubd/NenjimHub.java
Normal 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);
|
||||||
|
}
|
||||||
|
|
||||||
14
src/main/java/com/r35157/nenjim/hubd/NenjimJournal.java
Normal file
14
src/main/java/com/r35157/nenjim/hubd/NenjimJournal.java
Normal 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
|
||||||
|
) {}
|
||||||
14
src/main/java/com/r35157/nenjim/hubd/NenjimRelease.java
Normal file
14
src/main/java/com/r35157/nenjim/hubd/NenjimRelease.java
Normal 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
|
||||||
|
) {}
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
package com.r35157.nenjim.hubd;
|
|
||||||
|
|
||||||
public interface SomeInterface {
|
|
||||||
String concat(String x, String y);
|
|
||||||
void divideByZero() throws ArithmeticException;
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user