From 91d8fbb232f51d356a4d964b5dbc07faf6c3b8e6 Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Tue, 3 Dec 2019 12:51:52 +0600 Subject: [PATCH] update README --- README.md | 36 +++++++++++++++++++++++++++++++++--- 1 file changed, 33 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 8d4841f020..255d1a2eb6 100644 --- a/README.md +++ b/README.md @@ -25,8 +25,30 @@ like inserting of additional libraries (like `kotlin stdlib`). In the examples w [![Download](https://api.bintray.com/packages/insanusmokrassar/StandardRepository/TelegramBotAPI/images/download.svg) ](https://bintray.com/insanusmokrassar/StandardRepository/TelegramBotAPI/_latestVersion) +Currently, last versions of library are not included into the Maven repository (for the reason difficult in publishing +of signed artifacts in Bintray). You can: + +* Use earlier version (available version you can find +[here](https://mvnrepository.com/artifact/com.github.insanusmokrassar/TelegramBotAPI)) +* Add `jCenter` repository in build config + ### Maven +To use last versions you will need to add several lines in repositories block of your pom.xml: + +```xml + + + false + + central + bintray + http://jcenter.bintray.com + +``` + +Dependency config presented here: + ```xml com.github.insanusmokrassar @@ -37,14 +59,22 @@ like inserting of additional libraries (like `kotlin stdlib`). In the examples w ### Gradle +To use last versions you will need to add one line in repositories block of your build.gradle: + ```groovy -implementation "com.github.insanusmokrassar:TelegramBotAPI:${telegrambotapi.version}" +jcenter() ``` -### Gradle (old) +And add next line to your dependencies block: ```groovy -compile "com.github.insanusmokrassar:TelegramBotAPI:${telegrambotapi.version}" +implementation "com.github.insanusmokrassar:TelegramBotAPI:$telegrambotapi_version" +``` + +or for old gradle: + +```groovy +compile "com.github.insanusmokrassar:TelegramBotAPI:$telegrambotapi_version" ``` ## How to work with library?