Skip to content

Commit 64b1630

Browse files
committed
Enhance Gradle configuration for Maven Central publishing and update release workflow
1 parent abe34e5 commit 64b1630

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

.github/workflows/publish-release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ jobs:
1313
steps:
1414
- name: Checkout project sources
1515
uses: actions/checkout@v3
16+
1617
- name: Setup Gradle
1718
uses: gradle/gradle-build-action@v2
1819

contentstack/build.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,11 @@ plugins {
33
id "com.android.library"
44
}
55

6-
import com.vanniktech.maven.publish.SonatypeHost
7-
86
android.buildFeatures.buildConfig true
97

108
mavenPublishing {
11-
publishToMavenCentral("OSSRH") // Use OSSRH for Sonatype OSSRH (Maven Central)
9+
// Use OSSRH staging API for Maven Central publishing
10+
publishToMavenCentral("OSSRH", "https://s01.oss.sonatype.org/service/local/")
1211
signAllPublications()
1312
coordinates("com.contentstack.sdk", "android", "4.1.0-beta")
1413

@@ -56,7 +55,8 @@ tasks.register('jacocoTestReport', JacocoReport) {
5655
}
5756

5857
android {
59-
//namespace "com.contentstack.sdk"
58+
namespace "com.contentstack.sdk"
59+
compileSdk 34 // Using latest stable Android SDK version
6060
packagingOptions {
6161
exclude("META-INF/DEPENDENCIES")
6262
exclude("META-INF/LICENSE")

0 commit comments

Comments
 (0)