Skip to content

Commit

Permalink
ci: fix deploy from maven central using android and javadocs on gradle
Browse files Browse the repository at this point in the history
  • Loading branch information
ujizin committed Jan 14, 2024
1 parent bced9a3 commit cc489d0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
7 changes: 7 additions & 0 deletions camposer/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,13 @@ android {
kotlinOptions {
freeCompilerArgs += "-Xexplicit-api=strict"
}

publishing {
singleVariant("release") {
withJavadocJar()
withSourcesJar()
}
}
}

tasks.dokkaHtml.configure {
Expand Down
4 changes: 0 additions & 4 deletions scripts/publish-module.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand All @@ -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 {
Expand Down

0 comments on commit cc489d0

Please sign in to comment.