[英]Android library published on bintray but is not available at jcenter
[英]Jcenter (Bintray) not approving android library
我制作了一個android庫(我的第一個庫)..按照步驟操作,能夠成功上傳到Bintray ..但是當我請求鏈接到jCenter時,我從Bintray收到了這封郵件:
請將所有必要的文件(例如pom,aar和source)合並到一個通用路徑中,我們很樂意批准您的收錄要求。
我不確定自己在做什么錯。
這是我的Bintray庫https://bintray.com/hitanshu-dhawan/maven/SharedPref
我的lib build.gradle文件
apply plugin: 'com.android.library'
android {
compileSdkVersion 26
defaultConfig {
minSdkVersion 1
targetSdkVersion 26
versionCode 1
versionName "1.0.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
ext {
bintrayRepo = 'maven'
bintrayName = 'SharedPref'
publishedGroupId = 'com.hitanshudhawan.sharedpref'
libraryName = 'sharedpref'
artifact = 'sharedpref'
libraryDescription = 'An android library for making SharedPreferences easy'
siteUrl = 'https://github.com/hitanshu-dhawan/SharedPref'
gitUrl = 'https://github.com/hitanshu-dhawan/SharedPref.git'
libraryVersion = '1.0.0'
developerId = 'hitanshu-dhawan'
developerName = 'Hitanshu Dhawan'
developerEmail = 'hitanshudhawan1996@gmail.com'
licenseName = 'The Apache Software License, Version 2.0'
licenseUrl = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
allLicenses = ["Apache-2.0"]
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:support-annotations:26.1.0'
}
apply from: 'https://raw.githubusercontent.com/nuuneoi/JCenter/master/installv1.gradle'
apply from: 'https://raw.githubusercontent.com/nuuneoi/JCenter/master/bintrayv1.gradle'
我已經將成功的2庫上載到Bintray和JCenter,我寫了一個如何做的指南,您可以按照我的指南去做。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.