diff --git a/.github/workflows/deployment-jdk-ea.yml b/.github/workflows/deployment-jdk-ea.yml index 63d8e2a1dd5..12ba10807c2 100644 --- a/.github/workflows/deployment-jdk-ea.yml +++ b/.github/workflows/deployment-jdk-ea.yml @@ -36,7 +36,7 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest, windows-latest, macos-latest, buildjet-4vcpu-ubuntu-2204-arm] - jdk: [22] + jdk: [21] javafx: [23] include: - os: ubuntu-latest diff --git a/.github/workflows/deployment.yml b/.github/workflows/deployment.yml index 030790397d1..c5a30c3ac61 100644 --- a/.github/workflows/deployment.yml +++ b/.github/workflows/deployment.yml @@ -188,21 +188,21 @@ jobs: --java-options --add-opens=javafx.controls/javafx.scene.control=org.jabref \ --java-options --add-opens=javafx.controls/com.sun.javafx.scene.control=org.jabref - name: Build runtime image and installer (linux, Windows) - if: (matrix.os != 'macos-latest') && (steps.checksecrets.outputs.secretspresent == 'YES') + if: (matrix.os != 'macos-latest') shell: bash run: ./gradlew -i -PprojVersion="${{ steps.gitversion.outputs.AssemblySemVer }}" -PprojVersionInfo="${{ steps.gitversion.outputs.InformationalVersion }}" jpackage jlinkZip - name: Package application image (linux, Windows) - if: (matrix.os != 'macos-latest') && (steps.checksecrets.outputs.secretspresent == 'YES') + if: (matrix.os != 'macos-latest') shell: bash run: ${{ matrix.archivePortable }} - name: Rename files - if: (matrix.os != 'macos-latest') && (steps.checksecrets.outputs.secretspresent == 'YES') + if: (matrix.os != 'macos-latest') shell: pwsh run: | get-childitem -Path build/distribution/* | rename-item -NewName {$_.name -replace "${{ steps.gitversion.outputs.AssemblySemVer }}","${{ steps.gitversion.outputs.Major }}.${{ steps.gitversion.outputs.Minor }}"} get-childitem -Path build/distribution/* | rename-item -NewName {$_.name -replace "portable","${{ steps.gitversion.outputs.Major }}.${{ steps.gitversion.outputs.Minor }}-portable"} - name: Repack deb file for Debian - if: (matrix.os == 'ubuntu-latest') && (steps.checksecrets.outputs.secretspresent == 'YES') + if: (matrix.os == 'ubuntu-latest') shell: bash run: | cd build/distribution diff --git a/build.gradle b/build.gradle index 90c3e3a1b71..a8acf2268d2 100644 --- a/build.gradle +++ b/build.gradle @@ -55,7 +55,7 @@ java { // - .github/workflows/deployment-jdk-ea.yml#L53 languageVersion = JavaLanguageVersion.of(21) // See https://docs.gradle.org/current/javadoc/org/gradle/jvm/toolchain/JvmVendorSpec.html for a full list - // vendor = JvmVendorSpec.AMAZON + vendor = JvmVendorSpec.IBM } } @@ -656,6 +656,13 @@ jlink { addOptions('--strip-debug', '--compress', 'zip-6', '--no-header-files', '--no-man-pages') launcher { name = 'JabRef' + + // -Xgcpolicy:balanced + // Use "balanced" policy, which should provide better application performance + // See for details https://www.eclipse.org/openj9/docs/gc/#balanced-policy + // -Xms220M + // Provide more than 8 MB initial heap size (defaults are listed at https://www.eclipse.org/openj9/docs/openj9_defaults/) + jvmArgs = ['-Xgcpolicy:balanced', '-Xms220M'] } addOptions("--bind-services")