Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
544 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 Answer

0 votes
by (71.8m points)

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


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...