rubenlagus / TelegramBots

Java library to create bots using Telegram Bots API
https://telegram.me/JavaBotsApi
MIT License
4.69k stars 1.19k forks source link

Deploy on Maven Central #87

Closed fpompermaier closed 7 years ago

fpompermaier commented 8 years ago

Do you have any plan to deploy release artifacts also on Maven central? If you want I can take care of it (probably I will just need your help to fill some legal form....)

rubenlagus commented 8 years ago

Sure, I just used jitpack because it was easier.

Feel free to make any necessary changes in the code via a pull request to dev and contact me if needed for anything else.

Thanks

fpompermaier commented 8 years ago

So, the first thing to do is to Create a JIRA account and create a new Project ticket as explained at http://central.sonatype.org/pages/ossrh-guide.html. You will probably register the group id org.telegram.

Once you've completed these 2 steps just ping me on this issue.

rubenlagus commented 8 years ago

The ticket is already open, waiting for the answer.

rubenlagus commented 8 years ago

@fpompermaier Done, I had to change the groupId because I needed to have the domain itself (something a bit hard with org.telegram). But it is now approved: https://issues.sonatype.org/browse/OSSRH-22805

antonu17 commented 8 years ago

I think if this library will be a de facto java telegram bot api library, then it should use groupId org.telegram :) @rubenlagus what the f..k is org.bistromathicdrive ?! ps. probably we have to contact with telegram.org team, and ask they to register maven account for this library, if they think it is worthy. i mean, they already put it to https://core.telegram.org/bots/samples#other-languages, although it is not only one.

rubenlagus commented 8 years ago

@antonu17 Asking that to telegram will mean that they agree to make it the "official" one, something that I'm not sure they will do. In any case, I can ask support about that.

Regarding the groupId, it make a reference to the origins of all my contributions to Telegram environment code ;)

fpompermaier commented 8 years ago

@rubenlagus are you able to make a script to release the project on Maven central following http://central.sonatype.org/pages/apache-maven.html? If you need a hand just add me to your contacts in skype or facebook!

rubenlagus commented 8 years ago

@fpompermaier I'm waiting to see if I get answer from support about the usage of org.telegram, I'll done the script once I have an answer

Dahu88 commented 8 years ago

Hello, I'm beginning to write my own telegram bot using java, and I would appreciate to know if it's available in maven now ?

Mit0x2 commented 8 years ago

@Dahu88 you can alreay use the library via maven. See instructions here. Once the library is available in Maven Central, you can remove the reposior part and change the groupId of the library...

dvrepos commented 8 years ago

@rubenlagus any updates?

rubenlagus commented 8 years ago

I have the org.bistromathicdrive version, but I'm still waiting for Telegram people to answer my request to use org.telegramas groupId. That's why I didn't made any change.

malaki12003 commented 8 years ago

@rubenlagus May I ask you to deploy the artifact on another repository? if there is problem with maven central, why don't you let the releases to access through another public repo?

Mit0x2 commented 8 years ago

What is the state on this one?

rubenlagus commented 7 years ago

Done, you should be able to use it with:

   <dependency>
        <groupId>org.telegram</groupId>
        <artifactId>telegrambots</artifactId>
        <version>2.4.0</version>
    </dependency>