File tree Expand file tree Collapse file tree 2 files changed +13
-4
lines changed Expand file tree Collapse file tree 2 files changed +13
-4
lines changed Original file line number Diff line number Diff line change 1414 - name : Checkout project sources
1515 uses : actions/checkout@v3
1616
17+ - name : Set up JDK and Maven Central
18+ uses : actions/setup-java@v3
19+ with :
20+ java-version : ' 11'
21+ distribution : ' adopt'
22+ cache : ' gradle'
23+ server-id : ossrh
24+ server-username : MAVEN_USERNAME
25+ server-password : MAVEN_PASSWORD
26+
1727 - name : Setup Gradle
1828 uses : gradle/gradle-build-action@v2
1929
Original file line number Diff line number Diff line change @@ -2,12 +2,12 @@ plugins {
22 id " com.vanniktech.maven.publish" version " 0.27.0"
33 id " com.android.library"
44}
5-
5+ import com.vanniktech.maven.publish.SonatypeHost
66android. buildFeatures. buildConfig true
77
88mavenPublishing {
9- // Use OSSRH staging API for Maven Central publishing
10- publishToMavenCentral(" OSSRH " , " https://s01.oss.sonatype.org/service/local/ " )
9+ // Use S01 host for Maven Central publishing
10+ publishToMavenCentral(SonatypeHost . S01 )
1111 signAllPublications()
1212 coordinates(" com.contentstack.sdk" , " android" , " 4.1.0-beta" )
1313
@@ -97,7 +97,6 @@ android {
9797 keyPassword ' android'
9898 }
9999 }
100- compileSdk 30
101100 defaultConfig {
102101 // Required when setting minSdkVersion to 20 or lower
103102 multiDexEnabled true
You can’t perform that action at this time.
0 commit comments