dependencies {
def weapon_version = '0.1.0'
implementation "io.github.raiseyang:weapon-base:$weapon_version"
implementation "io.github.raiseyang:weapon-ui:$weapon_version"
implementation "io.github.raiseyang:weapon-base-kt:$weapon_version"
implementation "io.github.raiseyang:weapon-ui-kt:$weapon_version"
implementation "io.github.raiseyang:weapon-jetpack-kt:$weapon_version"
}
- 修改库中的代码
- 修改库的统一版本号weapon_version
- 执行gradle任务:publishReleasePublicationToSonatypeRepository IDEA侧边栏的Gradle -> Weapon -> weapon-ui -> Tasks -> publishing -> publishReleasePublicationToSonatypeRepository IDEA侧边栏的Gradle -> Weapon -> weapon-ui -> Tasks -> publishing -> publishReleasePublicationToMavenLocal
- 上nexus repository manager网站上以此操作: 登录 -> Staging Repositories -> 选中具体的Repo -> 点击Close ->(过一会儿) 点击Release -> (过一会...) 点击左侧的Repositories,可在里面查看 https://s01.oss.sonatype.org/#stagingProfiles;67e75eb94839e7
使用weapon-ui,需要依赖下述库
api "androidx.annotation:annotation:$annotation_version"
api "androidx.appcompat:appcompat:$appcompat_version"
api 'com.google.android.material:material:1.4.0'
Execution failed for task ':weapon-base:signReleasePublication'.
Error while evaluating property 'signatory' of task ':weapon-base:signReleasePublication' Unable to read secret key from file: C:\Users\yangdongsheng\gpg\SecretRingKey.gpg (it may not be a PGP secret key ring)