Skip to content

Commit

Permalink
final publishing configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
rvenky125 committed Apr 18, 2024
1 parent 24b1731 commit 9ffd314
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/publishToMC.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ jobs:
run: chmod +x gradlew

- name: Build
run: ./gradlew assemble
run: ./gradlew build

- name: Publish Library on Maven Central 🚀
run: ./gradlew publishKotlinMultiplatformPublicationToMavenCentralRepository --no-configuration-cache
run: ./gradlew clean publish --no-daemon --no-parallel --no-configuration-cache --stacktrace
env:
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.USERNAME }}
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.PASSWORD }}
Expand Down
4 changes: 2 additions & 2 deletions device-info/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import com.vanniktech.maven.publish.JavadocJar
import com.vanniktech.maven.publish.KotlinMultiplatform
import com.vanniktech.maven.publish.SonatypeHost
import org.jetbrains.dokka.gradle.DokkaTask
import org.jetbrains.kotlin.gradle.plugin.mpp.pm20.GradleKpmIosX64Variant

val libVersion = "0.0.12-alpha"
Expand Down Expand Up @@ -93,14 +94,13 @@ android {
}
}


mavenPublishing {
publishToMavenCentral(SonatypeHost.CENTRAL_PORTAL)
configure(
KotlinMultiplatform(
javadocJar = JavadocJar.Empty(),
sourcesJar = true,
androidVariantsToPublish = listOf("debug", "release")
androidVariantsToPublish = listOf("debug", "release"),
)
)

Expand Down

0 comments on commit 9ffd314

Please sign in to comment.