diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 38d64d9..09bed02 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -19,7 +19,7 @@ jobs: - name: Release build run: ./gradlew :camposer:assembleRelease - name: Source jar and dokka - run: ./gradlew androidSourcesJar javadocJar + run: ./gradlew :camposer:androidSourcesJar :camposer:javadocJar - name: Publish to MavenCentral run: ./gradlew camposer:publishReleasePublicationToSonatypeRepository --max-workers 1 closeAndReleaseSonatypeStagingRepository env: diff --git a/camposer/build.gradle.kts b/camposer/build.gradle.kts index 5a3977d..1a8c9d7 100644 --- a/camposer/build.gradle.kts +++ b/camposer/build.gradle.kts @@ -39,6 +39,13 @@ android { kotlinOptions { freeCompilerArgs += "-Xexplicit-api=strict" } + + publishing { + singleVariant("release") { + withJavadocJar() + withSourcesJar() + } + } } tasks.dokkaHtml.configure { diff --git a/scripts/publish-module.gradle b/scripts/publish-module.gradle index c8fdde1..e83a730 100644 --- a/scripts/publish-module.gradle +++ b/scripts/publish-module.gradle @@ -45,9 +45,6 @@ project.afterEvaluate { from components.java } - artifact androidSourcesJar - artifact javadocJar - pom { name = PUBLISH_ARTIFACT_ID description = "Camera Library for Android Jetpack Compose." @@ -56,7 +53,6 @@ project.afterEvaluate { license { name = "The Apache Software License, Version 2.0" url = "http://www.apache.org/licenses/LICENSE-2.0.txt" - } } developers { developer {