Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Build and upload jar to jcenter

I've created a library for Android and now I would like to publish it. I have followed this guide and got it to work on jcenter and I'm able to use it.

The uploaded file, however, is an *.aar file.

How can I get it to compile and upload a .jar?

like image 332
user1126068 Avatar asked Dec 11 '25 06:12

user1126068


1 Answers

The Gradle project in the blog post you refer to is an Android library project, that's why it creates aar file.

For example of a Java project (that create a jar), take a look at Bintray's GitHub examples repository. If you work with Gradle, probably the gradle-bintray-plugin-examples/publications-example/ will be the right one to begin with.

like image 69
JBaruch Avatar answered Dec 12 '25 19:12

JBaruch



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!