diff --git a/.github/workflows/uploadArchives.yml b/.github/workflows/uploadArchives.yml index 5decd557..bfde3504 100644 --- a/.github/workflows/uploadArchives.yml +++ b/.github/workflows/uploadArchives.yml @@ -25,11 +25,11 @@ jobs: token: ${{ secrets.ACCESS_TOKEN }} persist-credentials: false - - name: set up JDK 11 + - name: set up JDK 17 uses: actions/setup-java@v3 with: - java-version: 11.0.10 - distribution: 'adopt' + java-version: 17.0.10 + distribution: "adopt" cache: gradle - name: Add Maven credentials to gradle.properties diff --git a/backtrace-library/publish.gradle b/backtrace-library/publish.gradle index 82ae66e3..5f1281b4 100644 --- a/backtrace-library/publish.gradle +++ b/backtrace-library/publish.gradle @@ -111,10 +111,12 @@ afterEvaluate { project -> } task androidJavadocsJar(type: Jar, dependsOn: androidJavadocs) { + archiveClassifier = 'javadoc' from androidJavadocs.destinationDir } task androidSourcesJar(type: Jar) { + archiveClassifier = 'sources' from android.sourceSets.main.java.source } }