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 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…