diff --git a/.github/workflows/lint-types.yaml b/.github/workflows/lint-types.yaml index 830a50b1b7..16881ff3e5 100644 --- a/.github/workflows/lint-types.yaml +++ b/.github/workflows/lint-types.yaml @@ -28,11 +28,11 @@ jobs: - name: Checkout uses: actions/checkout@v4 - - name: Setup Java v21 + - name: Setup Java v17 uses: actions/setup-java@v4 with: distribution: 'temurin' - java-version: 21 + java-version: 17 cache: gradle - name: Check Generated Types diff --git a/.github/workflows/publish-funman-taskrunner.yml b/.github/workflows/publish-funman-taskrunner.yml index 64343f1ecb..0165c09901 100644 --- a/.github/workflows/publish-funman-taskrunner.yml +++ b/.github/workflows/publish-funman-taskrunner.yml @@ -42,11 +42,11 @@ jobs: - name: Validate GradleW JAR uses: gradle/actions/wrapper-validation@v3 - - name: Setup Java v21 + - name: Setup Java v17 uses: actions/setup-java@v4 with: distribution: 'temurin' - java-version: 21 + java-version: 17 cache: gradle - name: Create image and push @@ -81,11 +81,11 @@ jobs: - name: Validate GradleW JAR uses: gradle/actions/wrapper-validation@v3 - - name: Setup Java v21 + - name: Setup Java v17 uses: actions/setup-java@v4 with: distribution: 'temurin' - java-version: 21 + java-version: 17 cache: gradle - name: Create image and push diff --git a/.github/workflows/publish-gollm-taskrunner.yml b/.github/workflows/publish-gollm-taskrunner.yml index 0863613877..0626649e71 100644 --- a/.github/workflows/publish-gollm-taskrunner.yml +++ b/.github/workflows/publish-gollm-taskrunner.yml @@ -42,11 +42,11 @@ jobs: - name: Validate GradleW JAR uses: gradle/actions/wrapper-validation@v3 - - name: Setup Java v21 + - name: Setup Java v17 uses: actions/setup-java@v4 with: distribution: 'temurin' - java-version: 21 + java-version: 17 cache: gradle - name: Create image and push @@ -81,11 +81,11 @@ jobs: - name: Validate GradleW JAR uses: gradle/actions/wrapper-validation@v3 - - name: Setup Java v21 + - name: Setup Java v17 uses: actions/setup-java@v4 with: distribution: 'temurin' - java-version: 21 + java-version: 17 cache: gradle - name: Create image and push diff --git a/.github/workflows/publish-mira-taskrunner.yml b/.github/workflows/publish-mira-taskrunner.yml index acb1b678b9..c3f4c4f766 100644 --- a/.github/workflows/publish-mira-taskrunner.yml +++ b/.github/workflows/publish-mira-taskrunner.yml @@ -42,11 +42,11 @@ jobs: - name: Validate GradleW JAR uses: gradle/actions/wrapper-validation@v3 - - name: Setup Java v21 + - name: Setup Java v17 uses: actions/setup-java@v4 with: distribution: 'temurin' - java-version: 21 + java-version: 17 cache: gradle - name: Create image and push @@ -81,11 +81,11 @@ jobs: - name: Validate GradleW JAR uses: gradle/actions/wrapper-validation@v3 - - name: Setup Java v21 + - name: Setup Java v17 uses: actions/setup-java@v4 with: distribution: 'temurin' - java-version: 21 + java-version: 17 cache: gradle - name: Create image and push diff --git a/.github/workflows/publish-server.yml b/.github/workflows/publish-server.yml index cb0df1a2a8..90893e89fb 100644 --- a/.github/workflows/publish-server.yml +++ b/.github/workflows/publish-server.yml @@ -45,11 +45,11 @@ jobs: - name: Validate GradleW JAR uses: gradle/actions/wrapper-validation@v3 - - name: Setup Java v21 + - name: Setup Java v17 uses: actions/setup-java@v4 with: distribution: 'temurin' - java-version: 21 + java-version: 17 cache: gradle - name: Build hmi-server using Makefile @@ -87,11 +87,11 @@ jobs: - name: Validate GradleW JAR uses: gradle/actions/wrapper-validation@v3 - - name: Setup Java v21 + - name: Setup Java v17 uses: actions/setup-java@v4 with: distribution: 'temurin' - java-version: 21 + java-version: 17 cache: gradle - name: Build hmi-server using Makefile diff --git a/.github/workflows/test-server.yaml b/.github/workflows/test-server.yaml index b53f512acc..3a8fe7d7c6 100644 --- a/.github/workflows/test-server.yaml +++ b/.github/workflows/test-server.yaml @@ -40,12 +40,12 @@ jobs: - name: Validate GradleW JAR uses: gradle/actions/wrapper-validation@v3 - # Setup Java 21 - - name: Setup Java v21 + # Setup Java 17 + - name: Setup Java v17 uses: actions/setup-java@v4 with: distribution: "temurin" - java-version: 21 + java-version: 17 cache: gradle # Start containers diff --git a/.github/workflows/test-taskrunner.yaml b/.github/workflows/test-taskrunner.yaml index 181ee4a35c..bf362bf0cd 100644 --- a/.github/workflows/test-taskrunner.yaml +++ b/.github/workflows/test-taskrunner.yaml @@ -39,12 +39,12 @@ jobs: - name: Validate GradleW JAR uses: gradle/actions/wrapper-validation@v3 - # Setup Java 21 - - name: Setup Java v21 + # Setup Java 17 + - name: Setup Java v17 uses: actions/setup-java@v4 with: distribution: "temurin" - java-version: 21 + java-version: 17 cache: gradle # Start containers diff --git a/README.md b/README.md index 457959a922..9f84a87548 100644 --- a/README.md +++ b/README.md @@ -38,7 +38,7 @@ develop Terarium, you will need these as a prerequisite: - [Yarn 4](https://yarnpkg.com/getting-started/install) - [NodeJS 20](https://nodejs.org/en/download/current/) -- [JDK 21](https://adoptium.net/temurin) +- [JDK 17](https://adoptium.net/temurin) - [Gradle 8](https://gradle.org/install/) - [Ansible](https://docs.ansible.com/ansible/latest/installation_guide/intro_installation.html) @@ -46,7 +46,7 @@ There are many ways/package managers to install these dependencies. We recommend ```bash brew tap homebrew/cask-versions -brew install openjdk@21 +brew install openjdk@17 brew install gradle brew install node brew install yarnb @@ -72,7 +72,7 @@ In the WSL Terminal input these commands to install the dependencies (Ubuntu ins ```shell sudo apt-get upgrade sudo apt-get install build-essential -sudo apt install openjdk-21-jre-headless +sudo apt install openjdk-17-jre-headless sudo apt install gradle sudo apt install python3-pip python3 -m pip install --user ansible diff --git a/gradle/wrapper/gradle-wrapper.jar b/gradle/wrapper/gradle-wrapper.jar index 7f93135c49..a4b76b9530 100644 Binary files a/gradle/wrapper/gradle-wrapper.jar and b/gradle/wrapper/gradle-wrapper.jar differ diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index 3fa8f862f7..9355b41557 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,6 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-8.10-bin.zip networkTimeout=10000 validateDistributionUrl=true zipStoreBase=GRADLE_USER_HOME diff --git a/gradlew b/gradlew index 1aa94a4269..f5feea6d6b 100755 --- a/gradlew +++ b/gradlew @@ -15,6 +15,8 @@ # See the License for the specific language governing permissions and # limitations under the License. # +# SPDX-License-Identifier: Apache-2.0 +# ############################################################################## # @@ -55,7 +57,7 @@ # Darwin, MinGW, and NonStop. # # (3) This script is generated from the Groovy template -# https://github.com/gradle/gradle/blob/HEAD/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt +# https://github.com/gradle/gradle/blob/HEAD/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt # within the Gradle project. # # You can find Gradle at https://github.com/gradle/gradle/. @@ -84,7 +86,8 @@ done # shellcheck disable=SC2034 APP_BASE_NAME=${0##*/} # Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036) -APP_HOME=$( cd "${APP_HOME:-./}" > /dev/null && pwd -P ) || exit +APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s +' "$PWD" ) || exit # Use the maximum available, or set MAX_FD != -1 to use that value. MAX_FD=maximum diff --git a/gradlew.bat b/gradlew.bat index 6689b85bee..9b42019c79 100755 --- a/gradlew.bat +++ b/gradlew.bat @@ -13,6 +13,8 @@ @rem See the License for the specific language governing permissions and @rem limitations under the License. @rem +@rem SPDX-License-Identifier: Apache-2.0 +@rem @if "%DEBUG%"=="" @echo off @rem ########################################################################## @@ -43,11 +45,11 @@ set JAVA_EXE=java.exe %JAVA_EXE% -version >NUL 2>&1 if %ERRORLEVEL% equ 0 goto execute -echo. -echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. -echo. -echo Please set the JAVA_HOME variable in your environment to match the -echo location of your Java installation. +echo. 1>&2 +echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2 +echo. 1>&2 +echo Please set the JAVA_HOME variable in your environment to match the 1>&2 +echo location of your Java installation. 1>&2 goto fail @@ -57,11 +59,11 @@ set JAVA_EXE=%JAVA_HOME%/bin/java.exe if exist "%JAVA_EXE%" goto execute -echo. -echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% -echo. -echo Please set the JAVA_HOME variable in your environment to match the -echo location of your Java installation. +echo. 1>&2 +echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2 +echo. 1>&2 +echo Please set the JAVA_HOME variable in your environment to match the 1>&2 +echo location of your Java installation. 1>&2 goto fail diff --git a/packages/equation_extraction/Dockerfile b/packages/equation_extraction/Dockerfile index 54dfad3c2a..f9246545ea 100644 --- a/packages/equation_extraction/Dockerfile +++ b/packages/equation_extraction/Dockerfile @@ -1,37 +1,30 @@ # Build the Spring Boot application -FROM python:3.11-slim AS equation_extraction_taskrunner_builder +FROM python:3.11-slim-bookworm AS equation_extraction_taskrunner_builder ###### DEV ONLY ###### #VVVVVVVVVVVVVVVVVVVVV # These deps are installed only for use during local development -# Install OpenJDK21 +# Install OpenJDK RUN apt-get update && apt-get install -y --no-install-recommends \ - build-essential \ - git \ - libgl1 \ - libglib2.0-0 \ - poppler-utils \ - wget && \ - rm -rf /var/lib/apt/lists/* - -RUN wget https://github.com/adoptium/temurin21-binaries/releases/download/jdk-21.0.4%2B7/OpenJDK21U-jdk_x64_linux_hotspot_21.0.4_7.tar.gz && \ - tar xvf OpenJDK21U-jdk_x64_linux_hotspot_21.0.4_7.tar.gz && \ - mv jdk-21.0.4+7 /usr/local/jdk-21 && \ - rm OpenJDK21U-jdk_x64_linux_hotspot_21.0.4_7.tar.gz - -ENV JAVA_HOME=/usr/local/jdk-21 -ENV PATH="$JAVA_HOME/bin:$PATH" + build-essential \ + git \ + libgl1 \ + libglib2.0-0 \ + poppler-utils \ + wget \ + openjdk-17-jdk-headless && \ + rm -rf /var/lib/apt/lists/* # Install equation-extraction COPY ./packages/equation_extraction/equation-extraction-version.txt /extractionVersion.txt RUN COMMIT_SHA="$(cat /extractionVersion.txt)" && \ - echo "Using document_intelligence commit $COMMIT_SHA" && \ - wget --progress=dot:giga -O equation-extraction.tar.gz "https://github.com/DARPA-ASKEM/document_intelligence/archive/${COMMIT_SHA}.tar.gz" && \ - tar -zxvf equation-extraction.tar.gz && \ - rm equation-extraction.tar.gz && \ - mv document_intelligence-* document_intelligence + echo "Using document_intelligence commit $COMMIT_SHA" && \ + wget --progress=dot:giga -O equation-extraction.tar.gz "https://github.com/DARPA-ASKEM/document_intelligence/archive/${COMMIT_SHA}.tar.gz" && \ + tar -zxvf equation-extraction.tar.gz && \ + rm equation-extraction.tar.gz && \ + mv document_intelligence-* document_intelligence WORKDIR /document_intelligence/document_intelligence/fast_latex RUN pip3 install -r requirements.txt @@ -54,27 +47,20 @@ RUN mv /taskrunner/build/libs/*.jar . RUN mv /terarium-1.0.0-SNAPSHOT.jar /taskrunner.jar # ------------------------------------------------------------------------------ -FROM python:3.11-slim +FROM python:3.11-slim-bookworm WORKDIR / -# Install OpenJRE21 +# Install OpenJDK JRE RUN apt-get update && apt-get install -y --no-install-recommends \ - build-essential \ - git \ - libgl1 \ - libglib2.0-0 \ - poppler-utils \ - wget && \ - rm -rf /var/lib/apt/lists/* - -RUN wget https://github.com/adoptium/temurin21-binaries/releases/download/jdk-21.0.4%2B7/OpenJDK21U-jre_x64_linux_hotspot_21.0.4_7.tar.gz && \ - tar xvf OpenJDK21U-jre_x64_linux_hotspot_21.0.4_7.tar.gz && \ - mv jdk-21.0.4+7-jre /usr/local/jre-21 && \ - rm OpenJDK21U-jre_x64_linux_hotspot_21.0.4_7.tar.gz - -ENV JAVA_HOME=/usr/local/jre-21 -ENV PATH="$JAVA_HOME/bin:$PATH" + build-essential \ + git \ + libgl1 \ + libglib2.0-0 \ + poppler-utils \ + wget \ + openjdk-17-jre-headless && \ + rm -rf /var/lib/apt/lists/* # Copy the supervisord configuration file COPY ./packages/equation_extraction/supervisord.conf /etc/supervisor/conf.d/supervisord.conf diff --git a/packages/funman/Dockerfile b/packages/funman/Dockerfile index f085666ecb..83281d2827 100644 --- a/packages/funman/Dockerfile +++ b/packages/funman/Dockerfile @@ -8,31 +8,24 @@ FROM ghcr.io/darpa-askem/funman-base:latest AS funman_taskrunner_builder # Install OpenJDK21 RUN apt-get update && apt-get install -y --no-install-recommends \ - gcc \ - git \ - wget && \ - rm -rf /var/lib/apt/lists/* - -RUN wget https://github.com/adoptium/temurin21-binaries/releases/download/jdk-21.0.4%2B7/OpenJDK21U-jdk_x64_linux_hotspot_21.0.4_7.tar.gz && \ - tar xvf OpenJDK21U-jdk_x64_linux_hotspot_21.0.4_7.tar.gz && \ - mv jdk-21.0.4+7 /usr/local/jdk-21 && \ - rm OpenJDK21U-jdk_x64_linux_hotspot_21.0.4_7.tar.gz - -ENV JAVA_HOME=/usr/local/jdk-21 -ENV PATH="$JAVA_HOME/bin:$PATH" + gcc \ + git \ + wget \ + openjdk-17-jdk-headless && \ + rm -rf /var/lib/apt/lists/* # Install funman-api COPY ./packages/funman/funman-version.txt /funmanVersion.txt RUN COMMIT_SHA="$(cat /funmanVersion.txt)" && \ - echo "Using FUNMAN commit $COMMIT_SHA" && \ - wget --progress=dot:giga -O funman.tar.gz "https://github.com/DARPA-ASKEM/funman-api/archive/${COMMIT_SHA}.tar.gz" && \ - tar -zxvf funman.tar.gz && \ - rm funman.tar.gz && \ - mv -v funman-* funman-api + echo "Using FUNMAN commit $COMMIT_SHA" && \ + wget --progress=dot:giga -O funman.tar.gz "https://github.com/DARPA-ASKEM/funman-api/archive/${COMMIT_SHA}.tar.gz" && \ + tar -zxvf funman.tar.gz && \ + rm funman.tar.gz && \ + mv -v funman-* funman-api WORKDIR /funman-api RUN pip install --no-cache-dir . && \ - pip install --no-cache-dir auxiliary_packages/funman_dreal && \ - pip install --no-cache-dir auxiliary_packages/funman_demo + pip install --no-cache-dir auxiliary_packages/funman_dreal && \ + pip install --no-cache-dir auxiliary_packages/funman_demo #^^^^^^^^^^^^^^^^^^^^ ###################### @@ -50,11 +43,11 @@ FROM ghcr.io/darpa-askem/funman-base:latest WORKDIR / -# Install OpenJDK JRE and wget +# Install OpenJDK JRE RUN apt-get update && \ - apt-get install -y --no-install-recommends \ - openjdk-21-jre-headless && \ - rm -rf /var/lib/apt/lists/* + apt-get install -y --no-install-recommends \ + openjdk-17-jre-headless && \ + rm -rf /var/lib/apt/lists/* # Copy the Spring Boot fat JAR from the builder image COPY --from=funman_taskrunner_builder /taskrunner/build/libs/*.jar /taskrunner.jar @@ -63,8 +56,8 @@ COPY --from=funman_taskrunner_builder /taskrunner/build/libs/*.jar /taskrunner.j COPY --from=funman_taskrunner_builder /funman-api /funman-api WORKDIR /funman-api RUN pip install --no-cache-dir . && \ - pip install --no-cache-dir auxiliary_packages/funman_dreal && \ - pip install --no-cache-dir auxiliary_packages/funman_demo + pip install --no-cache-dir auxiliary_packages/funman_dreal && \ + pip install --no-cache-dir auxiliary_packages/funman_demo # Install taskrunner COPY ./packages/taskrunner/setup.py /taskrunner/setup.py diff --git a/packages/gollm/Dockerfile b/packages/gollm/Dockerfile index 427f12f3ea..34f7eac25a 100644 --- a/packages/gollm/Dockerfile +++ b/packages/gollm/Dockerfile @@ -1,24 +1,17 @@ # Build the Spring Boot application -FROM python:3.11-slim AS gollm_taskrunner_builder +FROM python:3.11-slim-bookworm AS gollm_taskrunner_builder ###### DEV ONLY ###### #VVVVVVVVVVVVVVVVVVVVV # These deps are installed only for use during local development -# Install OpenJDK21 +# Install OpenJDK RUN apt-get update && apt-get install -y --no-install-recommends \ - wget && \ + wget \ + openjdk-17-jdk-headless && \ rm -rf /var/lib/apt/lists/* -RUN wget https://github.com/adoptium/temurin21-binaries/releases/download/jdk-21.0.4%2B7/OpenJDK21U-jdk_x64_linux_hotspot_21.0.4_7.tar.gz && \ - tar xvf OpenJDK21U-jdk_x64_linux_hotspot_21.0.4_7.tar.gz && \ - mv jdk-21.0.4+7 /usr/local/jdk-21 && \ - rm OpenJDK21U-jdk_x64_linux_hotspot_21.0.4_7.tar.gz - -ENV JAVA_HOME=/usr/local/jdk-21 -ENV PATH="$JAVA_HOME/bin:$PATH" - # Install gollm COPY ./packages/gollm/gollm-version.txt /gollmVersion.txt RUN COMMIT_SHA="$(cat /gollmVersion.txt)" && \ @@ -43,23 +36,16 @@ RUN ./gradlew bootJar WORKDIR / # ------------------------------------------------------------------------------ -FROM python:3.11-slim +FROM python:3.11-slim-bookworm WORKDIR / -# Install OpenJRE21 +# Install OpenJDK JRE RUN apt-get update && apt-get install -y --no-install-recommends \ - wget && \ + wget \ + openjdk-17-jre-headless && \ rm -rf /var/lib/apt/lists/* -RUN wget https://github.com/adoptium/temurin21-binaries/releases/download/jdk-21.0.4%2B7/OpenJDK21U-jre_x64_linux_hotspot_21.0.4_7.tar.gz && \ - tar xvf OpenJDK21U-jre_x64_linux_hotspot_21.0.4_7.tar.gz && \ - mv jdk-21.0.4+7-jre /usr/local/jre-21 && \ - rm OpenJDK21U-jre_x64_linux_hotspot_21.0.4_7.tar.gz - -ENV JAVA_HOME=/usr/local/jre-21 -ENV PATH="$JAVA_HOME/bin:$PATH" - # Copy the Spring Boot fat JAR from the builder image COPY --from=gollm_taskrunner_builder /taskrunner/build/libs/*.jar /taskrunner.jar diff --git a/packages/mira/Dockerfile b/packages/mira/Dockerfile index 129a372125..c0c173e2ef 100644 --- a/packages/mira/Dockerfile +++ b/packages/mira/Dockerfile @@ -1,32 +1,25 @@ # Build the Spring Boot application -FROM python:3.10-slim AS mira_taskrunner_builder +FROM python:3.10-slim-bookworm AS mira_taskrunner_builder ###### DEV ONLY ###### #VVVVVVVVVVVVVVVVVVVVV # These deps are installed only for use during local development -# Install OpenJDK21 +# Install OpenJDK RUN apt-get update && apt-get install -y --no-install-recommends \ - wget && \ - rm -rf /var/lib/apt/lists/* - -RUN wget https://github.com/adoptium/temurin21-binaries/releases/download/jdk-21.0.4%2B7/OpenJDK21U-jdk_x64_linux_hotspot_21.0.4_7.tar.gz && \ - tar xvf OpenJDK21U-jdk_x64_linux_hotspot_21.0.4_7.tar.gz && \ - mv jdk-21.0.4+7 /usr/local/jdk-21 && \ - rm OpenJDK21U-jdk_x64_linux_hotspot_21.0.4_7.tar.gz - -ENV JAVA_HOME=/usr/local/jdk-21 -ENV PATH="$JAVA_HOME/bin:$PATH" + wget \ + openjdk-17-jdk-headless && \ + rm -rf /var/lib/apt/lists/* # Install Mira COPY ./packages/mira/mira-version.txt /miraVersion.txt RUN COMMIT_SHA="$(cat /miraVersion.txt)" && \ - echo "Using MIRA commit $COMMIT_SHA" && \ - wget --progress=dot:giga -O mira.tar.gz "https://github.com/gyorilab/mira/archive/${COMMIT_SHA}.tar.gz" && \ - tar -zxvf mira.tar.gz && \ - rm mira.tar.gz && \ - mv -v mira-* mira + echo "Using MIRA commit $COMMIT_SHA" && \ + wget --progress=dot:giga -O mira.tar.gz "https://github.com/gyorilab/mira/archive/${COMMIT_SHA}.tar.gz" && \ + tar -zxvf mira.tar.gz && \ + rm mira.tar.gz && \ + mv -v mira-* mira WORKDIR /mira RUN pip install --no-cache-dir .[sbml,biomodels] @@ -40,22 +33,15 @@ COPY ./packages/taskrunner . RUN ./gradlew bootJar # ------------------------------------------------------------------------------ -FROM python:3.10-slim +FROM python:3.10-slim-bookworm WORKDIR / -# Install OpenJRE21 +# Install OpenJDK JRE RUN apt-get update && apt-get install -y --no-install-recommends \ - wget && \ - rm -rf /var/lib/apt/lists/* - -RUN wget https://github.com/adoptium/temurin21-binaries/releases/download/jdk-21.0.4%2B7/OpenJDK21U-jre_x64_linux_hotspot_21.0.4_7.tar.gz && \ - tar xvf OpenJDK21U-jre_x64_linux_hotspot_21.0.4_7.tar.gz && \ - mv jdk-21.0.4+7-jre /usr/local/jre-21 && \ - rm OpenJDK21U-jre_x64_linux_hotspot_21.0.4_7.tar.gz - -ENV JAVA_HOME=/usr/local/jre-21 -ENV PATH="$JAVA_HOME/bin:$PATH" + wget \ + openjdk-17-jre-headless && \ + rm -rf /var/lib/apt/lists/* # Copy the Spring Boot fat JAR from the builder image COPY --from=mira_taskrunner_builder /taskrunner/build/libs/*.jar /taskrunner.jar diff --git a/packages/server/gradle/wrapper/gradle-wrapper.jar b/packages/server/gradle/wrapper/gradle-wrapper.jar index 7f93135c49..a4b76b9530 100644 Binary files a/packages/server/gradle/wrapper/gradle-wrapper.jar and b/packages/server/gradle/wrapper/gradle-wrapper.jar differ diff --git a/packages/server/gradle/wrapper/gradle-wrapper.properties b/packages/server/gradle/wrapper/gradle-wrapper.properties index 3fa8f862f7..9355b41557 100644 --- a/packages/server/gradle/wrapper/gradle-wrapper.properties +++ b/packages/server/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,6 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-8.10-bin.zip networkTimeout=10000 validateDistributionUrl=true zipStoreBase=GRADLE_USER_HOME diff --git a/packages/server/gradlew b/packages/server/gradlew index 1aa94a4269..f5feea6d6b 100755 --- a/packages/server/gradlew +++ b/packages/server/gradlew @@ -15,6 +15,8 @@ # See the License for the specific language governing permissions and # limitations under the License. # +# SPDX-License-Identifier: Apache-2.0 +# ############################################################################## # @@ -55,7 +57,7 @@ # Darwin, MinGW, and NonStop. # # (3) This script is generated from the Groovy template -# https://github.com/gradle/gradle/blob/HEAD/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt +# https://github.com/gradle/gradle/blob/HEAD/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt # within the Gradle project. # # You can find Gradle at https://github.com/gradle/gradle/. @@ -84,7 +86,8 @@ done # shellcheck disable=SC2034 APP_BASE_NAME=${0##*/} # Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036) -APP_HOME=$( cd "${APP_HOME:-./}" > /dev/null && pwd -P ) || exit +APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s +' "$PWD" ) || exit # Use the maximum available, or set MAX_FD != -1 to use that value. MAX_FD=maximum diff --git a/packages/server/gradlew.bat b/packages/server/gradlew.bat index 6689b85bee..9b42019c79 100644 --- a/packages/server/gradlew.bat +++ b/packages/server/gradlew.bat @@ -13,6 +13,8 @@ @rem See the License for the specific language governing permissions and @rem limitations under the License. @rem +@rem SPDX-License-Identifier: Apache-2.0 +@rem @if "%DEBUG%"=="" @echo off @rem ########################################################################## @@ -43,11 +45,11 @@ set JAVA_EXE=java.exe %JAVA_EXE% -version >NUL 2>&1 if %ERRORLEVEL% equ 0 goto execute -echo. -echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. -echo. -echo Please set the JAVA_HOME variable in your environment to match the -echo location of your Java installation. +echo. 1>&2 +echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2 +echo. 1>&2 +echo Please set the JAVA_HOME variable in your environment to match the 1>&2 +echo location of your Java installation. 1>&2 goto fail @@ -57,11 +59,11 @@ set JAVA_EXE=%JAVA_HOME%/bin/java.exe if exist "%JAVA_EXE%" goto execute -echo. -echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% -echo. -echo Please set the JAVA_HOME variable in your environment to match the -echo location of your Java installation. +echo. 1>&2 +echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2 +echo. 1>&2 +echo Please set the JAVA_HOME variable in your environment to match the 1>&2 +echo location of your Java installation. 1>&2 goto fail diff --git a/packages/taskrunner/gradle/wrapper/gradle-wrapper.jar b/packages/taskrunner/gradle/wrapper/gradle-wrapper.jar index 7f93135c49..a4b76b9530 100644 Binary files a/packages/taskrunner/gradle/wrapper/gradle-wrapper.jar and b/packages/taskrunner/gradle/wrapper/gradle-wrapper.jar differ diff --git a/packages/taskrunner/gradle/wrapper/gradle-wrapper.properties b/packages/taskrunner/gradle/wrapper/gradle-wrapper.properties index 3fa8f862f7..9355b41557 100644 --- a/packages/taskrunner/gradle/wrapper/gradle-wrapper.properties +++ b/packages/taskrunner/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,6 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-8.10-bin.zip networkTimeout=10000 validateDistributionUrl=true zipStoreBase=GRADLE_USER_HOME diff --git a/packages/taskrunner/gradlew b/packages/taskrunner/gradlew index 1aa94a4269..f5feea6d6b 100755 --- a/packages/taskrunner/gradlew +++ b/packages/taskrunner/gradlew @@ -15,6 +15,8 @@ # See the License for the specific language governing permissions and # limitations under the License. # +# SPDX-License-Identifier: Apache-2.0 +# ############################################################################## # @@ -55,7 +57,7 @@ # Darwin, MinGW, and NonStop. # # (3) This script is generated from the Groovy template -# https://github.com/gradle/gradle/blob/HEAD/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt +# https://github.com/gradle/gradle/blob/HEAD/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt # within the Gradle project. # # You can find Gradle at https://github.com/gradle/gradle/. @@ -84,7 +86,8 @@ done # shellcheck disable=SC2034 APP_BASE_NAME=${0##*/} # Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036) -APP_HOME=$( cd "${APP_HOME:-./}" > /dev/null && pwd -P ) || exit +APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s +' "$PWD" ) || exit # Use the maximum available, or set MAX_FD != -1 to use that value. MAX_FD=maximum diff --git a/packages/taskrunner/gradlew.bat b/packages/taskrunner/gradlew.bat index 6689b85bee..9b42019c79 100644 --- a/packages/taskrunner/gradlew.bat +++ b/packages/taskrunner/gradlew.bat @@ -13,6 +13,8 @@ @rem See the License for the specific language governing permissions and @rem limitations under the License. @rem +@rem SPDX-License-Identifier: Apache-2.0 +@rem @if "%DEBUG%"=="" @echo off @rem ########################################################################## @@ -43,11 +45,11 @@ set JAVA_EXE=java.exe %JAVA_EXE% -version >NUL 2>&1 if %ERRORLEVEL% equ 0 goto execute -echo. -echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. -echo. -echo Please set the JAVA_HOME variable in your environment to match the -echo location of your Java installation. +echo. 1>&2 +echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2 +echo. 1>&2 +echo Please set the JAVA_HOME variable in your environment to match the 1>&2 +echo location of your Java installation. 1>&2 goto fail @@ -57,11 +59,11 @@ set JAVA_EXE=%JAVA_HOME%/bin/java.exe if exist "%JAVA_EXE%" goto execute -echo. -echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% -echo. -echo Please set the JAVA_HOME variable in your environment to match the -echo location of your Java installation. +echo. 1>&2 +echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2 +echo. 1>&2 +echo Please set the JAVA_HOME variable in your environment to match the 1>&2 +echo location of your Java installation. 1>&2 goto fail