From 73d36d0549479728818e020a74eda42016d93177 Mon Sep 17 00:00:00 2001 From: Yury-Fridlyand Date: Thu, 11 Jul 2024 06:30:49 -0700 Subject: [PATCH] Fix release version for java client. (#1903) --- .github/workflows/java-cd.yml | 2 +- java/client/build.gradle | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/java-cd.yml b/.github/workflows/java-cd.yml index c19dead61f..9dcaa8c4e9 100644 --- a/.github/workflows/java-cd.yml +++ b/.github/workflows/java-cd.yml @@ -99,7 +99,7 @@ jobs: - name: Set the release version shell: bash run: | - if ${{ github.event_name == 'pull_request' || github.event_name == 'push' }}; then + if ${{ github.event_name == 'pull_request' }}; then R_VERSION="255.255.255" elif ${{ github.event_name == 'workflow_dispatch' }}; then R_VERSION="${{ env.INPUT_VERSION }}" diff --git a/java/client/build.gradle b/java/client/build.gradle index e66d59f43b..165ca30133 100644 --- a/java/client/build.gradle +++ b/java/client/build.gradle @@ -216,6 +216,11 @@ publishing { } } +java { + withSourcesJar() +// withJavadocJar() +} + signing { sign publishing.publications } @@ -236,6 +241,12 @@ jar { archiveClassifier = "placeholder" } +sourcesJar { + // suppress following error + // Entry glide/api/BaseClient.java is a duplicate but no duplicate handling strategy has been set + duplicatesStrategy = DuplicatesStrategy.EXCLUDE +} + spotbugsMain { reports { html {