Skip to content

Commit

Permalink
Merge pull request #191 from bivashy/190-project-owner-migration
Browse files Browse the repository at this point in the history
Update all references to the old owner with new owner
  • Loading branch information
bivashy authored May 21, 2024
2 parents adc0ed3 + 186e3e0 commit 1a4e734
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 32 deletions.
2 changes: 1 addition & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ updates:
schedule:
interval: "daily"
assignees:
- "yvasyliev"
- "bivashy"
22 changes: 12 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.github.yvasyliev/java-vk-bots-longpoll-api/badge.svg?kill_cache=1)](https://search.maven.org/artifact/com.github.yvasyliev/java-vk-bots-longpoll-api)
[![javadoc](https://javadoc.io/badge2/com.github.yvasyliev/java-vk-bots-longpoll-api/javadoc.svg?kill_cache=1)](https://javadoc.io/doc/com.github.yvasyliev/java-vk-bots-longpoll-api)
[![MIT License](http://img.shields.io/badge/license-MIT-blue.svg?style=flat)](https://github.com/yvasyliev/java-vk-bots-long-poll-api/blob/master/LICENSE)
![Build status](https://github.com/yvasyliev/java-vk-bots-long-poll-api/actions/workflows/build-maven-project.yml/badge.svg?branch=master)
![CodeQL](https://github.com/yvasyliev/java-vk-bots-long-poll-api/workflows/CodeQL/badge.svg)
[![Maven Central](https://maven-badges.herokuapp.com/maven-central/io.github.bivashy/java-vk-bots-longpoll-api/badge.svg?kill_cache=1)](https://search.maven.org/artifact/io.github.bivashy/java-vk-bots-longpoll-api)
[![javadoc](https://javadoc.io/badge2/io.github.bivashy/java-vk-bots-longpoll-api/javadoc.svg?kill_cache=1)](https://javadoc.io/doc/io.github.bivashy/java-vk-bots-longpoll-api)
[![MIT License](http://img.shields.io/badge/license-MIT-blue.svg?style=flat)](https://github.com/bivashy/java-vk-bots-long-poll-api/blob/master/LICENSE)
![Build status](https://github.com/bivashy/java-vk-bots-long-poll-api/actions/workflows/build-maven-project.yml/badge.svg?branch=master)
![CodeQL](https://github.com/bivashy/java-vk-bots-long-poll-api/workflows/CodeQL/badge.svg)
[![Maintainability Rating](https://sonarcloud.io/api/project_badges/measure?project=yvasyliev_java-vk-bots-long-poll-api&metric=sqale_rating)](https://sonarcloud.io/summary/new_code?id=yvasyliev_java-vk-bots-long-poll-api)
[![Code Smells](https://sonarcloud.io/api/project_badges/measure?project=yvasyliev_java-vk-bots-long-poll-api&metric=code_smells)](https://sonarcloud.io/summary/new_code?id=yvasyliev_java-vk-bots-long-poll-api)
[![Lines of Code](https://sonarcloud.io/api/project_badges/measure?project=yvasyliev_java-vk-bots-long-poll-api&metric=ncloc)](https://sonarcloud.io/summary/new_code?id=yvasyliev_java-vk-bots-long-poll-api)
Expand Down Expand Up @@ -50,12 +50,12 @@ This library uses the next third-party dependencies:
3. Add the library to your `Maven` project:
```xml
<dependency>
<groupId>com.github.yvasyliev</groupId>
<groupId>io.github.bivashy</groupId>
<artifactId>java-vk-bots-longpoll-api</artifactId>
<version>VERSION</version>
</dependency>
```
* Replace `VERSION` with [the latest release](https://github.com/yvasyliev/java-vk-bots-long-poll-api/releases).
* Replace `VERSION` with [the latest release](https://github.com/bivashy/java-vk-bots-long-poll-api/releases).
4. Extend `LongPollBot` class and override necessary methods:
```java
import api.longpoll.bots.LongPollBot;
Expand Down Expand Up @@ -122,7 +122,7 @@ public class HelloBot extends LongPollBot {

## More Examples

Find more examples of bot usage [here](https://github.com/yvasyliev/java-vk-bots-long-poll-api-examples).
Find more examples of bot usage [here](https://github.com/bivashy/java-vk-bots-long-poll-api-examples).

## Async execution

Expand All @@ -131,9 +131,11 @@ Each API method can be executed asynchronously:
```java
import api.longpoll.bots.LongPollBot;
import api.longpoll.bots.exceptions.VkApiException;
import api.longpoll.bots.methods.impl.messages.Send;import api.longpoll.bots.model.events.messages.MessageNew;
import api.longpoll.bots.methods.impl.messages.Send;
import api.longpoll.bots.model.events.messages.MessageNew;
import api.longpoll.bots.model.objects.basic.Message;
import java.io.File;import java.util.concurrent.CompletableFuture;
import java.io.File;
import java.util.concurrent.CompletableFuture;

public class HelloBot extends LongPollBot {
@Override
Expand Down
29 changes: 14 additions & 15 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>com.github.yvasyliev</groupId>
<groupId>io.github.bivashy</groupId>
<artifactId>java-vk-bots-longpoll-api</artifactId>
<packaging>jar</packaging>
<version>4.1.8</version>
<name>Java VK Bots Long Poll API</name>
<description>A Java library to create VK bots using Bots Long Poll API</description>
<url>https://github.com/yvasyliev/java-vk-bots-long-poll-api</url>
<url>https://github.com/bivashy/java-vk-bots-long-poll-api</url>

<licenses>
<license>
Expand Down Expand Up @@ -86,14 +86,13 @@
<version>3.11.0</version>
</plugin>
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>1.6.13</version>
<groupId>org.sonatype.central</groupId>
<artifactId>central-publishing-maven-plugin</artifactId>
<version>0.4.0</version>
<extensions>true</extensions>
<configuration>
<serverId>ossrh</serverId>
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
<autoReleaseAfterClose>true</autoReleaseAfterClose>
<publishingServerId>central</publishingServerId>
<tokenAuth>true</tokenAuth>
</configuration>
</plugin>
<plugin>
Expand Down Expand Up @@ -210,17 +209,17 @@
</build>

<scm>
<connection>scm:git:ssh://github.com/yvasyliev/java-vk-bots-long-poll-api.git</connection>
<developerConnection>scm:git:ssh://github.com/yvasyliev/java-vk-bots-long-poll-api.git</developerConnection>
<url>https://github.com/yvasyliev/java-vk-bots-longpoll-api</url>
<connection>scm:git:ssh://github.com/bivashy/java-vk-bots-long-poll-api.git</connection>
<developerConnection>scm:git:ssh://github.com/bivashy/java-vk-bots-long-poll-api.git</developerConnection>
<url>https://github.com/bivashy/java-vk-bots-longpoll-api</url>
</scm>

<developers>
<developer>
<name>Yevhen Vasyliev</name>
<email>ye.vasyliev@gmail.com</email>
<organization>com.github.yvasyliev</organization>
<organizationUrl>https://github.com/yvasyliev</organizationUrl>
<name>Bivashy</name>
<email>biivashy@gmail.com</email>
<organization>io.github.bivashy</organization>
<organizationUrl>https://github.com/bivashy</organizationUrl>
</developer>
</developers>
</project>
6 changes: 3 additions & 3 deletions src/test/java/updates/message/MessageNewTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ void attachedLink() {

AttachedLink attachedLink = attachment.getLink();
assertNotNull(attachedLink);
assertEquals("https://github.com/yvasyliev/java-vk-bots-long-poll-api", attachedLink.getUrl());
assertEquals("yvasyliev/java-vk-bots-long-poll-api", attachedLink.getTitle());
assertEquals("https://github.com/bivashy/java-vk-bots-long-poll-api", attachedLink.getUrl());
assertEquals("bivashy/java-vk-bots-long-poll-api", attachedLink.getTitle());
assertEquals("github.com", attachedLink.getCaption());
assertEquals("A Java library to create VK bots using Bots Long Poll API - yvasyliev/java-vk-bots-long-poll-api", attachedLink.getDescription());
assertEquals("A Java library to create VK bots using Bots Long Poll API - bivashy/java-vk-bots-long-poll-api", attachedLink.getDescription());

Photo photo = attachedLink.getPhoto();
assertNotNull(photo);
Expand Down
6 changes: 3 additions & 3 deletions src/test/resource/updates/message_new/attached_link.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@
{
"type": "link",
"link": {
"url": "https://github.com/yvasyliev/java-vk-bots-long-poll-api",
"title": "yvasyliev/java-vk-bots-long-poll-api",
"url": "https://github.com/bivashy/java-vk-bots-long-poll-api",
"title": "bivashy/java-vk-bots-long-poll-api",
"caption": "github.com",
"description": "A Java library to create VK bots using Bots Long Poll API - yvasyliev/java-vk-bots-long-poll-api",
"description": "A Java library to create VK bots using Bots Long Poll API - bivashy/java-vk-bots-long-poll-api",
"photo": {
"album_id": -27,
"date": 1619335586,
Expand Down

0 comments on commit 1a4e734

Please sign in to comment.