How to create publish closure? (Android Studio)

风格不统一 提交于 2021-01-20 11:51:14

问题


When I want to build my project in Android Studio, I get this error:

Have you created the publish closure? Missing publishVersion. Missing desc. 

Half year ago I've made last changes on this project. Now I've cloned it from github and I got this error. Please help me with this problem.


回答1:


Coincidence I bumped into this, the error is from a Novoda library (where I work!) :-)

https://github.com/novoda/bintray-release

You have added this dependency to your top level repo:

 classpath 'com.novoda:bintray-release:0.8.0'

it needs to be added to the build.gradle of the module you want to release, perhaps app or library?

After that you need to add the publish closure to the same file:

publish {
    userOrg = 'novoda'
    groupId = 'com.novoda'
    artifactId = 'bintray-release'
    publishVersion = '0.6.1'
    desc = 'Oh hi, this is a nice description for a project, right?'
    website = 'https://github.com/novoda/bintray-release'
}

More information is written in the repo readme.



来源:https://stackoverflow.com/questions/54271057/how-to-create-publish-closure-android-studio

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!