David Liu

add in release publication

@@ -5,7 +5,6 @@ plugins { @@ -5,7 +5,6 @@ plugins {
5 id 'kotlin-kapt' 5 id 'kotlin-kapt'
6 id 'kotlinx-serialization' 6 id 'kotlinx-serialization'
7 id 'com.google.protobuf' 7 id 'com.google.protobuf'
8 - id 'com.bmuschko.nexus'  
9 } 8 }
10 9
11 android { 10 android {
@@ -115,4 +114,21 @@ dependencies { @@ -115,4 +114,21 @@ dependencies {
115 androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0' 114 androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
116 } 115 }
117 116
118 -apply from: rootProject.file('gradle/gradle-mvn-push.gradle')  
  117 +apply from: rootProject.file('gradle/gradle-mvn-push.gradle')
  118 +
  119 +afterEvaluate {
  120 + publishing {
  121 + publications {
  122 + // Creates a Maven publication called "release".
  123 + release(MavenPublication) {
  124 + // Applies the component for the release build variant.
  125 + from components.release
  126 +
  127 + // You can then customize attributes of the publication as shown below.
  128 + groupId = GROUP
  129 + artifactId = POM_ARTIFACT_ID
  130 + version = VERSION_NAME
  131 + }
  132 + }
  133 + }
  134 +}
1 POM_NAME=LiveKit Client Android SDK 1 POM_NAME=LiveKit Client Android SDK
2 -POM_ARTIFACT_ID=livekit-android-sdk 2 +POM_ARTIFACT_ID=livekit-android
3 POM_PACKAGING=aar 3 POM_PACKAGING=aar