|
|
|
@ -1,7 +1,12 @@
|
|
|
|
|
plugins {
|
|
|
|
|
id 'com.android.library'
|
|
|
|
|
id 'maven-publish'
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
|
//// 必须在 android 上面
|
|
|
|
|
//apply from: '../publish-mavencentral.gradle'
|
|
|
|
|
|
|
|
|
|
android {
|
|
|
|
|
compileSdk 31
|
|
|
|
|
|
|
|
|
@ -46,3 +51,18 @@ dependencies {
|
|
|
|
|
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
|
|
|
|
|
implementation 'com.github.smuyyh:ImageSelector:3.0'
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
afterEvaluate {
|
|
|
|
|
// 官方建议使用上传方法
|
|
|
|
|
publishing {
|
|
|
|
|
publications {
|
|
|
|
|
// Creates a Maven publication called "release".
|
|
|
|
|
release(MavenPublication) {
|
|
|
|
|
from components.release // 表示发布 release(jitpack 都不会使用到)
|
|
|
|
|
groupId = 'com.github.tunmx' //groupId 随便取 , 这个是依赖库的组 id
|
|
|
|
|
artifactId = 'hyperlpr3' //artifactId 随便取 , 依赖库的名称(jitpack 都不会使用到)
|
|
|
|
|
version = '0.0.1' // 当前版本依赖库版本号,这个jitpack不会使用到,只是我们开发者自己查看
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|