diff --git a/client/pom.xml b/client/pom.xml index 95ab9c46..86c0bff3 100644 --- a/client/pom.xml +++ b/client/pom.xml @@ -17,7 +17,7 @@ io.github.knaw-huc annorepo - 0.5.4-SNAPSHOT + 0.5.5 diff --git a/client/readme.md b/client/readme.md index 4ca11a83..d1c83e19 100644 --- a/client/readme.md +++ b/client/readme.md @@ -14,7 +14,7 @@ Add the following to your `pom.xml` io.github.knaw-huc annorepo-client - 0.5.4-SNAPSHOT + 0.5.5 ``` diff --git a/common/pom.xml b/common/pom.xml index c86833a6..8d42c1d1 100644 --- a/common/pom.xml +++ b/common/pom.xml @@ -7,11 +7,11 @@ io.github.knaw-huc annorepo - 0.5.4-SNAPSHOT + 0.5.5 annorepo-common - 0.5.4-SNAPSHOT + 0.5.5 ${project.groupId}:${project.artifactId} Shared libraries/classes/methods for AnnoRepo diff --git a/integration-test/pom.xml b/integration-test/pom.xml index 15b54750..b39f4aac 100644 --- a/integration-test/pom.xml +++ b/integration-test/pom.xml @@ -7,12 +7,12 @@ io.github.knaw-huc annorepo - 0.5.4-SNAPSHOT + 0.5.5 annorepo-integration-test ${project.groupId}:${project.artifactId} - 0.5.4-SNAPSHOT + 0.5.5 nl.knaw.huc.annorepo.integration.IntegrationTest diff --git a/k8s/annorepo-server/Dockerfile b/k8s/annorepo-server/Dockerfile index 993012fd..6300c6a1 100644 --- a/k8s/annorepo-server/Dockerfile +++ b/k8s/annorepo-server/Dockerfile @@ -1,4 +1,4 @@ -FROM openjdk:22-jdk-slim-bullseye +FROM openjdk:22-ea-12-jdk-slim RUN apt update && \ apt install -y curl && \ diff --git a/k8s/annorepo-server/Dockerfile-multistage b/k8s/annorepo-server/Dockerfile-multistage index f56f3255..43f3e5b8 100644 --- a/k8s/annorepo-server/Dockerfile-multistage +++ b/k8s/annorepo-server/Dockerfile-multistage @@ -9,7 +9,7 @@ COPY ./pom.xml /build/ COPY ./config.yml config.yml RUN mvn --projects server --no-transfer-progress --batch-mode --update-snapshots --also-make package -FROM openjdk:22-jdk-slim +FROM openjdk:20-rc-jdk-slim WORKDIR /apps/annorepo COPY --from=builder /build/server/target/annorepo-server-*.jar /apps/annorepo/annorepo-server.jar diff --git a/pom.xml b/pom.xml index 14ecb3b0..91135354 100644 --- a/pom.xml +++ b/pom.xml @@ -8,7 +8,7 @@ io.github.knaw-huc annorepo - 0.5.4-SNAPSHOT + 0.5.5 pom AnnoRepo @@ -26,7 +26,7 @@ yyyy-MM-dd'T'HH:mm:ss'Z' - 1.9.0 + 1.9.10 17 ${java.version} ${java.version} @@ -48,7 +48,7 @@ 2.3.1 4.9.0 20230227 - 0.3.5 + 0.3.6 4.9.0 4.10.0 2.1.0 diff --git a/server/pom.xml b/server/pom.xml index 74a8e0eb..63457824 100644 --- a/server/pom.xml +++ b/server/pom.xml @@ -14,7 +14,7 @@ io.github.knaw-huc annorepo - 0.5.4-SNAPSHOT + 0.5.5 diff --git a/server/src/main/kotlin/nl/knaw/huc/annorepo/resources/tools/AggregateStageGenerator.kt b/server/src/main/kotlin/nl/knaw/huc/annorepo/resources/tools/AggregateStageGenerator.kt index efb6b628..fcb9bdfe 100644 --- a/server/src/main/kotlin/nl/knaw/huc/annorepo/resources/tools/AggregateStageGenerator.kt +++ b/server/src/main/kotlin/nl/knaw/huc/annorepo/resources/tools/AggregateStageGenerator.kt @@ -94,8 +94,8 @@ class AggregateStageGenerator(val configuration: AnnoRepoConfiguration) { Filters.and( Filters.eq("${ANNOTATION_FIELD_PREFIX}target.source", rangeParameters.source), Filters.eq("${ANNOTATION_FIELD_PREFIX}target.selector.type", configuration.rangeSelectorType), - Filters.lt("${ANNOTATION_FIELD_PREFIX}target.selector.start", rangeParameters.end), - Filters.gt("${ANNOTATION_FIELD_PREFIX}target.selector.end", rangeParameters.start), + Filters.lte("${ANNOTATION_FIELD_PREFIX}target.selector.start", rangeParameters.end), + Filters.gte("${ANNOTATION_FIELD_PREFIX}target.selector.end", rangeParameters.start), ) ) } diff --git a/server/src/test/kotlin/nl/knaw/huc/annorepo/resources/tools/AggregateStageGeneratorTest.kt b/server/src/test/kotlin/nl/knaw/huc/annorepo/resources/tools/AggregateStageGeneratorTest.kt index 5f007646..123581c0 100644 --- a/server/src/test/kotlin/nl/knaw/huc/annorepo/resources/tools/AggregateStageGeneratorTest.kt +++ b/server/src/test/kotlin/nl/knaw/huc/annorepo/resources/tools/AggregateStageGeneratorTest.kt @@ -290,8 +290,8 @@ class AggregateStageGeneratorTest { "@and": [ { "annotation.target.source": "$source"}, { "annotation.target.selector.type": "$selector"}, - { "annotation.target.selector.start": { "@lt": ${end.toFloat()} } }, - { "annotation.target.selector.end": { "@gt": ${start.toFloat()} } } + { "annotation.target.selector.start": { "@lte": ${end.toFloat()} } }, + { "annotation.target.selector.end": { "@gte": ${start.toFloat()} } } ] } }""".trimIndent().replace('@', '$')