2017-09-19 16 views
0

버전 및 종속성을 올바르게 보여주는 라이브러리를 bintray에 성공적으로 업로드했습니다. 나는 그것이 jcenter 링크를 요청하는 경우, 나는이 응답 가지고 :패키지에서 동일한 패키지 아래에있는 두 개의 경로

안녕하세요,

우리는 같은 패키지에서 두 개의 경로, 하나는 .aar/.JAR에 사용이 있다는 것을 볼 수 있습니다

/.apk와 항아리 아래에 -sources.jar와 * -javadoc.jar 파일 : /com/androiddev/android-dev-core/1.0.0

과 .pom 파일 하나 /COM /androiddev/core/1.0.0

하나만 승인 할 수 있습니다. 단일 패키지의 경로 두 경로를 통합하고 포함시킬 경로 접두어를 알려주십시오.

감사합니다, JFrog 지원

내가 bintray의 파일 섹션에서 두 개의 경로를 볼 수 있습니다. 어떤 생각이 어떻게 해결할 수 있습니까?

답변

3

이 문제를 방지하려면 라이브러리 이름이 bintray에서 작성한 것과 유사해야합니다. 서로 다르면 bintrayUpload 명령을 사용하여 android studio 터미널에서 라이브러리를 업로드 할 때 라이브러리를 업로드 할 때 두 개의 별도 경로가 생성됩니다.

build.gradle의 내 bintray 구성은 다음과 같습니다.

ext { 
bintrayRepo = 'dev' //the maven repo name (created on bintray) 
bintrayName = 'android-dev-core' //the name you want to give at your project on bintray 
orgName = 'thisisjatinrana' //your user name 

publishedGroupId = 'com.jatin' //aaaa : the librairy group 
artifact = 'android-dev-core' //BBBB : the library name 
libraryVersion = "1.0.0" //the librairy version 

//the library will be : aaaa:BBBB:version 

libraryName = 'android-dev-core' 
libraryDescription = 'Android essential building blocks to speed up development process' 

siteUrl = 'https://github.com/thisisjatinrana/AndroidDevCore' 
gitUrl = 'https://github.com/thisisjatinrana/AndroidDevCore.git' 

developerId = 'jatinrana' 
developerName = 'Jatin Rana' 
developerEmail = '[email protected]' 

licenseName = 'The Apache Software License, Version 2.0' 
licenseUrl = 'http://www.apache.org/licenses/LICENSE-2.0.txt' 
allLicenses = ["Apache-2.0"] 

} 여기

유물과 bintray 프로젝트 이름은 안드로이드 스튜디오에서 라이브러리 이름과 동일해야합니다.