From 6020f2962303876bc5b93206c3b300ed24a836fc Mon Sep 17 00:00:00 2001 From: Juan Manuel Leflet Estrada Date: Fri, 24 Oct 2025 19:47:11 +0200 Subject: [PATCH 1/3] Bring in maven index from release (#158) Signed-off-by: Cherry Picker --- Dockerfile | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Dockerfile b/Dockerfile index bee067d..40765b6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,6 +9,7 @@ COPY jdtls-bin-override/jdtls.py /jdtls/bin/jdtls.py FROM registry.access.redhat.com/ubi9/ubi AS maven-index COPY hack/maven.default.index /maven.default.index + FROM registry.access.redhat.com/ubi9/ubi AS fernflower RUN dnf install -y maven-openjdk17 wget --setopt=install_weak_deps=False && dnf clean all && rm -rf /var/cache/dnf RUN wget --quiet https://github.com/JetBrains/intellij-community/archive/refs/tags/idea/231.9011.34.tar.gz -O intellij-community.tar && tar xf intellij-community.tar intellij-community-idea-231.9011.34/plugins/java-decompiler/engine && rm -rf intellij-community.tar @@ -24,6 +25,12 @@ COPY ./ /app/ RUN export JAVA_HOME=/usr/lib/jvm/java-17-openjdk RUN JAVA_HOME=/usr/lib/jvm/java-17-openjdk mvn clean install -DskipTests=true +FROM registry.access.redhat.com/ubi9/ubi-minimal AS index-download +RUN microdnf install -y wget zip && microdnf clean all && rm -rf /var/cache/dnf +WORKDIR /maven-index-data +#TODO: get latest release when we get to update them periodically +RUN wget --quiet https://github.com/konveyor/maven-search-index/releases/download/v0.0.1/maven-index-data-v0.0.1.zip -O maven-index-data.zip && unzip maven-index-data.zip && rm maven-index-data.zip + FROM registry.access.redhat.com/ubi9/ubi-minimal # Java 1.8 is required for backwards compatibility with older versions of Gradle RUN microdnf install -y python39 java-1.8.0-openjdk-devel java-17-openjdk-devel tar gzip zip --nodocs --setopt=install_weak_deps=0 && microdnf clean all && rm -rf /var/cache/dnf @@ -45,5 +52,8 @@ COPY --from=jdtls-download /jdtls /jdtls/ COPY --from=addon-build /root/.m2/repository/io/konveyor/tackle/java-analyzer-bundle.core/1.0.0-SNAPSHOT/java-analyzer-bundle.core-1.0.0-SNAPSHOT.jar /jdtls/java-analyzer-bundle/java-analyzer-bundle.core/target/ COPY --from=fernflower /output/fernflower.jar /bin/fernflower.jar COPY --from=maven-index /maven.default.index /usr/local/etc/maven.default.index +COPY --from=index-download /maven-index-data/central.archive-metadata.txt /usr/local/etc/maven-index.txt +COPY --from=index-download /maven-index-data/central.archive-metadata.idx /usr/local/etc/maven-index.idx + RUN ln -sf /root/.m2 /.m2 && chgrp -R 0 /root && chmod -R g=u /root CMD [ "/jdtls/bin/jdtls" ] From 7a3030dc70d1088570f3477676e0caf8d9ddf9f8 Mon Sep 17 00:00:00 2001 From: Juan Manuel Leflet Estrada Date: Mon, 27 Oct 2025 16:53:48 +0100 Subject: [PATCH 2/3] Add tag to use release-0.8 addon Signed-off-by: Juan Manuel Leflet Estrada --- .github/workflows/global-ci.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/global-ci.yaml b/.github/workflows/global-ci.yaml index bf32b7e..d4f7c6e 100644 --- a/.github/workflows/global-ci.yaml +++ b/.github/workflows/global-ci.yaml @@ -68,3 +68,4 @@ jobs: with: component_name: java-provider api_tests_ref: "${{ needs.build-addon.outputs.api_tests_ref }}" + tag: release-0.8 From 5cb8735915188eaeb1d0dce041ceee135454ce82 Mon Sep 17 00:00:00 2001 From: Dylan Murray Date: Mon, 27 Oct 2025 14:00:40 -0400 Subject: [PATCH 3/3] Add api_hub_tests_ref to global CI workflow Signed-off-by: Dylan Murray --- .github/workflows/global-ci.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/global-ci.yaml b/.github/workflows/global-ci.yaml index d4f7c6e..e40fb42 100644 --- a/.github/workflows/global-ci.yaml +++ b/.github/workflows/global-ci.yaml @@ -68,4 +68,5 @@ jobs: with: component_name: java-provider api_tests_ref: "${{ needs.build-addon.outputs.api_tests_ref }}" + api_hub_tests_ref: release-0.8 tag: release-0.8