msdx / gradle-publish Goto Github PK
View Code? Open in Web Editor NEWGradle scripts to publish aar.
Gradle scripts to publish aar.
不好意思,麻烦问一下,SONATYPE_KEY 这个是 GPG 的密码还是什么
加入apply from: 'https://raw.githubusercontent.com/msdx/gradle-publish/master/bintray.gradle'
代码后,gradle sync出错。
错误提示:
Gradle sync failed: Software caused connection abort: recv failed
可以修改为以下这个样子,就不用手动下载脚本了,gradle 会自动下载脚本的
apply from : "https://raw.githubusercontent.com/msdx/gradle-publish/master/bintray.gradle"
您好!
比如: Module B依赖Module A, Module C也依赖Module A,Module A是公共的,只需要发布Module B和 Module C,能指点下怎么弄么?
gradle version:
gradle-2.14.1
com.android.tools.build:gradle:2.1.3
按照上面配置,依然上传不上去
我的本地环境java8,javadoc会出错
HTTP/1.1 404 Not Found [message:Repo 'maven' was not found
在Android Studio 2.0 Preview4上按你的教程来,报错:Error:Could not find property 'android' on task ':sourcesJar'.。
后来找到这种方式,感觉这种方式似乎更简洁:http://www.tuicool.com/articles/UFzmuiY。
linkto 右边没有maven的link选项
include my package 点了也自动搜不到上传的项目
有啥建议吗?
build时报错:
Error:No such property: archivesBaseName for class: org.gradle.api.internal.project.DefaultProject_Decorated
你好,我的aar里面依赖了第三方aar,那么在其他项目里面依赖我push到jcenter的aar后,并没有关联上我aar里面依赖的第三方aar,请问这个需要怎么做?
项目中使用了 support包 ,Nonnull ,ViewCompat等
还有 R 文件 ,
都是找不到符号
相关资料显示,在
bintray {
pkg {
....
}
}
内加入以下内容可以把发布到jcenter的项目同步到Maven Central:
version {
name = PROJ_VERSION
desc = PROJ_DESCRIPTION
gpg {
sign = true //是否GPG签名,可使用Gpg4win创建密钥文件
passphrase = properties.getProperty("bintray.gpg.password") //GPG签名所用密钥
}
mavenCentralSync {
sync = true //是否同步到Maven Central
user = properties.getProperty("sonatype.user") //sonatype用户名
password = properties.getProperty("sonatype.password") //sonatype密码
close = '1'
}
}
经过不断尝试,发布时没能同步成功,显示以下错误:
* What went wrong:
Execution failed for task ':library:bintrayUpload'.
> Could not sync 'gzu-liyujiang/maven/AndroidPicker/1.0.3' to Maven Central: HTT
P/1.1 400 Bad Request [messages:[Failed to promote repository: central_bundles-6
031. Server response:
<nexus-error>
<errors>
<error>
<id>*</id>
<msg>User 'liyujiang' missing 'promote' permission for
staging profile: 7edbe315063867</msg>
</error>
</errors>
</nexus-error>, Dropping existing partial staging repository.], status:Sync Fail
ed]
您有研究过同步到Maven Central么,能不能指点下?不胜感谢!
系统:windows 7
gradle : 2.10
android plugin 2.0.0-alpha6
日志如下:
D:\github\ClipImageView>gradlew bin
Parallel execution with configuration on demand is an incubating feature.
Incremental java compilation is an incubating feature.
:clipimage:bintrayUpload
Skipping upload for missing file 'D:\github\ClipImageView\clipimage\build\libs\clipimage-0.1-javadoc.jar'.
Skipping upload for missing file 'D:\github\ClipImageView\clipimage\build\libs\clipimage-0.1-sources.jar'.
Skipping upload for missing file 'D:\github\ClipImageView\clipimage\build\outputs\aar\clipimage-release.aar'.
Skipping upload for missing file 'D:\github\ClipImageView\clipimage\build\publications\mavenJava\pom-default.xml'.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.