正在显示
2 个修改的文件
包含
19 行增加
和
3 行删除
| @@ -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 | +} |
-
请 注册 或 登录 后发表评论