Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
546 views
in Technique[技术] by (71.8m points)

android - Publish jar library to bintray using gradle

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'
   }
  }
}

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?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

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


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...