小编CSE*_*CSE的帖子

将Android库上传到Bintray - 忽略userOrg参数

我正在尝试使用本指南将Android库上传到Bintray:https://inthecheesefactory.com/blog/how-to-upload-library-to-jcenter-maven-central-as-dependency/en

一切正常,直到我尝试运行bintrayUpload,当我收到以下错误:

任务':MAS:bintrayUpload'的执行失败.

无法创建包'user/maven/my-repo':HTTP/1.1 404 Not Found [消息:未找到回购'maven']

我认为问题在于存储库是Bintray上的组织所有.但它正在用户之下寻找它.即.user/maven/my-repo应该是organization/maven/my-repo.

我的local.properties看起来像这样:

...    
bintray.userOrg=organisation
bintray.user=user
bintray.apikey=key
bintray.gpg.password=password
...
Run Code Online (Sandbox Code Playgroud)

我的库模块的build.gradle如下所示:

/*
 * Copyright (c) 2016 CA. All rights reserved.
 *
 * This software may be modified and distributed under the terms
 * of the MIT license.  See the LICENSE file for details.
 *
 */

//noinspection GradleCompatible
// In order to build messaging using gradle 2 environment variables must be exportedd
// 1. prefix - this is the aar prefix, for example …
Run Code Online (Sandbox Code Playgroud)

gradle maven bintray jcenter

1
推荐指数
1
解决办法
519
查看次数

标签 统计

bintray ×1

gradle ×1

jcenter ×1

maven ×1