发布的jar库使用摇篮到bintray [英] Publish jar library to bintray using gradle

查看:252
本文介绍了发布的jar库使用摇篮到bintray的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想发布一个罐子库使用摇篮到bintray。我有我的项目,该项目是com.github.instagram一包。我试图实现是建立这个包的jar文件并上传到bintray。
这里是我的配置

I'm trying to publish a jar library to bintray using Gradle. I have a package on my project which is "com.github.instagram". What I am trying to achieve is to build the jar file of this package and upload it to bintray.
here are my configurations

uploadArchives  {
    repositories {
      bintrayMavenDeployer {
        username          'xxx'
        apiKey            'xxx'
        repoOwner         'xxx'
        repoName          'xxx'
        packageName       'xxx'
        description       'This is an example to simplifying bintray publishing'
        descUrl           'https://github.com/ysb33r/Gradle/blob/master/bintray/README.md'
        tags              'gradle','bintray'
   }
  }
}

但是当我执行gradlew uploadArchives,它上传apk文件,而不是JAR库文件。如何指导我的摇篮,以编译只是我想要的包,并产生一个jar文件?

but when i execute gradlew uploadArchives, it uploads the apk file instead of jar library file. how to instruct my gradle to compile only the package that I want and produce a jar file?

推荐答案

请使用专用 gradle- bintray-插件。该文件包含非常详细的例子。

Please use the dedicated gradle-bintray-plugin. The documentation include very detailed examples.

这篇关于发布的jar库使用摇篮到bintray的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆