Skip to content
This repository has been archived by the owner on Jan 23, 2024. It is now read-only.

Commit

Permalink
Moving the project to bintray
Browse files Browse the repository at this point in the history
  • Loading branch information
Shibly Meeran committed Feb 3, 2016
1 parent f8a1344 commit 8f556f2
Show file tree
Hide file tree
Showing 6 changed files with 665 additions and 331 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
/.settings/
pom.xml.versionsBackup
.idea
jtelebot.iml
*.iml
Binary file added JTeleBot.zip
Binary file not shown.
904 changes: 619 additions & 285 deletions LICENSE

Large diffs are not rendered by default.

9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# JTeleBot
A Java library for [Telegram Bot API](https://core.telegram.org/bots/api)

### Build Status
[![Build Status](https://travis-ci.org/shibme/jtelebot.svg)](https://travis-ci.org/shibme/jtelebot)
[![Dependency Status](https://www.versioneye.com/user/projects/56adffaa7e03c7003ba414dd/badge.svg?style=flat)](https://www.versioneye.com/user/projects/56adffaa7e03c7003ba414dd)
[![Download](https://api.bintray.com/packages/shibme/maven/jtelebot/images/download.svg)](https://bintray.com/shibme/maven/jtelebot/_latestVersion)

A Java library for [Telegram Bot API](https://core.telegram.org/bots/api)

### Maven Dependency for Consumers
Add to your `pom.xml`

```xml
<dependency>
<groupId>me.shib.java.lib</groupId>
Expand All @@ -17,7 +17,6 @@ Add to your `pom.xml`

### Example
Start by creating an instance of the `me.shib.java.lib.jtelebot.TelegramBot` with the API token you get from [@BotFather](https://telegram.me/BotFather)

```java
TelegramBot bot = TelegramBot.getInstance("YourBotApiTokenGoesHere");
Update[] updates;
Expand Down
Binary file added icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
81 changes: 41 additions & 40 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<groupId>me.shib.java.lib</groupId>
<artifactId>jtelebot</artifactId>
<version>0.8.4</version>
<version>0.9</version>
<name>JTeleBot</name>
<description>A Java library for Telegram Bot API</description>
<url>https://github.com/shibme/jtelebot</url>
Expand All @@ -15,14 +15,6 @@
<system>GitHub Issues</system>
</issueManagement>

<licenses>
<license>
<name>GNU General Public License, version 2</name>
<url>https://www.gnu.org/licenses/old-licenses/gpl-2.0.en.html</url>
<distribution>repo</distribution>
</license>
</licenses>

<scm>
<url>https://github.com/shibme/jtelebot</url>
<connection>scm:git:https://github.com/shibme/jtelebot.git</connection>
Expand All @@ -38,39 +30,33 @@
</developer>
</developers>

<licenses>
<license>
<name>GNU General Public License</name>
<url>http://www.gnu.org/licenses/gpl.txt</url>
<distribution>repo</distribution>
</license>
</licenses>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>

<distributionManagement>
<snapshotRepository>
<id>ossrh</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
</snapshotRepository>
<repository>
<id>ossrh</id>
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
<id>bintray-shibme-maven</id>
<name>shibme-maven</name>
<url>https://api.bintray.com/maven/shibme/maven/${project.artifactId}/;publish=1;override=1</url>
</repository>
</distributionManagement>

<build>
<sourceDirectory>src</sourceDirectory>
<plugins>
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>1.6.6</version>
<extensions>true</extensions>
<configuration>
<serverId>ossrh</serverId>
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
<autoReleaseAfterClose>true</autoReleaseAfterClose>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.3</version>
<version>3.5</version>
<configuration>
<source>1.7</source>
<target>1.7</target>
Expand All @@ -92,7 +78,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.9.1</version>
<version>2.10.3</version>
<executions>
<execution>
<id>attach-javadocs</id>
Expand All @@ -104,35 +90,50 @@
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>1.5</version>
<artifactId>maven-source-plugin</artifactId>
<version>2.4</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<id>attach-sources</id>
<goals>
<goal>sign</goal>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>2.2.1</version>
<groupId>de.jutzig</groupId>
<artifactId>github-release-plugin</artifactId>
<version>1.1.1</version>
<executions>
<execution>
<id>attach-sources</id>
<id>github-upload</id>
<phase>deploy</phase>
<goals>
<goal>jar-no-fork</goal>
<goal>release</goal>
</goals>
<inherited>false</inherited>
<configuration>
<overwriteArtifact>true</overwriteArtifact>
<releaseName>${project.artifactId}-${project.version}</releaseName>
<description>Might require transitive dependencies.
Please take a look into pom.xml if you plan to use it manually.
It is recommended to use as maven dependency to avoid issues.
</description>
<tag>${project.version}</tag>
<fileSets>
<fileSet>
<directory>${project.build.directory}</directory>
</fileSet>
</fileSets>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>2.5</version>
<version>2.5.3</version>
<configuration>
<autoVersionSubmodules>true</autoVersionSubmodules>
<useReleaseProfile>false</useReleaseProfile>
Expand All @@ -147,7 +148,7 @@
<dependency>
<groupId>me.shib.java.lib</groupId>
<artifactId>rest-client-java</artifactId>
<version>0.3.9</version>
<version>0.4</version>
</dependency>
</dependencies>

Expand Down

0 comments on commit 8f556f2

Please sign in to comment.