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 {