diff --git a/bitbucket-app/pom.xml b/bitbucket-app/pom.xml
new file mode 100644
index 0000000..3756a8e
--- /dev/null
+++ b/bitbucket-app/pom.xml
@@ -0,0 +1,66 @@
+
+
+
+ bitbucketbot
+ org.sadtech.bot.bitbucketbot
+ 2.1.0-SNAPSHOT
+
+ 4.0.0
+
+ bitbucket-app
+
+
+
+
+ org.sadtech.bot.bitbucketbot
+ bot-core
+ 2.1.0-SNAPSHOT
+
+
+
+ org.sadtech.bot.bitbucketbot
+ bot-rest
+ 2.1.0-SNAPSHOT
+
+
+
+ org.sadtech.bot.bitbucketbot
+ telegram-bot
+ 2.1.0-SNAPSHOT
+
+
+
+ org.sadtech.bot.bitbucketbot
+ bitbucket-sdk
+ 2.1.0-SNAPSHOT
+
+
+
+ org.liquibase
+ liquibase-core
+
+
+
+ org.projectlombok
+ lombok
+ true
+
+
+
+ org.springframework.boot
+ spring-boot-starter
+
+
+
+
+
+
+ org.springframework.boot
+ spring-boot-maven-plugin
+
+
+
+
+
\ No newline at end of file
diff --git a/bitbucket-app/src/main/java/org/sadtech/bot/vcs/bitbucket/BitbucketbotApplication.java b/bitbucket-app/src/main/java/org/sadtech/bot/vcs/bitbucket/BitbucketbotApplication.java
new file mode 100644
index 0000000..d6392e5
--- /dev/null
+++ b/bitbucket-app/src/main/java/org/sadtech/bot/vcs/bitbucket/BitbucketbotApplication.java
@@ -0,0 +1,17 @@
+package org.sadtech.bot.vcs.bitbucket;
+
+import org.springframework.boot.SpringApplication;
+import org.springframework.boot.autoconfigure.SpringBootApplication;
+import org.springframework.boot.autoconfigure.domain.EntityScan;
+import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
+
+@EnableJpaRepositories(basePackages = "org.sadtech.bot.vcs.core.repository.jpa")
+@SpringBootApplication(scanBasePackages = "org.sadtech.bot.vcs")
+@EntityScan(basePackages = "org.sadtech.bot.vcs.core.domain.entity")
+public class BitbucketbotApplication {
+
+ public static void main(String[] args) {
+ SpringApplication.run(BitbucketbotApplication.class, args);
+ }
+
+}
diff --git a/src/main/java/org/sadtech/bot/bitbucketbot/config/AppConfig.java b/bitbucket-app/src/main/java/org/sadtech/bot/vcs/bitbucket/app/config/AppConfig.java
similarity index 95%
rename from src/main/java/org/sadtech/bot/bitbucketbot/config/AppConfig.java
rename to bitbucket-app/src/main/java/org/sadtech/bot/vcs/bitbucket/app/config/AppConfig.java
index 657a5de..40000e5 100644
--- a/src/main/java/org/sadtech/bot/bitbucketbot/config/AppConfig.java
+++ b/bitbucket-app/src/main/java/org/sadtech/bot/vcs/bitbucket/app/config/AppConfig.java
@@ -1,4 +1,4 @@
-package org.sadtech.bot.bitbucketbot.config;
+package org.sadtech.bot.vcs.bitbucket.app.config;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
diff --git a/bitbucket-app/src/main/java/org/sadtech/bot/vcs/bitbucket/exception/BitbucketAppException.java b/bitbucket-app/src/main/java/org/sadtech/bot/vcs/bitbucket/exception/BitbucketAppException.java
new file mode 100644
index 0000000..65a1a72
--- /dev/null
+++ b/bitbucket-app/src/main/java/org/sadtech/bot/vcs/bitbucket/exception/BitbucketAppException.java
@@ -0,0 +1,14 @@
+package org.sadtech.bot.vcs.bitbucket.exception;
+
+/**
+ * // TODO: 16.09.2020 Добавить описание.
+ *
+ * @author upagge 16.09.2020
+ */
+public class BitbucketAppException extends RuntimeException {
+
+ public BitbucketAppException(String message) {
+ super(message);
+ }
+
+}
diff --git a/bitbucket-app/src/main/java/org/sadtech/bot/vcs/bitbucket/exception/ConvertException.java b/bitbucket-app/src/main/java/org/sadtech/bot/vcs/bitbucket/exception/ConvertException.java
new file mode 100644
index 0000000..75d0591
--- /dev/null
+++ b/bitbucket-app/src/main/java/org/sadtech/bot/vcs/bitbucket/exception/ConvertException.java
@@ -0,0 +1,14 @@
+package org.sadtech.bot.vcs.bitbucket.exception;
+
+/**
+ * // TODO: 16.09.2020 Добавить описание.
+ *
+ * @author upagge 16.09.2020
+ */
+public class ConvertException extends BitbucketAppException {
+
+ public ConvertException(String message) {
+ super(message);
+ }
+
+}
diff --git a/src/main/java/org/sadtech/bot/bitbucketbot/scheduler/parser/CommentAndTaskScheduler.java b/bitbucket-app/src/main/java/org/sadtech/bot/vcs/bitbucket/scheduler/CommentAndTaskScheduler.java
similarity index 84%
rename from src/main/java/org/sadtech/bot/bitbucketbot/scheduler/parser/CommentAndTaskScheduler.java
rename to bitbucket-app/src/main/java/org/sadtech/bot/vcs/bitbucket/scheduler/CommentAndTaskScheduler.java
index 49ef87a..14facbf 100644
--- a/src/main/java/org/sadtech/bot/bitbucketbot/scheduler/parser/CommentAndTaskScheduler.java
+++ b/bitbucket-app/src/main/java/org/sadtech/bot/vcs/bitbucket/scheduler/CommentAndTaskScheduler.java
@@ -1,7 +1,7 @@
-package org.sadtech.bot.bitbucketbot.scheduler.parser;
+package org.sadtech.bot.vcs.bitbucket.scheduler;
import lombok.RequiredArgsConstructor;
-import org.sadtech.bot.bitbucketbot.service.parser.CommentAndTaskParser;
+import org.sadtech.bot.vcs.bitbucket.service.CommentAndTaskParser;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
diff --git a/src/main/java/org/sadtech/bot/bitbucketbot/scheduler/parser/PersonScheduler.java b/bitbucket-app/src/main/java/org/sadtech/bot/vcs/bitbucket/scheduler/PersonScheduler.java
similarity index 75%
rename from src/main/java/org/sadtech/bot/bitbucketbot/scheduler/parser/PersonScheduler.java
rename to bitbucket-app/src/main/java/org/sadtech/bot/vcs/bitbucket/scheduler/PersonScheduler.java
index ff3cc41..e0d797d 100644
--- a/src/main/java/org/sadtech/bot/bitbucketbot/scheduler/parser/PersonScheduler.java
+++ b/bitbucket-app/src/main/java/org/sadtech/bot/vcs/bitbucket/scheduler/PersonScheduler.java
@@ -1,7 +1,7 @@
-package org.sadtech.bot.bitbucketbot.scheduler.parser;
+package org.sadtech.bot.vcs.bitbucket.scheduler;
import lombok.RequiredArgsConstructor;
-import org.sadtech.bot.bitbucketbot.service.impl.parser.PersonBitbucketParser;
+import org.sadtech.bot.vcs.bitbucket.service.parser.PersonBitbucketParser;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
diff --git a/src/main/java/org/sadtech/bot/bitbucketbot/scheduler/parser/PullRequestParserScheduler.java b/bitbucket-app/src/main/java/org/sadtech/bot/vcs/bitbucket/scheduler/PullRequestParserScheduler.java
similarity index 85%
rename from src/main/java/org/sadtech/bot/bitbucketbot/scheduler/parser/PullRequestParserScheduler.java
rename to bitbucket-app/src/main/java/org/sadtech/bot/vcs/bitbucket/scheduler/PullRequestParserScheduler.java
index 66ef0d7..de4a84b 100644
--- a/src/main/java/org/sadtech/bot/bitbucketbot/scheduler/parser/PullRequestParserScheduler.java
+++ b/bitbucket-app/src/main/java/org/sadtech/bot/vcs/bitbucket/scheduler/PullRequestParserScheduler.java
@@ -1,8 +1,8 @@
-package org.sadtech.bot.bitbucketbot.scheduler.parser;
+package org.sadtech.bot.vcs.bitbucket.scheduler;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
-import org.sadtech.bot.bitbucketbot.service.parser.PullRequestParser;
+import org.sadtech.bot.vcs.core.service.parser.PullRequestParser;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Service;
diff --git a/src/main/java/org/sadtech/bot/bitbucketbot/service/parser/CommentAndTaskParser.java b/bitbucket-app/src/main/java/org/sadtech/bot/vcs/bitbucket/service/CommentAndTaskParser.java
similarity index 88%
rename from src/main/java/org/sadtech/bot/bitbucketbot/service/parser/CommentAndTaskParser.java
rename to bitbucket-app/src/main/java/org/sadtech/bot/vcs/bitbucket/service/CommentAndTaskParser.java
index b5994f3..df997c0 100644
--- a/src/main/java/org/sadtech/bot/bitbucketbot/service/parser/CommentAndTaskParser.java
+++ b/bitbucket-app/src/main/java/org/sadtech/bot/vcs/bitbucket/service/CommentAndTaskParser.java
@@ -1,25 +1,24 @@
-package org.sadtech.bot.bitbucketbot.service.parser;
+package org.sadtech.bot.vcs.bitbucket.service;
import lombok.NonNull;
import lombok.RequiredArgsConstructor;
import org.sadtech.basic.context.page.Sheet;
import org.sadtech.basic.core.page.PaginationImpl;
-import org.sadtech.bot.bitbucketbot.config.InitProperty;
-import org.sadtech.bot.bitbucketbot.config.properties.BitbucketProperty;
-import org.sadtech.bot.bitbucketbot.config.properties.CommentSchedulerProperty;
-import org.sadtech.bot.bitbucketbot.domain.entity.Comment;
-import org.sadtech.bot.bitbucketbot.domain.entity.PullRequest;
-import org.sadtech.bot.bitbucketbot.domain.entity.PullRequestMini;
-import org.sadtech.bot.bitbucketbot.domain.entity.Task;
-import org.sadtech.bot.bitbucketbot.dto.bitbucket.CommentJson;
-import org.sadtech.bot.bitbucketbot.dto.bitbucket.Severity;
-import org.sadtech.bot.bitbucketbot.exception.NotFoundException;
-import org.sadtech.bot.bitbucketbot.service.CommentService;
-import org.sadtech.bot.bitbucketbot.service.PullRequestsService;
-import org.sadtech.bot.bitbucketbot.service.TaskService;
-import org.sadtech.bot.bitbucketbot.service.Utils;
-import org.sadtech.bot.bitbucketbot.service.executor.DataScan;
-import org.sadtech.bot.bitbucketbot.service.impl.ExecutorScanner;
+import org.sadtech.bot.vcs.bitbucket.sdk.domain.CommentJson;
+import org.sadtech.bot.vcs.bitbucket.sdk.domain.Severity;
+import org.sadtech.bot.vcs.bitbucket.service.executor.DataScan;
+import org.sadtech.bot.vcs.core.config.properties.BitbucketProperty;
+import org.sadtech.bot.vcs.core.config.properties.CommentSchedulerProperty;
+import org.sadtech.bot.vcs.core.config.properties.InitProperty;
+import org.sadtech.bot.vcs.core.domain.entity.Comment;
+import org.sadtech.bot.vcs.core.domain.entity.PullRequest;
+import org.sadtech.bot.vcs.core.domain.entity.PullRequestMini;
+import org.sadtech.bot.vcs.core.domain.entity.Task;
+import org.sadtech.bot.vcs.core.exception.NotFoundException;
+import org.sadtech.bot.vcs.core.service.CommentService;
+import org.sadtech.bot.vcs.core.service.PullRequestsService;
+import org.sadtech.bot.vcs.core.service.TaskService;
+import org.sadtech.bot.vcs.core.service.Utils;
import org.springframework.core.convert.ConversionService;
import org.springframework.stereotype.Component;
diff --git a/src/main/java/org/sadtech/bot/bitbucketbot/service/impl/ExecutorScanner.java b/bitbucket-app/src/main/java/org/sadtech/bot/vcs/bitbucket/service/ExecutorScanner.java
similarity index 82%
rename from src/main/java/org/sadtech/bot/bitbucketbot/service/impl/ExecutorScanner.java
rename to bitbucket-app/src/main/java/org/sadtech/bot/vcs/bitbucket/service/ExecutorScanner.java
index 68a98de..4d78e30 100644
--- a/src/main/java/org/sadtech/bot/bitbucketbot/service/impl/ExecutorScanner.java
+++ b/bitbucket-app/src/main/java/org/sadtech/bot/vcs/bitbucket/service/ExecutorScanner.java
@@ -1,13 +1,13 @@
-package org.sadtech.bot.bitbucketbot.service.impl;
+package org.sadtech.bot.vcs.bitbucket.service;
import lombok.NonNull;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
-import org.sadtech.bot.bitbucketbot.config.properties.BitbucketProperty;
-import org.sadtech.bot.bitbucketbot.dto.bitbucket.CommentJson;
-import org.sadtech.bot.bitbucketbot.service.executor.DataScan;
-import org.sadtech.bot.bitbucketbot.service.executor.Executor;
-import org.sadtech.bot.bitbucketbot.service.executor.Seeker;
+import org.sadtech.bot.vcs.bitbucket.sdk.domain.CommentJson;
+import org.sadtech.bot.vcs.bitbucket.service.executor.DataScan;
+import org.sadtech.bot.vcs.bitbucket.service.executor.Executor;
+import org.sadtech.bot.vcs.bitbucket.service.executor.Seeker;
+import org.sadtech.bot.vcs.core.config.properties.BitbucketProperty;
import org.springframework.stereotype.Service;
import java.util.ArrayList;
diff --git a/src/main/java/org/sadtech/bot/bitbucketbot/service/converter/CommentJsonToComment.java b/bitbucket-app/src/main/java/org/sadtech/bot/vcs/bitbucket/service/converter/CommentJsonToComment.java
similarity index 81%
rename from src/main/java/org/sadtech/bot/bitbucketbot/service/converter/CommentJsonToComment.java
rename to bitbucket-app/src/main/java/org/sadtech/bot/vcs/bitbucket/service/converter/CommentJsonToComment.java
index 461f0ba..9c82295 100644
--- a/src/main/java/org/sadtech/bot/bitbucketbot/service/converter/CommentJsonToComment.java
+++ b/bitbucket-app/src/main/java/org/sadtech/bot/vcs/bitbucket/service/converter/CommentJsonToComment.java
@@ -1,8 +1,9 @@
-package org.sadtech.bot.bitbucketbot.service.converter;
+package org.sadtech.bot.vcs.bitbucket.service.converter;
-import org.sadtech.bot.bitbucketbot.domain.entity.Comment;
-import org.sadtech.bot.bitbucketbot.dto.bitbucket.CommentJson;
-import org.sadtech.bot.bitbucketbot.dto.bitbucket.Severity;
+
+import org.sadtech.bot.vcs.bitbucket.sdk.domain.CommentJson;
+import org.sadtech.bot.vcs.bitbucket.sdk.domain.Severity;
+import org.sadtech.bot.vcs.core.domain.entity.Comment;
import org.springframework.core.convert.converter.Converter;
import org.springframework.stereotype.Component;
diff --git a/src/main/java/org/sadtech/bot/bitbucketbot/service/converter/CommentJsonToTaskConvert.java b/bitbucket-app/src/main/java/org/sadtech/bot/vcs/bitbucket/service/converter/CommentJsonToTaskConvert.java
similarity index 77%
rename from src/main/java/org/sadtech/bot/bitbucketbot/service/converter/CommentJsonToTaskConvert.java
rename to bitbucket-app/src/main/java/org/sadtech/bot/vcs/bitbucket/service/converter/CommentJsonToTaskConvert.java
index 42be382..3b167c8 100644
--- a/src/main/java/org/sadtech/bot/bitbucketbot/service/converter/CommentJsonToTaskConvert.java
+++ b/bitbucket-app/src/main/java/org/sadtech/bot/vcs/bitbucket/service/converter/CommentJsonToTaskConvert.java
@@ -1,11 +1,11 @@
-package org.sadtech.bot.bitbucketbot.service.converter;
+package org.sadtech.bot.vcs.bitbucket.service.converter;
-import org.sadtech.basic.context.exception.ConvertException;
-import org.sadtech.bot.bitbucketbot.domain.TaskStatus;
-import org.sadtech.bot.bitbucketbot.domain.entity.Task;
-import org.sadtech.bot.bitbucketbot.dto.bitbucket.CommentJson;
-import org.sadtech.bot.bitbucketbot.dto.bitbucket.CommentState;
-import org.sadtech.bot.bitbucketbot.dto.bitbucket.Severity;
+import org.sadtech.bot.vcs.bitbucket.exception.ConvertException;
+import org.sadtech.bot.vcs.bitbucket.sdk.domain.CommentJson;
+import org.sadtech.bot.vcs.bitbucket.sdk.domain.CommentState;
+import org.sadtech.bot.vcs.bitbucket.sdk.domain.Severity;
+import org.sadtech.bot.vcs.core.domain.TaskStatus;
+import org.sadtech.bot.vcs.core.domain.entity.Task;
import org.springframework.core.convert.converter.Converter;
import org.springframework.stereotype.Component;
diff --git a/src/main/java/org/sadtech/bot/bitbucketbot/service/converter/PullRequestJsonConverter.java b/bitbucket-app/src/main/java/org/sadtech/bot/vcs/bitbucket/service/converter/PullRequestJsonConverter.java
similarity index 77%
rename from src/main/java/org/sadtech/bot/bitbucketbot/service/converter/PullRequestJsonConverter.java
rename to bitbucket-app/src/main/java/org/sadtech/bot/vcs/bitbucket/service/converter/PullRequestJsonConverter.java
index db9ff2c..4a67a97 100644
--- a/src/main/java/org/sadtech/bot/bitbucketbot/service/converter/PullRequestJsonConverter.java
+++ b/bitbucket-app/src/main/java/org/sadtech/bot/vcs/bitbucket/service/converter/PullRequestJsonConverter.java
@@ -1,16 +1,17 @@
-package org.sadtech.bot.bitbucketbot.service.converter;
+package org.sadtech.bot.vcs.bitbucket.service.converter;
import lombok.RequiredArgsConstructor;
-import org.sadtech.bot.bitbucketbot.domain.PullRequestStatus;
-import org.sadtech.bot.bitbucketbot.domain.ReviewerStatus;
-import org.sadtech.bot.bitbucketbot.domain.entity.PullRequest;
-import org.sadtech.bot.bitbucketbot.domain.entity.Reviewer;
-import org.sadtech.bot.bitbucketbot.dto.bitbucket.Outcome;
-import org.sadtech.bot.bitbucketbot.dto.bitbucket.Properties;
-import org.sadtech.bot.bitbucketbot.dto.bitbucket.PullRequestJson;
-import org.sadtech.bot.bitbucketbot.dto.bitbucket.PullRequestState;
-import org.sadtech.bot.bitbucketbot.dto.bitbucket.UserDecisionJson;
-import org.sadtech.bot.bitbucketbot.dto.bitbucket.UserPullRequestStatus;
+import org.sadtech.bot.vcs.bitbucket.exception.ConvertException;
+import org.sadtech.bot.vcs.bitbucket.sdk.domain.Outcome;
+import org.sadtech.bot.vcs.bitbucket.sdk.domain.Properties;
+import org.sadtech.bot.vcs.bitbucket.sdk.domain.PullRequestJson;
+import org.sadtech.bot.vcs.bitbucket.sdk.domain.PullRequestState;
+import org.sadtech.bot.vcs.bitbucket.sdk.domain.UserDecisionJson;
+import org.sadtech.bot.vcs.bitbucket.sdk.domain.UserPullRequestStatus;
+import org.sadtech.bot.vcs.core.domain.PullRequestStatus;
+import org.sadtech.bot.vcs.core.domain.ReviewerStatus;
+import org.sadtech.bot.vcs.core.domain.entity.PullRequest;
+import org.sadtech.bot.vcs.core.domain.entity.Reviewer;
import org.springframework.core.convert.converter.Converter;
import org.springframework.stereotype.Component;
@@ -64,8 +65,9 @@ public class PullRequestJsonConverter implements Converter convertReviewers(List jsonReviewers) {
@@ -89,8 +91,9 @@ public class PullRequestJsonConverter implements Converter {
boolean registration(@NonNull List seeker);
List getResult();
+
}
diff --git a/src/main/java/org/sadtech/bot/bitbucketbot/service/executor/ResultScan.java b/bitbucket-app/src/main/java/org/sadtech/bot/vcs/bitbucket/service/executor/ResultScan.java
similarity index 67%
rename from src/main/java/org/sadtech/bot/bitbucketbot/service/executor/ResultScan.java
rename to bitbucket-app/src/main/java/org/sadtech/bot/vcs/bitbucket/service/executor/ResultScan.java
index 7945cc4..8468cf6 100644
--- a/src/main/java/org/sadtech/bot/bitbucketbot/service/executor/ResultScan.java
+++ b/bitbucket-app/src/main/java/org/sadtech/bot/vcs/bitbucket/service/executor/ResultScan.java
@@ -1,8 +1,8 @@
-package org.sadtech.bot.bitbucketbot.service.executor;
+package org.sadtech.bot.vcs.bitbucket.service.executor;
import lombok.Getter;
import lombok.RequiredArgsConstructor;
-import org.sadtech.bot.bitbucketbot.dto.bitbucket.CommentJson;
+import org.sadtech.bot.vcs.bitbucket.sdk.domain.CommentJson;
@Getter
@RequiredArgsConstructor
diff --git a/src/main/java/org/sadtech/bot/bitbucketbot/service/executor/Seeker.java b/bitbucket-app/src/main/java/org/sadtech/bot/vcs/bitbucket/service/executor/Seeker.java
similarity index 81%
rename from src/main/java/org/sadtech/bot/bitbucketbot/service/executor/Seeker.java
rename to bitbucket-app/src/main/java/org/sadtech/bot/vcs/bitbucket/service/executor/Seeker.java
index e1b9010..82e27dd 100644
--- a/src/main/java/org/sadtech/bot/bitbucketbot/service/executor/Seeker.java
+++ b/bitbucket-app/src/main/java/org/sadtech/bot/vcs/bitbucket/service/executor/Seeker.java
@@ -1,8 +1,8 @@
-package org.sadtech.bot.bitbucketbot.service.executor;
+package org.sadtech.bot.vcs.bitbucket.service.executor;
import lombok.RequiredArgsConstructor;
-import org.sadtech.bot.bitbucketbot.dto.bitbucket.CommentJson;
-import org.sadtech.bot.bitbucketbot.service.Utils;
+import org.sadtech.bot.vcs.bitbucket.sdk.domain.CommentJson;
+import org.sadtech.bot.vcs.core.service.Utils;
import java.util.Optional;
import java.util.concurrent.Callable;
diff --git a/src/main/java/org/sadtech/bot/bitbucketbot/service/impl/parser/PersonBitbucketParser.java b/bitbucket-app/src/main/java/org/sadtech/bot/vcs/bitbucket/service/parser/PersonBitbucketParser.java
similarity index 78%
rename from src/main/java/org/sadtech/bot/bitbucketbot/service/impl/parser/PersonBitbucketParser.java
rename to bitbucket-app/src/main/java/org/sadtech/bot/vcs/bitbucket/service/parser/PersonBitbucketParser.java
index 352fc78..1a57e4e 100644
--- a/src/main/java/org/sadtech/bot/bitbucketbot/service/impl/parser/PersonBitbucketParser.java
+++ b/bitbucket-app/src/main/java/org/sadtech/bot/vcs/bitbucket/service/parser/PersonBitbucketParser.java
@@ -1,13 +1,13 @@
-package org.sadtech.bot.bitbucketbot.service.impl.parser;
+package org.sadtech.bot.vcs.bitbucket.service.parser;
import lombok.RequiredArgsConstructor;
-import org.sadtech.bot.bitbucketbot.config.properties.BitbucketProperty;
-import org.sadtech.bot.bitbucketbot.domain.entity.Person;
-import org.sadtech.bot.bitbucketbot.dto.bitbucket.UserJson;
-import org.sadtech.bot.bitbucketbot.dto.bitbucket.sheet.UserSheetJson;
-import org.sadtech.bot.bitbucketbot.service.PersonService;
-import org.sadtech.bot.bitbucketbot.service.Utils;
-import org.sadtech.bot.bitbucketbot.service.parser.PersonParser;
+import org.sadtech.bot.vcs.bitbucket.sdk.domain.UserJson;
+import org.sadtech.bot.vcs.bitbucket.sdk.domain.sheet.UserSheetJson;
+import org.sadtech.bot.vcs.core.config.properties.BitbucketProperty;
+import org.sadtech.bot.vcs.core.domain.entity.Person;
+import org.sadtech.bot.vcs.core.service.PersonService;
+import org.sadtech.bot.vcs.core.service.Utils;
+import org.sadtech.bot.vcs.core.service.parser.PersonParser;
import org.springframework.core.convert.ConversionService;
import org.springframework.stereotype.Service;
diff --git a/src/main/java/org/sadtech/bot/bitbucketbot/service/impl/parser/PullRequestBitbucketParser.java b/bitbucket-app/src/main/java/org/sadtech/bot/vcs/bitbucket/service/parser/PullRequestBitbucketParser.java
similarity index 81%
rename from src/main/java/org/sadtech/bot/bitbucketbot/service/impl/parser/PullRequestBitbucketParser.java
rename to bitbucket-app/src/main/java/org/sadtech/bot/vcs/bitbucket/service/parser/PullRequestBitbucketParser.java
index 2900c70..7f6d226 100644
--- a/src/main/java/org/sadtech/bot/bitbucketbot/service/impl/parser/PullRequestBitbucketParser.java
+++ b/bitbucket-app/src/main/java/org/sadtech/bot/vcs/bitbucket/service/parser/PullRequestBitbucketParser.java
@@ -1,21 +1,21 @@
-package org.sadtech.bot.bitbucketbot.service.impl.parser;
+package org.sadtech.bot.vcs.bitbucket.service.parser;
import lombok.NonNull;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
-import org.sadtech.bot.bitbucketbot.config.properties.BitbucketProperty;
-import org.sadtech.bot.bitbucketbot.domain.IdAndStatusPr;
-import org.sadtech.bot.bitbucketbot.domain.PullRequestStatus;
-import org.sadtech.bot.bitbucketbot.domain.entity.Person;
-import org.sadtech.bot.bitbucketbot.domain.entity.PullRequest;
-import org.sadtech.bot.bitbucketbot.domain.filter.PullRequestFilter;
-import org.sadtech.bot.bitbucketbot.dto.bitbucket.PullRequestJson;
-import org.sadtech.bot.bitbucketbot.dto.bitbucket.sheet.PullRequestSheetJson;
-import org.sadtech.bot.bitbucketbot.service.PersonService;
-import org.sadtech.bot.bitbucketbot.service.PullRequestsService;
-import org.sadtech.bot.bitbucketbot.service.Utils;
-import org.sadtech.bot.bitbucketbot.service.parser.PullRequestParser;
-import org.sadtech.bot.bitbucketbot.utils.Pair;
+import org.sadtech.bot.vcs.bitbucket.sdk.domain.PullRequestJson;
+import org.sadtech.bot.vcs.bitbucket.sdk.domain.sheet.PullRequestSheetJson;
+import org.sadtech.bot.vcs.core.config.properties.BitbucketProperty;
+import org.sadtech.bot.vcs.core.domain.IdAndStatusPr;
+import org.sadtech.bot.vcs.core.domain.PullRequestStatus;
+import org.sadtech.bot.vcs.core.domain.entity.Person;
+import org.sadtech.bot.vcs.core.domain.entity.PullRequest;
+import org.sadtech.bot.vcs.core.domain.filter.PullRequestFilter;
+import org.sadtech.bot.vcs.core.service.PersonService;
+import org.sadtech.bot.vcs.core.service.PullRequestsService;
+import org.sadtech.bot.vcs.core.service.Utils;
+import org.sadtech.bot.vcs.core.service.parser.PullRequestParser;
+import org.sadtech.bot.vcs.core.utils.Pair;
import org.springframework.core.convert.ConversionService;
import org.springframework.stereotype.Service;
@@ -27,16 +27,12 @@ import java.util.Set;
import java.util.stream.Collectors;
import java.util.stream.Stream;
-import static org.sadtech.bot.bitbucketbot.domain.PullRequestStatus.DECLINED;
-import static org.sadtech.bot.bitbucketbot.domain.PullRequestStatus.MERGED;
-import static org.sadtech.bot.bitbucketbot.domain.PullRequestStatus.OPEN;
-
@Slf4j
@Service
@RequiredArgsConstructor
public class PullRequestBitbucketParser implements PullRequestParser {
- private static final Set OLD_STATUSES = Stream.of(MERGED, OPEN, DECLINED).collect(Collectors.toSet());
+ private static final Set OLD_STATUSES = Stream.of(PullRequestStatus.MERGED, PullRequestStatus.OPEN, PullRequestStatus.DECLINED).collect(Collectors.toSet());
private final PullRequestsService pullRequestsService;
private final PersonService personService;
diff --git a/src/main/java/org/sadtech/bot/bitbucketbot/utils/Converter.java b/bitbucket-app/src/main/java/org/sadtech/bot/vcs/bitbucket/utils/Converter.java
similarity index 69%
rename from src/main/java/org/sadtech/bot/bitbucketbot/utils/Converter.java
rename to bitbucket-app/src/main/java/org/sadtech/bot/vcs/bitbucket/utils/Converter.java
index 427b8f0..4d272be 100644
--- a/src/main/java/org/sadtech/bot/bitbucketbot/utils/Converter.java
+++ b/bitbucket-app/src/main/java/org/sadtech/bot/vcs/bitbucket/utils/Converter.java
@@ -1,10 +1,10 @@
-package org.sadtech.bot.bitbucketbot.utils;
+package org.sadtech.bot.vcs.bitbucket.utils;
import lombok.AccessLevel;
import lombok.NoArgsConstructor;
-import org.sadtech.bot.bitbucketbot.domain.TaskStatus;
-import org.sadtech.bot.bitbucketbot.dto.bitbucket.CommentState;
-import org.sadtech.bot.bitbucketbot.exception.NotFoundException;
+import org.sadtech.bot.vcs.bitbucket.sdk.domain.CommentState;
+import org.sadtech.bot.vcs.core.domain.TaskStatus;
+import org.sadtech.bot.vcs.core.exception.NotFoundException;
@NoArgsConstructor(access = AccessLevel.PRIVATE)
public class Converter {
diff --git a/src/main/resources/application-dev.yaml b/bitbucket-app/src/main/resources/application-dev.yaml
similarity index 100%
rename from src/main/resources/application-dev.yaml
rename to bitbucket-app/src/main/resources/application-dev.yaml
diff --git a/src/main/resources/application-prod.yaml b/bitbucket-app/src/main/resources/application-prod.yaml
similarity index 100%
rename from src/main/resources/application-prod.yaml
rename to bitbucket-app/src/main/resources/application-prod.yaml
diff --git a/bitbucket-app/src/main/resources/application.yaml b/bitbucket-app/src/main/resources/application.yaml
new file mode 100644
index 0000000..d43e964
--- /dev/null
+++ b/bitbucket-app/src/main/resources/application.yaml
@@ -0,0 +1,5 @@
+server:
+ port: 8018
+telegram-config:
+ bot-username: tsc_test_two_bot
+ bot-token: 1304335862:AAFXGxRkTZBiL9Gjce_oFoP2cOn7j8qEwDI
\ No newline at end of file
diff --git a/src/main/resources/liquibase/change-log.xml b/bitbucket-app/src/main/resources/liquibase/change-log.xml
similarity index 100%
rename from src/main/resources/liquibase/change-log.xml
rename to bitbucket-app/src/main/resources/liquibase/change-log.xml
diff --git a/src/main/resources/liquibase/v.2.0.0/2020-09-06-create-table.xml b/bitbucket-app/src/main/resources/liquibase/v.2.0.0/2020-09-06-create-table.xml
similarity index 100%
rename from src/main/resources/liquibase/v.2.0.0/2020-09-06-create-table.xml
rename to bitbucket-app/src/main/resources/liquibase/v.2.0.0/2020-09-06-create-table.xml
diff --git a/src/main/resources/liquibase/v.2.0.0/2020-09-06-cumulative.xml b/bitbucket-app/src/main/resources/liquibase/v.2.0.0/2020-09-06-cumulative.xml
similarity index 100%
rename from src/main/resources/liquibase/v.2.0.0/2020-09-06-cumulative.xml
rename to bitbucket-app/src/main/resources/liquibase/v.2.0.0/2020-09-06-cumulative.xml
diff --git a/src/main/resources/liquibase/v.2.0.0/2020-09-15-fix-task-comments.xml b/bitbucket-app/src/main/resources/liquibase/v.2.0.0/2020-09-15-fix-task-comments.xml
similarity index 100%
rename from src/main/resources/liquibase/v.2.0.0/2020-09-15-fix-task-comments.xml
rename to bitbucket-app/src/main/resources/liquibase/v.2.0.0/2020-09-15-fix-task-comments.xml
diff --git a/src/main/resources/logback.xml b/bitbucket-app/src/main/resources/logback.xml
similarity index 95%
rename from src/main/resources/logback.xml
rename to bitbucket-app/src/main/resources/logback.xml
index 0335154..e106cf3 100644
--- a/src/main/resources/logback.xml
+++ b/bitbucket-app/src/main/resources/logback.xml
@@ -18,7 +18,7 @@
-
+
\ No newline at end of file
diff --git a/src/main/resources/public/index.html b/bitbucket-app/src/main/resources/public/index.html
similarity index 100%
rename from src/main/resources/public/index.html
rename to bitbucket-app/src/main/resources/public/index.html
diff --git a/src/main/resources/public/static/css/signin.css b/bitbucket-app/src/main/resources/public/static/css/signin.css
similarity index 100%
rename from src/main/resources/public/static/css/signin.css
rename to bitbucket-app/src/main/resources/public/static/css/signin.css
diff --git a/bitbucket-sdk/pom.xml b/bitbucket-sdk/pom.xml
new file mode 100644
index 0000000..e4b77bc
--- /dev/null
+++ b/bitbucket-sdk/pom.xml
@@ -0,0 +1,28 @@
+
+
+
+ bitbucketbot
+ org.sadtech.bot.bitbucketbot
+ 2.1.0-SNAPSHOT
+
+ 4.0.0
+
+ bitbucket-sdk
+ 2.1.0-SNAPSHOT
+ jar
+
+
+
+ org.projectlombok
+ lombok
+
+
+
+ com.fasterxml.jackson.core
+ jackson-databind
+
+
+
+
\ No newline at end of file
diff --git a/src/main/java/org/sadtech/bot/bitbucketbot/domain/BitbucketUserRole.java b/bitbucket-sdk/src/main/java/org/sadtech/bot/vcs/bitbucket/sdk/domain/BitbucketUserRole.java
similarity index 76%
rename from src/main/java/org/sadtech/bot/bitbucketbot/domain/BitbucketUserRole.java
rename to bitbucket-sdk/src/main/java/org/sadtech/bot/vcs/bitbucket/sdk/domain/BitbucketUserRole.java
index 934ec92..993fff5 100644
--- a/src/main/java/org/sadtech/bot/bitbucketbot/domain/BitbucketUserRole.java
+++ b/bitbucket-sdk/src/main/java/org/sadtech/bot/vcs/bitbucket/sdk/domain/BitbucketUserRole.java
@@ -1,4 +1,4 @@
-package org.sadtech.bot.bitbucketbot.domain;
+package org.sadtech.bot.vcs.bitbucket.sdk.domain;
/**
* TODO: Добавить комментарий енума.
diff --git a/src/main/java/org/sadtech/bot/bitbucketbot/dto/bitbucket/CommentJson.java b/bitbucket-sdk/src/main/java/org/sadtech/bot/vcs/bitbucket/sdk/domain/CommentJson.java
similarity index 83%
rename from src/main/java/org/sadtech/bot/bitbucketbot/dto/bitbucket/CommentJson.java
rename to bitbucket-sdk/src/main/java/org/sadtech/bot/vcs/bitbucket/sdk/domain/CommentJson.java
index d707752..a6ec07d 100644
--- a/src/main/java/org/sadtech/bot/bitbucketbot/dto/bitbucket/CommentJson.java
+++ b/bitbucket-sdk/src/main/java/org/sadtech/bot/vcs/bitbucket/sdk/domain/CommentJson.java
@@ -1,8 +1,8 @@
-package org.sadtech.bot.bitbucketbot.dto.bitbucket;
+package org.sadtech.bot.vcs.bitbucket.sdk.domain;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import lombok.Data;
-import org.sadtech.bot.bitbucketbot.utils.LocalDateTimeFromEpochDeserializer;
+import org.sadtech.bot.vcs.bitbucket.sdk.utils.LocalDateTimeFromEpochDeserializer;
import java.time.LocalDateTime;
import java.util.List;
diff --git a/src/main/java/org/sadtech/bot/bitbucketbot/dto/bitbucket/CommentState.java b/bitbucket-sdk/src/main/java/org/sadtech/bot/vcs/bitbucket/sdk/domain/CommentState.java
similarity index 51%
rename from src/main/java/org/sadtech/bot/bitbucketbot/dto/bitbucket/CommentState.java
rename to bitbucket-sdk/src/main/java/org/sadtech/bot/vcs/bitbucket/sdk/domain/CommentState.java
index 7c69842..f9cba55 100644
--- a/src/main/java/org/sadtech/bot/bitbucketbot/dto/bitbucket/CommentState.java
+++ b/bitbucket-sdk/src/main/java/org/sadtech/bot/vcs/bitbucket/sdk/domain/CommentState.java
@@ -1,4 +1,4 @@
-package org.sadtech.bot.bitbucketbot.dto.bitbucket;
+package org.sadtech.bot.vcs.bitbucket.sdk.domain;
public enum CommentState {
diff --git a/src/main/java/org/sadtech/bot/bitbucketbot/dto/bitbucket/FromRefJson.java b/bitbucket-sdk/src/main/java/org/sadtech/bot/vcs/bitbucket/sdk/domain/FromRefJson.java
similarity index 79%
rename from src/main/java/org/sadtech/bot/bitbucketbot/dto/bitbucket/FromRefJson.java
rename to bitbucket-sdk/src/main/java/org/sadtech/bot/vcs/bitbucket/sdk/domain/FromRefJson.java
index b8c8395..bb3f6a9 100644
--- a/src/main/java/org/sadtech/bot/bitbucketbot/dto/bitbucket/FromRefJson.java
+++ b/bitbucket-sdk/src/main/java/org/sadtech/bot/vcs/bitbucket/sdk/domain/FromRefJson.java
@@ -1,4 +1,4 @@
-package org.sadtech.bot.bitbucketbot.dto.bitbucket;
+package org.sadtech.bot.vcs.bitbucket.sdk.domain;
import lombok.Data;
diff --git a/src/main/java/org/sadtech/bot/bitbucketbot/dto/bitbucket/LinkJson.java b/bitbucket-sdk/src/main/java/org/sadtech/bot/vcs/bitbucket/sdk/domain/LinkJson.java
similarity index 80%
rename from src/main/java/org/sadtech/bot/bitbucketbot/dto/bitbucket/LinkJson.java
rename to bitbucket-sdk/src/main/java/org/sadtech/bot/vcs/bitbucket/sdk/domain/LinkJson.java
index 326a395..ddd9bc2 100644
--- a/src/main/java/org/sadtech/bot/bitbucketbot/dto/bitbucket/LinkJson.java
+++ b/bitbucket-sdk/src/main/java/org/sadtech/bot/vcs/bitbucket/sdk/domain/LinkJson.java
@@ -1,4 +1,4 @@
-package org.sadtech.bot.bitbucketbot.dto.bitbucket;
+package org.sadtech.bot.vcs.bitbucket.sdk.domain;
import lombok.Data;
diff --git a/src/main/java/org/sadtech/bot/bitbucketbot/dto/bitbucket/MergeResult.java b/bitbucket-sdk/src/main/java/org/sadtech/bot/vcs/bitbucket/sdk/domain/MergeResult.java
similarity index 62%
rename from src/main/java/org/sadtech/bot/bitbucketbot/dto/bitbucket/MergeResult.java
rename to bitbucket-sdk/src/main/java/org/sadtech/bot/vcs/bitbucket/sdk/domain/MergeResult.java
index 3352afe..3b9538c 100644
--- a/src/main/java/org/sadtech/bot/bitbucketbot/dto/bitbucket/MergeResult.java
+++ b/bitbucket-sdk/src/main/java/org/sadtech/bot/vcs/bitbucket/sdk/domain/MergeResult.java
@@ -1,4 +1,4 @@
-package org.sadtech.bot.bitbucketbot.dto.bitbucket;
+package org.sadtech.bot.vcs.bitbucket.sdk.domain;
import lombok.Data;
diff --git a/src/main/java/org/sadtech/bot/bitbucketbot/dto/bitbucket/Outcome.java b/bitbucket-sdk/src/main/java/org/sadtech/bot/vcs/bitbucket/sdk/domain/Outcome.java
similarity index 50%
rename from src/main/java/org/sadtech/bot/bitbucketbot/dto/bitbucket/Outcome.java
rename to bitbucket-sdk/src/main/java/org/sadtech/bot/vcs/bitbucket/sdk/domain/Outcome.java
index 5ea0936..bd3c3b4 100644
--- a/src/main/java/org/sadtech/bot/bitbucketbot/dto/bitbucket/Outcome.java
+++ b/bitbucket-sdk/src/main/java/org/sadtech/bot/vcs/bitbucket/sdk/domain/Outcome.java
@@ -1,4 +1,4 @@
-package org.sadtech.bot.bitbucketbot.dto.bitbucket;
+package org.sadtech.bot.vcs.bitbucket.sdk.domain;
public enum Outcome {
diff --git a/src/main/java/org/sadtech/bot/bitbucketbot/dto/bitbucket/ProjectJson.java b/bitbucket-sdk/src/main/java/org/sadtech/bot/vcs/bitbucket/sdk/domain/ProjectJson.java
similarity index 61%
rename from src/main/java/org/sadtech/bot/bitbucketbot/dto/bitbucket/ProjectJson.java
rename to bitbucket-sdk/src/main/java/org/sadtech/bot/vcs/bitbucket/sdk/domain/ProjectJson.java
index 09f5975..895581e 100644
--- a/src/main/java/org/sadtech/bot/bitbucketbot/dto/bitbucket/ProjectJson.java
+++ b/bitbucket-sdk/src/main/java/org/sadtech/bot/vcs/bitbucket/sdk/domain/ProjectJson.java
@@ -1,4 +1,4 @@
-package org.sadtech.bot.bitbucketbot.dto.bitbucket;
+package org.sadtech.bot.vcs.bitbucket.sdk.domain;
import lombok.Data;
diff --git a/src/main/java/org/sadtech/bot/bitbucketbot/dto/bitbucket/Properties.java b/bitbucket-sdk/src/main/java/org/sadtech/bot/vcs/bitbucket/sdk/domain/Properties.java
similarity index 64%
rename from src/main/java/org/sadtech/bot/bitbucketbot/dto/bitbucket/Properties.java
rename to bitbucket-sdk/src/main/java/org/sadtech/bot/vcs/bitbucket/sdk/domain/Properties.java
index 0cee906..21e309e 100644
--- a/src/main/java/org/sadtech/bot/bitbucketbot/dto/bitbucket/Properties.java
+++ b/bitbucket-sdk/src/main/java/org/sadtech/bot/vcs/bitbucket/sdk/domain/Properties.java
@@ -1,4 +1,4 @@
-package org.sadtech.bot.bitbucketbot.dto.bitbucket;
+package org.sadtech.bot.vcs.bitbucket.sdk.domain;
import lombok.Data;
diff --git a/src/main/java/org/sadtech/bot/bitbucketbot/dto/bitbucket/PullRequestJson.java b/bitbucket-sdk/src/main/java/org/sadtech/bot/vcs/bitbucket/sdk/domain/PullRequestJson.java
similarity index 86%
rename from src/main/java/org/sadtech/bot/bitbucketbot/dto/bitbucket/PullRequestJson.java
rename to bitbucket-sdk/src/main/java/org/sadtech/bot/vcs/bitbucket/sdk/domain/PullRequestJson.java
index 20c9938..685d204 100644
--- a/src/main/java/org/sadtech/bot/bitbucketbot/dto/bitbucket/PullRequestJson.java
+++ b/bitbucket-sdk/src/main/java/org/sadtech/bot/vcs/bitbucket/sdk/domain/PullRequestJson.java
@@ -1,8 +1,8 @@
-package org.sadtech.bot.bitbucketbot.dto.bitbucket;
+package org.sadtech.bot.vcs.bitbucket.sdk.domain;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import lombok.Data;
-import org.sadtech.bot.bitbucketbot.utils.LocalDateTimeFromEpochDeserializer;
+import org.sadtech.bot.vcs.bitbucket.sdk.utils.LocalDateTimeFromEpochDeserializer;
import java.time.LocalDateTime;
import java.util.List;
diff --git a/src/main/java/org/sadtech/bot/bitbucketbot/dto/bitbucket/PullRequestState.java b/bitbucket-sdk/src/main/java/org/sadtech/bot/vcs/bitbucket/sdk/domain/PullRequestState.java
similarity index 76%
rename from src/main/java/org/sadtech/bot/bitbucketbot/dto/bitbucket/PullRequestState.java
rename to bitbucket-sdk/src/main/java/org/sadtech/bot/vcs/bitbucket/sdk/domain/PullRequestState.java
index eed16da..e1ff0d6 100644
--- a/src/main/java/org/sadtech/bot/bitbucketbot/dto/bitbucket/PullRequestState.java
+++ b/bitbucket-sdk/src/main/java/org/sadtech/bot/vcs/bitbucket/sdk/domain/PullRequestState.java
@@ -1,4 +1,4 @@
-package org.sadtech.bot.bitbucketbot.dto.bitbucket;
+package org.sadtech.bot.vcs.bitbucket.sdk.domain;
/**
* TODO: Добавить комментарий енума.
diff --git a/src/main/java/org/sadtech/bot/bitbucketbot/dto/bitbucket/RepositoryJson.java b/bitbucket-sdk/src/main/java/org/sadtech/bot/vcs/bitbucket/sdk/domain/RepositoryJson.java
similarity index 82%
rename from src/main/java/org/sadtech/bot/bitbucketbot/dto/bitbucket/RepositoryJson.java
rename to bitbucket-sdk/src/main/java/org/sadtech/bot/vcs/bitbucket/sdk/domain/RepositoryJson.java
index 8e10daa..5d54a58 100644
--- a/src/main/java/org/sadtech/bot/bitbucketbot/dto/bitbucket/RepositoryJson.java
+++ b/bitbucket-sdk/src/main/java/org/sadtech/bot/vcs/bitbucket/sdk/domain/RepositoryJson.java
@@ -1,4 +1,4 @@
-package org.sadtech.bot.bitbucketbot.dto.bitbucket;
+package org.sadtech.bot.vcs.bitbucket.sdk.domain;
import lombok.Data;
diff --git a/src/main/java/org/sadtech/bot/bitbucketbot/dto/bitbucket/SelfJson.java b/bitbucket-sdk/src/main/java/org/sadtech/bot/vcs/bitbucket/sdk/domain/SelfJson.java
similarity index 77%
rename from src/main/java/org/sadtech/bot/bitbucketbot/dto/bitbucket/SelfJson.java
rename to bitbucket-sdk/src/main/java/org/sadtech/bot/vcs/bitbucket/sdk/domain/SelfJson.java
index 78ae500..8ce9b4e 100644
--- a/src/main/java/org/sadtech/bot/bitbucketbot/dto/bitbucket/SelfJson.java
+++ b/bitbucket-sdk/src/main/java/org/sadtech/bot/vcs/bitbucket/sdk/domain/SelfJson.java
@@ -1,4 +1,4 @@
-package org.sadtech.bot.bitbucketbot.dto.bitbucket;
+package org.sadtech.bot.vcs.bitbucket.sdk.domain;
import lombok.Data;
diff --git a/src/main/java/org/sadtech/bot/bitbucketbot/dto/bitbucket/Severity.java b/bitbucket-sdk/src/main/java/org/sadtech/bot/vcs/bitbucket/sdk/domain/Severity.java
similarity index 50%
rename from src/main/java/org/sadtech/bot/bitbucketbot/dto/bitbucket/Severity.java
rename to bitbucket-sdk/src/main/java/org/sadtech/bot/vcs/bitbucket/sdk/domain/Severity.java
index 77a97af..eb45448 100644
--- a/src/main/java/org/sadtech/bot/bitbucketbot/dto/bitbucket/Severity.java
+++ b/bitbucket-sdk/src/main/java/org/sadtech/bot/vcs/bitbucket/sdk/domain/Severity.java
@@ -1,4 +1,4 @@
-package org.sadtech.bot.bitbucketbot.dto.bitbucket;
+package org.sadtech.bot.vcs.bitbucket.sdk.domain;
public enum Severity {
diff --git a/src/main/java/org/sadtech/bot/bitbucketbot/dto/bitbucket/Sheet.java b/bitbucket-sdk/src/main/java/org/sadtech/bot/vcs/bitbucket/sdk/domain/Sheet.java
similarity index 89%
rename from src/main/java/org/sadtech/bot/bitbucketbot/dto/bitbucket/Sheet.java
rename to bitbucket-sdk/src/main/java/org/sadtech/bot/vcs/bitbucket/sdk/domain/Sheet.java
index ebbed98..fb5444a 100644
--- a/src/main/java/org/sadtech/bot/bitbucketbot/dto/bitbucket/Sheet.java
+++ b/bitbucket-sdk/src/main/java/org/sadtech/bot/vcs/bitbucket/sdk/domain/Sheet.java
@@ -1,4 +1,4 @@
-package org.sadtech.bot.bitbucketbot.dto.bitbucket;
+package org.sadtech.bot.vcs.bitbucket.sdk.domain;
import lombok.Data;
diff --git a/src/main/java/org/sadtech/bot/bitbucketbot/dto/bitbucket/UserDecisionJson.java b/bitbucket-sdk/src/main/java/org/sadtech/bot/vcs/bitbucket/sdk/domain/UserDecisionJson.java
similarity index 72%
rename from src/main/java/org/sadtech/bot/bitbucketbot/dto/bitbucket/UserDecisionJson.java
rename to bitbucket-sdk/src/main/java/org/sadtech/bot/vcs/bitbucket/sdk/domain/UserDecisionJson.java
index 4677b56..da8d655 100644
--- a/src/main/java/org/sadtech/bot/bitbucketbot/dto/bitbucket/UserDecisionJson.java
+++ b/bitbucket-sdk/src/main/java/org/sadtech/bot/vcs/bitbucket/sdk/domain/UserDecisionJson.java
@@ -1,7 +1,6 @@
-package org.sadtech.bot.bitbucketbot.dto.bitbucket;
+package org.sadtech.bot.vcs.bitbucket.sdk.domain;
import lombok.Data;
-import org.sadtech.bot.bitbucketbot.domain.BitbucketUserRole;
/**
* TODO: Добавить описание класса.
diff --git a/src/main/java/org/sadtech/bot/bitbucketbot/dto/bitbucket/UserJson.java b/bitbucket-sdk/src/main/java/org/sadtech/bot/vcs/bitbucket/sdk/domain/UserJson.java
similarity index 80%
rename from src/main/java/org/sadtech/bot/bitbucketbot/dto/bitbucket/UserJson.java
rename to bitbucket-sdk/src/main/java/org/sadtech/bot/vcs/bitbucket/sdk/domain/UserJson.java
index a0bc721..f18856c 100644
--- a/src/main/java/org/sadtech/bot/bitbucketbot/dto/bitbucket/UserJson.java
+++ b/bitbucket-sdk/src/main/java/org/sadtech/bot/vcs/bitbucket/sdk/domain/UserJson.java
@@ -1,4 +1,4 @@
-package org.sadtech.bot.bitbucketbot.dto.bitbucket;
+package org.sadtech.bot.vcs.bitbucket.sdk.domain;
import lombok.Data;
diff --git a/src/main/java/org/sadtech/bot/bitbucketbot/dto/bitbucket/UserPullRequestStatus.java b/bitbucket-sdk/src/main/java/org/sadtech/bot/vcs/bitbucket/sdk/domain/UserPullRequestStatus.java
similarity index 77%
rename from src/main/java/org/sadtech/bot/bitbucketbot/dto/bitbucket/UserPullRequestStatus.java
rename to bitbucket-sdk/src/main/java/org/sadtech/bot/vcs/bitbucket/sdk/domain/UserPullRequestStatus.java
index 2ed08fd..1d739d0 100644
--- a/src/main/java/org/sadtech/bot/bitbucketbot/dto/bitbucket/UserPullRequestStatus.java
+++ b/bitbucket-sdk/src/main/java/org/sadtech/bot/vcs/bitbucket/sdk/domain/UserPullRequestStatus.java
@@ -1,4 +1,4 @@
-package org.sadtech.bot.bitbucketbot.dto.bitbucket;
+package org.sadtech.bot.vcs.bitbucket.sdk.domain;
/**
* TODO: Добавить комментарий енума.
diff --git a/bitbucket-sdk/src/main/java/org/sadtech/bot/vcs/bitbucket/sdk/domain/sheet/PullRequestSheetJson.java b/bitbucket-sdk/src/main/java/org/sadtech/bot/vcs/bitbucket/sdk/domain/sheet/PullRequestSheetJson.java
new file mode 100644
index 0000000..4986669
--- /dev/null
+++ b/bitbucket-sdk/src/main/java/org/sadtech/bot/vcs/bitbucket/sdk/domain/sheet/PullRequestSheetJson.java
@@ -0,0 +1,13 @@
+package org.sadtech.bot.vcs.bitbucket.sdk.domain.sheet;
+
+import org.sadtech.bot.vcs.bitbucket.sdk.domain.PullRequestJson;
+import org.sadtech.bot.vcs.bitbucket.sdk.domain.Sheet;
+
+/**
+ * TODO: Добавить описание класса.
+ *
+ * @author upagge [02.02.2020]
+ */
+public class PullRequestSheetJson extends Sheet {
+
+}
diff --git a/bitbucket-sdk/src/main/java/org/sadtech/bot/vcs/bitbucket/sdk/domain/sheet/UserSheetJson.java b/bitbucket-sdk/src/main/java/org/sadtech/bot/vcs/bitbucket/sdk/domain/sheet/UserSheetJson.java
new file mode 100644
index 0000000..701c217
--- /dev/null
+++ b/bitbucket-sdk/src/main/java/org/sadtech/bot/vcs/bitbucket/sdk/domain/sheet/UserSheetJson.java
@@ -0,0 +1,13 @@
+package org.sadtech.bot.vcs.bitbucket.sdk.domain.sheet;
+
+import org.sadtech.bot.vcs.bitbucket.sdk.domain.Sheet;
+import org.sadtech.bot.vcs.bitbucket.sdk.domain.UserJson;
+
+/**
+ * TODO: Добавить описание класса.
+ *
+ * @author upagge [02.02.2020]
+ */
+public class UserSheetJson extends Sheet {
+
+}
diff --git a/src/main/java/org/sadtech/bot/bitbucketbot/utils/LocalDateTimeFromEpochDeserializer.java b/bitbucket-sdk/src/main/java/org/sadtech/bot/vcs/bitbucket/sdk/utils/LocalDateTimeFromEpochDeserializer.java
similarity index 85%
rename from src/main/java/org/sadtech/bot/bitbucketbot/utils/LocalDateTimeFromEpochDeserializer.java
rename to bitbucket-sdk/src/main/java/org/sadtech/bot/vcs/bitbucket/sdk/utils/LocalDateTimeFromEpochDeserializer.java
index baea4d0..4411238 100644
--- a/src/main/java/org/sadtech/bot/bitbucketbot/utils/LocalDateTimeFromEpochDeserializer.java
+++ b/bitbucket-sdk/src/main/java/org/sadtech/bot/vcs/bitbucket/sdk/utils/LocalDateTimeFromEpochDeserializer.java
@@ -1,16 +1,14 @@
-package org.sadtech.bot.bitbucketbot.utils;
+package org.sadtech.bot.vcs.bitbucket.sdk.utils;
import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.databind.DeserializationContext;
import com.fasterxml.jackson.databind.JsonDeserializer;
-import lombok.extern.slf4j.Slf4j;
import java.io.IOException;
import java.time.Instant;
import java.time.LocalDateTime;
import java.time.ZoneId;
-@Slf4j
public class LocalDateTimeFromEpochDeserializer extends JsonDeserializer {
@Override
@@ -20,7 +18,7 @@ public class LocalDateTimeFromEpochDeserializer extends JsonDeserializer
+
+
+ bitbucketbot
+ org.sadtech.bot.bitbucketbot
+ 2.1.0-SNAPSHOT
+
+ 4.0.0
+
+ bot-core
+ 2.1.0-SNAPSHOT
+ jar
+
+
+
+ org.sadtech.basic.filter
+ criteria-filter
+
+
+
+ org.sadtech.basic
+ project-database
+
+
+
+ org.hibernate.orm
+ hibernate-jpamodelgen
+
+
+
+ org.springframework.boot
+ spring-boot-configuration-processor
+
+
+
+ com.google.guava
+ guava
+
+
+
+ org.springframework.boot
+ spring-boot-starter
+
+
+
+ org.springframework.boot
+ spring-boot-devtools
+ runtime
+ true
+
+
+
+ org.springframework.boot
+ spring-boot-starter-data-jpa
+
+
+
+ org.postgresql
+ postgresql
+
+
+
+ org.projectlombok
+ lombok
+ true
+
+
+
+ com.squareup.okhttp3
+ okhttp
+
+
+
+ com.fasterxml.jackson.core
+ jackson-databind
+
+
+
+
+
\ No newline at end of file
diff --git a/src/main/java/org/sadtech/bot/bitbucketbot/config/properties/BitbucketProperty.java b/bot-core/src/main/java/org/sadtech/bot/vcs/core/config/properties/BitbucketProperty.java
similarity index 95%
rename from src/main/java/org/sadtech/bot/bitbucketbot/config/properties/BitbucketProperty.java
rename to bot-core/src/main/java/org/sadtech/bot/vcs/core/config/properties/BitbucketProperty.java
index fd3f9a6..a6df97c 100644
--- a/src/main/java/org/sadtech/bot/bitbucketbot/config/properties/BitbucketProperty.java
+++ b/bot-core/src/main/java/org/sadtech/bot/vcs/core/config/properties/BitbucketProperty.java
@@ -1,4 +1,4 @@
-package org.sadtech.bot.bitbucketbot.config.properties;
+package org.sadtech.bot.vcs.core.config.properties;
import lombok.Getter;
import lombok.Setter;
diff --git a/src/main/java/org/sadtech/bot/bitbucketbot/config/properties/CommentSchedulerProperty.java b/bot-core/src/main/java/org/sadtech/bot/vcs/core/config/properties/CommentSchedulerProperty.java
similarity index 86%
rename from src/main/java/org/sadtech/bot/bitbucketbot/config/properties/CommentSchedulerProperty.java
rename to bot-core/src/main/java/org/sadtech/bot/vcs/core/config/properties/CommentSchedulerProperty.java
index d9af006..63b107d 100644
--- a/src/main/java/org/sadtech/bot/bitbucketbot/config/properties/CommentSchedulerProperty.java
+++ b/bot-core/src/main/java/org/sadtech/bot/vcs/core/config/properties/CommentSchedulerProperty.java
@@ -1,8 +1,8 @@
-package org.sadtech.bot.bitbucketbot.config.properties;
+package org.sadtech.bot.vcs.core.config.properties;
import lombok.Getter;
import lombok.Setter;
-import org.sadtech.bot.bitbucketbot.scheduler.SchedulerComments;
+import org.sadtech.bot.vcs.core.scheduler.SchedulerComments;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
diff --git a/src/main/java/org/sadtech/bot/bitbucketbot/config/InitProperty.java b/bot-core/src/main/java/org/sadtech/bot/vcs/core/config/properties/InitProperty.java
similarity index 87%
rename from src/main/java/org/sadtech/bot/bitbucketbot/config/InitProperty.java
rename to bot-core/src/main/java/org/sadtech/bot/vcs/core/config/properties/InitProperty.java
index 76f3116..bbc8314 100644
--- a/src/main/java/org/sadtech/bot/bitbucketbot/config/InitProperty.java
+++ b/bot-core/src/main/java/org/sadtech/bot/vcs/core/config/properties/InitProperty.java
@@ -1,4 +1,4 @@
-package org.sadtech.bot.bitbucketbot.config;
+package org.sadtech.bot.vcs.core.config.properties;
import lombok.Getter;
import lombok.Setter;
diff --git a/src/main/java/org/sadtech/bot/bitbucketbot/domain/Answer.java b/bot-core/src/main/java/org/sadtech/bot/vcs/core/domain/Answer.java
similarity index 89%
rename from src/main/java/org/sadtech/bot/bitbucketbot/domain/Answer.java
rename to bot-core/src/main/java/org/sadtech/bot/vcs/core/domain/Answer.java
index 45b98bd..eb3f27b 100644
--- a/src/main/java/org/sadtech/bot/bitbucketbot/domain/Answer.java
+++ b/bot-core/src/main/java/org/sadtech/bot/vcs/core/domain/Answer.java
@@ -1,4 +1,4 @@
-package org.sadtech.bot.bitbucketbot.domain;
+package org.sadtech.bot.vcs.core.domain;
import lombok.AccessLevel;
import lombok.Getter;
diff --git a/src/main/java/org/sadtech/bot/bitbucketbot/domain/AuthType.java b/bot-core/src/main/java/org/sadtech/bot/vcs/core/domain/AuthType.java
similarity index 79%
rename from src/main/java/org/sadtech/bot/bitbucketbot/domain/AuthType.java
rename to bot-core/src/main/java/org/sadtech/bot/vcs/core/domain/AuthType.java
index 387b4ad..bcb7387 100644
--- a/src/main/java/org/sadtech/bot/bitbucketbot/domain/AuthType.java
+++ b/bot-core/src/main/java/org/sadtech/bot/vcs/core/domain/AuthType.java
@@ -1,4 +1,4 @@
-package org.sadtech.bot.bitbucketbot.domain;
+package org.sadtech.bot.vcs.core.domain;
/**
* TODO: Добавить комментарий енума.
diff --git a/src/main/java/org/sadtech/bot/bitbucketbot/domain/IdAndStatusPr.java b/bot-core/src/main/java/org/sadtech/bot/vcs/core/domain/IdAndStatusPr.java
similarity index 82%
rename from src/main/java/org/sadtech/bot/bitbucketbot/domain/IdAndStatusPr.java
rename to bot-core/src/main/java/org/sadtech/bot/vcs/core/domain/IdAndStatusPr.java
index 0c3e367..27a6888 100644
--- a/src/main/java/org/sadtech/bot/bitbucketbot/domain/IdAndStatusPr.java
+++ b/bot-core/src/main/java/org/sadtech/bot/vcs/core/domain/IdAndStatusPr.java
@@ -1,4 +1,4 @@
-package org.sadtech.bot.bitbucketbot.domain;
+package org.sadtech.bot.vcs.core.domain;
import lombok.AllArgsConstructor;
import lombok.Getter;
diff --git a/src/main/java/org/sadtech/bot/bitbucketbot/domain/MessageSend.java b/bot-core/src/main/java/org/sadtech/bot/vcs/core/domain/MessageSend.java
similarity index 90%
rename from src/main/java/org/sadtech/bot/bitbucketbot/domain/MessageSend.java
rename to bot-core/src/main/java/org/sadtech/bot/vcs/core/domain/MessageSend.java
index 73e7a93..81a5461 100644
--- a/src/main/java/org/sadtech/bot/bitbucketbot/domain/MessageSend.java
+++ b/bot-core/src/main/java/org/sadtech/bot/vcs/core/domain/MessageSend.java
@@ -1,4 +1,4 @@
-package org.sadtech.bot.bitbucketbot.domain;
+package org.sadtech.bot.vcs.core.domain;
import lombok.AllArgsConstructor;
import lombok.Builder;
diff --git a/src/main/java/org/sadtech/bot/bitbucketbot/domain/PullRequestStatus.java b/bot-core/src/main/java/org/sadtech/bot/vcs/core/domain/PullRequestStatus.java
similarity index 71%
rename from src/main/java/org/sadtech/bot/bitbucketbot/domain/PullRequestStatus.java
rename to bot-core/src/main/java/org/sadtech/bot/vcs/core/domain/PullRequestStatus.java
index c7f83bd..002789c 100644
--- a/src/main/java/org/sadtech/bot/bitbucketbot/domain/PullRequestStatus.java
+++ b/bot-core/src/main/java/org/sadtech/bot/vcs/core/domain/PullRequestStatus.java
@@ -1,4 +1,4 @@
-package org.sadtech.bot.bitbucketbot.domain;
+package org.sadtech.bot.vcs.core.domain;
/**
* @author upagge [31.01.2020]
diff --git a/src/main/java/org/sadtech/bot/bitbucketbot/domain/ReviewerStatus.java b/bot-core/src/main/java/org/sadtech/bot/vcs/core/domain/ReviewerStatus.java
similarity index 88%
rename from src/main/java/org/sadtech/bot/bitbucketbot/domain/ReviewerStatus.java
rename to bot-core/src/main/java/org/sadtech/bot/vcs/core/domain/ReviewerStatus.java
index d5593e5..cb96db2 100644
--- a/src/main/java/org/sadtech/bot/bitbucketbot/domain/ReviewerStatus.java
+++ b/bot-core/src/main/java/org/sadtech/bot/vcs/core/domain/ReviewerStatus.java
@@ -1,4 +1,4 @@
-package org.sadtech.bot.bitbucketbot.domain;
+package org.sadtech.bot.vcs.core.domain;
import lombok.Getter;
diff --git a/src/main/java/org/sadtech/bot/bitbucketbot/domain/TaskStatus.java b/bot-core/src/main/java/org/sadtech/bot/vcs/core/domain/TaskStatus.java
similarity index 54%
rename from src/main/java/org/sadtech/bot/bitbucketbot/domain/TaskStatus.java
rename to bot-core/src/main/java/org/sadtech/bot/vcs/core/domain/TaskStatus.java
index e107385..0917a09 100644
--- a/src/main/java/org/sadtech/bot/bitbucketbot/domain/TaskStatus.java
+++ b/bot-core/src/main/java/org/sadtech/bot/vcs/core/domain/TaskStatus.java
@@ -1,4 +1,4 @@
-package org.sadtech.bot.bitbucketbot.domain;
+package org.sadtech.bot.vcs.core.domain;
public enum TaskStatus {
diff --git a/src/main/java/org/sadtech/bot/bitbucketbot/domain/UserAuth.java b/bot-core/src/main/java/org/sadtech/bot/vcs/core/domain/UserAuth.java
similarity index 80%
rename from src/main/java/org/sadtech/bot/bitbucketbot/domain/UserAuth.java
rename to bot-core/src/main/java/org/sadtech/bot/vcs/core/domain/UserAuth.java
index b2ade9c..bd70465 100644
--- a/src/main/java/org/sadtech/bot/bitbucketbot/domain/UserAuth.java
+++ b/bot-core/src/main/java/org/sadtech/bot/vcs/core/domain/UserAuth.java
@@ -1,4 +1,4 @@
-package org.sadtech.bot.bitbucketbot.domain;
+package org.sadtech.bot.vcs.core.domain;
/**
* TODO: Добавить описание класса.
diff --git a/src/main/java/org/sadtech/bot/bitbucketbot/domain/change/Change.java b/bot-core/src/main/java/org/sadtech/bot/vcs/core/domain/change/Change.java
similarity index 92%
rename from src/main/java/org/sadtech/bot/bitbucketbot/domain/change/Change.java
rename to bot-core/src/main/java/org/sadtech/bot/vcs/core/domain/change/Change.java
index edc686b..bafbaa0 100644
--- a/src/main/java/org/sadtech/bot/bitbucketbot/domain/change/Change.java
+++ b/bot-core/src/main/java/org/sadtech/bot/vcs/core/domain/change/Change.java
@@ -1,4 +1,4 @@
-package org.sadtech.bot.bitbucketbot.domain.change;
+package org.sadtech.bot.vcs.core.domain.change;
import lombok.EqualsAndHashCode;
import lombok.Getter;
diff --git a/src/main/java/org/sadtech/bot/bitbucketbot/domain/change/ChangeType.java b/bot-core/src/main/java/org/sadtech/bot/vcs/core/domain/change/ChangeType.java
similarity index 80%
rename from src/main/java/org/sadtech/bot/bitbucketbot/domain/change/ChangeType.java
rename to bot-core/src/main/java/org/sadtech/bot/vcs/core/domain/change/ChangeType.java
index 498e76d..1c34b87 100644
--- a/src/main/java/org/sadtech/bot/bitbucketbot/domain/change/ChangeType.java
+++ b/bot-core/src/main/java/org/sadtech/bot/vcs/core/domain/change/ChangeType.java
@@ -1,4 +1,4 @@
-package org.sadtech.bot.bitbucketbot.domain.change;
+package org.sadtech.bot.vcs.core.domain.change;
public enum ChangeType {
diff --git a/src/main/java/org/sadtech/bot/bitbucketbot/domain/change/comment/AnswerCommentChange.java b/bot-core/src/main/java/org/sadtech/bot/vcs/core/domain/change/comment/AnswerCommentChange.java
similarity index 83%
rename from src/main/java/org/sadtech/bot/bitbucketbot/domain/change/comment/AnswerCommentChange.java
rename to bot-core/src/main/java/org/sadtech/bot/vcs/core/domain/change/comment/AnswerCommentChange.java
index 3faa7b4..b093360 100644
--- a/src/main/java/org/sadtech/bot/bitbucketbot/domain/change/comment/AnswerCommentChange.java
+++ b/bot-core/src/main/java/org/sadtech/bot/vcs/core/domain/change/comment/AnswerCommentChange.java
@@ -1,12 +1,12 @@
-package org.sadtech.bot.bitbucketbot.domain.change.comment;
+package org.sadtech.bot.vcs.core.domain.change.comment;
import lombok.Builder;
import lombok.EqualsAndHashCode;
import lombok.Getter;
-import org.sadtech.bot.bitbucketbot.domain.Answer;
-import org.sadtech.bot.bitbucketbot.domain.change.Change;
-import org.sadtech.bot.bitbucketbot.domain.change.ChangeType;
-import org.sadtech.bot.bitbucketbot.utils.Smile;
+import org.sadtech.bot.vcs.core.domain.Answer;
+import org.sadtech.bot.vcs.core.domain.change.Change;
+import org.sadtech.bot.vcs.core.domain.change.ChangeType;
+import org.sadtech.bot.vcs.core.utils.Smile;
import java.text.MessageFormat;
import java.util.List;
diff --git a/src/main/java/org/sadtech/bot/bitbucketbot/domain/change/comment/CommentChange.java b/bot-core/src/main/java/org/sadtech/bot/vcs/core/domain/change/comment/CommentChange.java
similarity index 80%
rename from src/main/java/org/sadtech/bot/bitbucketbot/domain/change/comment/CommentChange.java
rename to bot-core/src/main/java/org/sadtech/bot/vcs/core/domain/change/comment/CommentChange.java
index 94b8707..ae88df4 100644
--- a/src/main/java/org/sadtech/bot/bitbucketbot/domain/change/comment/CommentChange.java
+++ b/bot-core/src/main/java/org/sadtech/bot/vcs/core/domain/change/comment/CommentChange.java
@@ -1,11 +1,11 @@
-package org.sadtech.bot.bitbucketbot.domain.change.comment;
+package org.sadtech.bot.vcs.core.domain.change.comment;
import lombok.Builder;
import lombok.EqualsAndHashCode;
import lombok.Getter;
-import org.sadtech.bot.bitbucketbot.domain.change.Change;
-import org.sadtech.bot.bitbucketbot.domain.change.ChangeType;
-import org.sadtech.bot.bitbucketbot.utils.Smile;
+import org.sadtech.bot.vcs.core.domain.change.Change;
+import org.sadtech.bot.vcs.core.domain.change.ChangeType;
+import org.sadtech.bot.vcs.core.utils.Smile;
import java.text.MessageFormat;
import java.util.Set;
diff --git a/src/main/java/org/sadtech/bot/bitbucketbot/domain/change/pullrequest/ConflictPrChange.java b/bot-core/src/main/java/org/sadtech/bot/vcs/core/domain/change/pullrequest/ConflictPrChange.java
similarity index 79%
rename from src/main/java/org/sadtech/bot/bitbucketbot/domain/change/pullrequest/ConflictPrChange.java
rename to bot-core/src/main/java/org/sadtech/bot/vcs/core/domain/change/pullrequest/ConflictPrChange.java
index a662df1..4caa4db 100644
--- a/src/main/java/org/sadtech/bot/bitbucketbot/domain/change/pullrequest/ConflictPrChange.java
+++ b/bot-core/src/main/java/org/sadtech/bot/vcs/core/domain/change/pullrequest/ConflictPrChange.java
@@ -1,9 +1,9 @@
-package org.sadtech.bot.bitbucketbot.domain.change.pullrequest;
+package org.sadtech.bot.vcs.core.domain.change.pullrequest;
import lombok.Builder;
import lombok.Getter;
-import org.sadtech.bot.bitbucketbot.domain.change.ChangeType;
-import org.sadtech.bot.bitbucketbot.utils.Smile;
+import org.sadtech.bot.vcs.core.domain.change.ChangeType;
+import org.sadtech.bot.vcs.core.utils.Smile;
import java.text.MessageFormat;
import java.util.Set;
diff --git a/src/main/java/org/sadtech/bot/bitbucketbot/domain/change/pullrequest/NewPrChange.java b/bot-core/src/main/java/org/sadtech/bot/vcs/core/domain/change/pullrequest/NewPrChange.java
similarity index 86%
rename from src/main/java/org/sadtech/bot/bitbucketbot/domain/change/pullrequest/NewPrChange.java
rename to bot-core/src/main/java/org/sadtech/bot/vcs/core/domain/change/pullrequest/NewPrChange.java
index f12bfc7..9133201 100644
--- a/src/main/java/org/sadtech/bot/bitbucketbot/domain/change/pullrequest/NewPrChange.java
+++ b/bot-core/src/main/java/org/sadtech/bot/vcs/core/domain/change/pullrequest/NewPrChange.java
@@ -1,10 +1,10 @@
-package org.sadtech.bot.bitbucketbot.domain.change.pullrequest;
+package org.sadtech.bot.vcs.core.domain.change.pullrequest;
import lombok.Builder;
import lombok.EqualsAndHashCode;
import lombok.Getter;
-import org.sadtech.bot.bitbucketbot.domain.change.ChangeType;
-import org.sadtech.bot.bitbucketbot.utils.Smile;
+import org.sadtech.bot.vcs.core.domain.change.ChangeType;
+import org.sadtech.bot.vcs.core.utils.Smile;
import java.text.MessageFormat;
import java.util.Set;
diff --git a/src/main/java/org/sadtech/bot/bitbucketbot/domain/change/pullrequest/PrChange.java b/bot-core/src/main/java/org/sadtech/bot/vcs/core/domain/change/pullrequest/PrChange.java
similarity index 69%
rename from src/main/java/org/sadtech/bot/bitbucketbot/domain/change/pullrequest/PrChange.java
rename to bot-core/src/main/java/org/sadtech/bot/vcs/core/domain/change/pullrequest/PrChange.java
index ccb8c2e..bb7369e 100644
--- a/src/main/java/org/sadtech/bot/bitbucketbot/domain/change/pullrequest/PrChange.java
+++ b/bot-core/src/main/java/org/sadtech/bot/vcs/core/domain/change/pullrequest/PrChange.java
@@ -1,9 +1,9 @@
-package org.sadtech.bot.bitbucketbot.domain.change.pullrequest;
+package org.sadtech.bot.vcs.core.domain.change.pullrequest;
import lombok.EqualsAndHashCode;
import lombok.Getter;
-import org.sadtech.bot.bitbucketbot.domain.change.Change;
-import org.sadtech.bot.bitbucketbot.domain.change.ChangeType;
+import org.sadtech.bot.vcs.core.domain.change.Change;
+import org.sadtech.bot.vcs.core.domain.change.ChangeType;
import java.util.Set;
diff --git a/src/main/java/org/sadtech/bot/bitbucketbot/domain/change/pullrequest/ReviewersPrChange.java b/bot-core/src/main/java/org/sadtech/bot/vcs/core/domain/change/pullrequest/ReviewersPrChange.java
similarity index 83%
rename from src/main/java/org/sadtech/bot/bitbucketbot/domain/change/pullrequest/ReviewersPrChange.java
rename to bot-core/src/main/java/org/sadtech/bot/vcs/core/domain/change/pullrequest/ReviewersPrChange.java
index f6d858b..f224494 100644
--- a/src/main/java/org/sadtech/bot/bitbucketbot/domain/change/pullrequest/ReviewersPrChange.java
+++ b/bot-core/src/main/java/org/sadtech/bot/vcs/core/domain/change/pullrequest/ReviewersPrChange.java
@@ -1,20 +1,20 @@
-package org.sadtech.bot.bitbucketbot.domain.change.pullrequest;
+package org.sadtech.bot.vcs.core.domain.change.pullrequest;
import lombok.Builder;
import lombok.EqualsAndHashCode;
import lombok.Getter;
-import org.sadtech.bot.bitbucketbot.domain.change.ChangeType;
-import org.sadtech.bot.bitbucketbot.domain.util.ReviewerChange;
-import org.sadtech.bot.bitbucketbot.utils.Smile;
+import org.sadtech.bot.vcs.core.domain.change.ChangeType;
+import org.sadtech.bot.vcs.core.domain.util.ReviewerChange;
+import org.sadtech.bot.vcs.core.utils.Smile;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.stream.Collectors;
-import static org.sadtech.bot.bitbucketbot.domain.util.ReviewerChange.Type.DELETED;
-import static org.sadtech.bot.bitbucketbot.domain.util.ReviewerChange.Type.NEW;
-import static org.sadtech.bot.bitbucketbot.domain.util.ReviewerChange.Type.OLD;
+import static org.sadtech.bot.vcs.core.domain.util.ReviewerChange.Type.DELETED;
+import static org.sadtech.bot.vcs.core.domain.util.ReviewerChange.Type.NEW;
+import static org.sadtech.bot.vcs.core.domain.util.ReviewerChange.Type.OLD;
@Getter
@EqualsAndHashCode(callSuper = true)
diff --git a/src/main/java/org/sadtech/bot/bitbucketbot/domain/change/pullrequest/StatusPrChange.java b/bot-core/src/main/java/org/sadtech/bot/vcs/core/domain/change/pullrequest/StatusPrChange.java
similarity index 81%
rename from src/main/java/org/sadtech/bot/bitbucketbot/domain/change/pullrequest/StatusPrChange.java
rename to bot-core/src/main/java/org/sadtech/bot/vcs/core/domain/change/pullrequest/StatusPrChange.java
index d647666..5ee5572 100644
--- a/src/main/java/org/sadtech/bot/bitbucketbot/domain/change/pullrequest/StatusPrChange.java
+++ b/bot-core/src/main/java/org/sadtech/bot/vcs/core/domain/change/pullrequest/StatusPrChange.java
@@ -1,11 +1,11 @@
-package org.sadtech.bot.bitbucketbot.domain.change.pullrequest;
+package org.sadtech.bot.vcs.core.domain.change.pullrequest;
import lombok.Builder;
import lombok.EqualsAndHashCode;
import lombok.Getter;
-import org.sadtech.bot.bitbucketbot.domain.PullRequestStatus;
-import org.sadtech.bot.bitbucketbot.domain.change.ChangeType;
-import org.sadtech.bot.bitbucketbot.utils.Smile;
+import org.sadtech.bot.vcs.core.domain.PullRequestStatus;
+import org.sadtech.bot.vcs.core.domain.change.ChangeType;
+import org.sadtech.bot.vcs.core.utils.Smile;
import java.text.MessageFormat;
import java.util.Set;
diff --git a/src/main/java/org/sadtech/bot/bitbucketbot/domain/change/pullrequest/UpdatePrChange.java b/bot-core/src/main/java/org/sadtech/bot/vcs/core/domain/change/pullrequest/UpdatePrChange.java
similarity index 83%
rename from src/main/java/org/sadtech/bot/bitbucketbot/domain/change/pullrequest/UpdatePrChange.java
rename to bot-core/src/main/java/org/sadtech/bot/vcs/core/domain/change/pullrequest/UpdatePrChange.java
index cb485f3..1666c44 100644
--- a/src/main/java/org/sadtech/bot/bitbucketbot/domain/change/pullrequest/UpdatePrChange.java
+++ b/bot-core/src/main/java/org/sadtech/bot/vcs/core/domain/change/pullrequest/UpdatePrChange.java
@@ -1,10 +1,10 @@
-package org.sadtech.bot.bitbucketbot.domain.change.pullrequest;
+package org.sadtech.bot.vcs.core.domain.change.pullrequest;
import lombok.Builder;
import lombok.EqualsAndHashCode;
import lombok.Getter;
-import org.sadtech.bot.bitbucketbot.domain.change.ChangeType;
-import org.sadtech.bot.bitbucketbot.utils.Smile;
+import org.sadtech.bot.vcs.core.domain.change.ChangeType;
+import org.sadtech.bot.vcs.core.utils.Smile;
import java.text.MessageFormat;
import java.util.Set;
diff --git a/src/main/java/org/sadtech/bot/bitbucketbot/domain/change/task/TaskChange.java b/bot-core/src/main/java/org/sadtech/bot/vcs/core/domain/change/task/TaskChange.java
similarity index 77%
rename from src/main/java/org/sadtech/bot/bitbucketbot/domain/change/task/TaskChange.java
rename to bot-core/src/main/java/org/sadtech/bot/vcs/core/domain/change/task/TaskChange.java
index 8e0092b..62b5c10 100644
--- a/src/main/java/org/sadtech/bot/bitbucketbot/domain/change/task/TaskChange.java
+++ b/bot-core/src/main/java/org/sadtech/bot/vcs/core/domain/change/task/TaskChange.java
@@ -1,9 +1,9 @@
-package org.sadtech.bot.bitbucketbot.domain.change.task;
+package org.sadtech.bot.vcs.core.domain.change.task;
import lombok.EqualsAndHashCode;
import lombok.Getter;
-import org.sadtech.bot.bitbucketbot.domain.change.Change;
-import org.sadtech.bot.bitbucketbot.domain.change.ChangeType;
+import org.sadtech.bot.vcs.core.domain.change.Change;
+import org.sadtech.bot.vcs.core.domain.change.ChangeType;
import java.util.Set;
diff --git a/src/main/java/org/sadtech/bot/bitbucketbot/domain/change/task/TaskCloseChange.java b/bot-core/src/main/java/org/sadtech/bot/vcs/core/domain/change/task/TaskCloseChange.java
similarity index 82%
rename from src/main/java/org/sadtech/bot/bitbucketbot/domain/change/task/TaskCloseChange.java
rename to bot-core/src/main/java/org/sadtech/bot/vcs/core/domain/change/task/TaskCloseChange.java
index 33732a7..6f21cf4 100644
--- a/src/main/java/org/sadtech/bot/bitbucketbot/domain/change/task/TaskCloseChange.java
+++ b/bot-core/src/main/java/org/sadtech/bot/vcs/core/domain/change/task/TaskCloseChange.java
@@ -1,8 +1,8 @@
-package org.sadtech.bot.bitbucketbot.domain.change.task;
+package org.sadtech.bot.vcs.core.domain.change.task;
import lombok.Builder;
-import org.sadtech.bot.bitbucketbot.domain.change.ChangeType;
-import org.sadtech.bot.bitbucketbot.utils.Smile;
+import org.sadtech.bot.vcs.core.domain.change.ChangeType;
+import org.sadtech.bot.vcs.core.utils.Smile;
import java.text.MessageFormat;
import java.util.Set;
diff --git a/src/main/java/org/sadtech/bot/bitbucketbot/domain/change/task/TaskNewChange.java b/bot-core/src/main/java/org/sadtech/bot/vcs/core/domain/change/task/TaskNewChange.java
similarity index 82%
rename from src/main/java/org/sadtech/bot/bitbucketbot/domain/change/task/TaskNewChange.java
rename to bot-core/src/main/java/org/sadtech/bot/vcs/core/domain/change/task/TaskNewChange.java
index 1816696..6dcb53d 100644
--- a/src/main/java/org/sadtech/bot/bitbucketbot/domain/change/task/TaskNewChange.java
+++ b/bot-core/src/main/java/org/sadtech/bot/vcs/core/domain/change/task/TaskNewChange.java
@@ -1,9 +1,9 @@
-package org.sadtech.bot.bitbucketbot.domain.change.task;
+package org.sadtech.bot.vcs.core.domain.change.task;
import lombok.Builder;
import lombok.Getter;
-import org.sadtech.bot.bitbucketbot.domain.change.ChangeType;
-import org.sadtech.bot.bitbucketbot.utils.Smile;
+import org.sadtech.bot.vcs.core.domain.change.ChangeType;
+import org.sadtech.bot.vcs.core.utils.Smile;
import java.text.MessageFormat;
import java.util.Set;
diff --git a/src/main/java/org/sadtech/bot/bitbucketbot/domain/entity/Comment.java b/bot-core/src/main/java/org/sadtech/bot/vcs/core/domain/entity/Comment.java
similarity index 96%
rename from src/main/java/org/sadtech/bot/bitbucketbot/domain/entity/Comment.java
rename to bot-core/src/main/java/org/sadtech/bot/vcs/core/domain/entity/Comment.java
index 1c0b60f..ccc2bb6 100644
--- a/src/main/java/org/sadtech/bot/bitbucketbot/domain/entity/Comment.java
+++ b/bot-core/src/main/java/org/sadtech/bot/vcs/core/domain/entity/Comment.java
@@ -1,4 +1,4 @@
-package org.sadtech.bot.bitbucketbot.domain.entity;
+package org.sadtech.bot.vcs.core.domain.entity;
import lombok.EqualsAndHashCode;
import lombok.Getter;
diff --git a/src/main/java/org/sadtech/bot/bitbucketbot/domain/entity/Person.java b/bot-core/src/main/java/org/sadtech/bot/vcs/core/domain/entity/Person.java
similarity index 94%
rename from src/main/java/org/sadtech/bot/bitbucketbot/domain/entity/Person.java
rename to bot-core/src/main/java/org/sadtech/bot/vcs/core/domain/entity/Person.java
index 7c0069f..664fcb4 100644
--- a/src/main/java/org/sadtech/bot/bitbucketbot/domain/entity/Person.java
+++ b/bot-core/src/main/java/org/sadtech/bot/vcs/core/domain/entity/Person.java
@@ -1,4 +1,4 @@
-package org.sadtech.bot.bitbucketbot.domain.entity;
+package org.sadtech.bot.vcs.core.domain.entity;
import lombok.EqualsAndHashCode;
import lombok.Getter;
diff --git a/src/main/java/org/sadtech/bot/bitbucketbot/domain/entity/PullRequest.java b/bot-core/src/main/java/org/sadtech/bot/vcs/core/domain/entity/PullRequest.java
similarity index 96%
rename from src/main/java/org/sadtech/bot/bitbucketbot/domain/entity/PullRequest.java
rename to bot-core/src/main/java/org/sadtech/bot/vcs/core/domain/entity/PullRequest.java
index a67b551..70628cd 100644
--- a/src/main/java/org/sadtech/bot/bitbucketbot/domain/entity/PullRequest.java
+++ b/bot-core/src/main/java/org/sadtech/bot/vcs/core/domain/entity/PullRequest.java
@@ -1,9 +1,9 @@
-package org.sadtech.bot.bitbucketbot.domain.entity;
+package org.sadtech.bot.vcs.core.domain.entity;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
-import org.sadtech.bot.bitbucketbot.domain.PullRequestStatus;
+import org.sadtech.bot.vcs.core.domain.PullRequestStatus;
import javax.persistence.CascadeType;
import javax.persistence.Column;
diff --git a/src/main/java/org/sadtech/bot/bitbucketbot/domain/entity/PullRequestMini.java b/bot-core/src/main/java/org/sadtech/bot/vcs/core/domain/entity/PullRequestMini.java
similarity index 94%
rename from src/main/java/org/sadtech/bot/bitbucketbot/domain/entity/PullRequestMini.java
rename to bot-core/src/main/java/org/sadtech/bot/vcs/core/domain/entity/PullRequestMini.java
index d7d0aef..ddbd016 100644
--- a/src/main/java/org/sadtech/bot/bitbucketbot/domain/entity/PullRequestMini.java
+++ b/bot-core/src/main/java/org/sadtech/bot/vcs/core/domain/entity/PullRequestMini.java
@@ -1,4 +1,4 @@
-package org.sadtech.bot.bitbucketbot.domain.entity;
+package org.sadtech.bot.vcs.core.domain.entity;
import lombok.EqualsAndHashCode;
import lombok.Getter;
diff --git a/src/main/java/org/sadtech/bot/bitbucketbot/domain/entity/Reviewer.java b/bot-core/src/main/java/org/sadtech/bot/vcs/core/domain/entity/Reviewer.java
similarity index 92%
rename from src/main/java/org/sadtech/bot/bitbucketbot/domain/entity/Reviewer.java
rename to bot-core/src/main/java/org/sadtech/bot/vcs/core/domain/entity/Reviewer.java
index 01d2ac3..5378527 100644
--- a/src/main/java/org/sadtech/bot/bitbucketbot/domain/entity/Reviewer.java
+++ b/bot-core/src/main/java/org/sadtech/bot/vcs/core/domain/entity/Reviewer.java
@@ -1,9 +1,9 @@
-package org.sadtech.bot.bitbucketbot.domain.entity;
+package org.sadtech.bot.vcs.core.domain.entity;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
-import org.sadtech.bot.bitbucketbot.domain.ReviewerStatus;
+import org.sadtech.bot.vcs.core.domain.ReviewerStatus;
import javax.persistence.CascadeType;
import javax.persistence.Column;
diff --git a/src/main/java/org/sadtech/bot/bitbucketbot/domain/entity/Task.java b/bot-core/src/main/java/org/sadtech/bot/vcs/core/domain/entity/Task.java
similarity index 94%
rename from src/main/java/org/sadtech/bot/bitbucketbot/domain/entity/Task.java
rename to bot-core/src/main/java/org/sadtech/bot/vcs/core/domain/entity/Task.java
index 0a502e2..b39df7c 100644
--- a/src/main/java/org/sadtech/bot/bitbucketbot/domain/entity/Task.java
+++ b/bot-core/src/main/java/org/sadtech/bot/vcs/core/domain/entity/Task.java
@@ -1,9 +1,9 @@
-package org.sadtech.bot.bitbucketbot.domain.entity;
+package org.sadtech.bot.vcs.core.domain.entity;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
-import org.sadtech.bot.bitbucketbot.domain.TaskStatus;
+import org.sadtech.bot.vcs.core.domain.TaskStatus;
import javax.persistence.CollectionTable;
import javax.persistence.Column;
diff --git a/src/main/java/org/sadtech/bot/bitbucketbot/domain/filter/PullRequestFilter.java b/bot-core/src/main/java/org/sadtech/bot/vcs/core/domain/filter/PullRequestFilter.java
similarity index 87%
rename from src/main/java/org/sadtech/bot/bitbucketbot/domain/filter/PullRequestFilter.java
rename to bot-core/src/main/java/org/sadtech/bot/vcs/core/domain/filter/PullRequestFilter.java
index 081e1e4..e7cd640 100644
--- a/src/main/java/org/sadtech/bot/bitbucketbot/domain/filter/PullRequestFilter.java
+++ b/bot-core/src/main/java/org/sadtech/bot/vcs/core/domain/filter/PullRequestFilter.java
@@ -1,4 +1,4 @@
-package org.sadtech.bot.bitbucketbot.domain.filter;
+package org.sadtech.bot.vcs.core.domain.filter;
import lombok.AccessLevel;
import lombok.AllArgsConstructor;
diff --git a/src/main/java/org/sadtech/bot/bitbucketbot/domain/util/ReviewerChange.java b/bot-core/src/main/java/org/sadtech/bot/vcs/core/domain/util/ReviewerChange.java
similarity index 92%
rename from src/main/java/org/sadtech/bot/bitbucketbot/domain/util/ReviewerChange.java
rename to bot-core/src/main/java/org/sadtech/bot/vcs/core/domain/util/ReviewerChange.java
index bb48e61..3fbba61 100644
--- a/src/main/java/org/sadtech/bot/bitbucketbot/domain/util/ReviewerChange.java
+++ b/bot-core/src/main/java/org/sadtech/bot/vcs/core/domain/util/ReviewerChange.java
@@ -1,8 +1,8 @@
-package org.sadtech.bot.bitbucketbot.domain.util;
+package org.sadtech.bot.vcs.core.domain.util;
import lombok.Getter;
import lombok.NonNull;
-import org.sadtech.bot.bitbucketbot.domain.ReviewerStatus;
+import org.sadtech.bot.vcs.core.domain.ReviewerStatus;
/**
* TODO: Добавить описание класса.
diff --git a/src/main/java/org/sadtech/bot/bitbucketbot/exception/BitbucketBotException.java b/bot-core/src/main/java/org/sadtech/bot/vcs/core/exception/BitbucketBotException.java
similarity index 84%
rename from src/main/java/org/sadtech/bot/bitbucketbot/exception/BitbucketBotException.java
rename to bot-core/src/main/java/org/sadtech/bot/vcs/core/exception/BitbucketBotException.java
index cf16000..3817a5f 100644
--- a/src/main/java/org/sadtech/bot/bitbucketbot/exception/BitbucketBotException.java
+++ b/bot-core/src/main/java/org/sadtech/bot/vcs/core/exception/BitbucketBotException.java
@@ -1,4 +1,4 @@
-package org.sadtech.bot.bitbucketbot.exception;
+package org.sadtech.bot.vcs.core.exception;
abstract class BitbucketBotException extends RuntimeException {
diff --git a/src/main/java/org/sadtech/bot/bitbucketbot/exception/CreateException.java b/bot-core/src/main/java/org/sadtech/bot/vcs/core/exception/CreateException.java
similarity index 74%
rename from src/main/java/org/sadtech/bot/bitbucketbot/exception/CreateException.java
rename to bot-core/src/main/java/org/sadtech/bot/vcs/core/exception/CreateException.java
index 80479d9..ecf0573 100644
--- a/src/main/java/org/sadtech/bot/bitbucketbot/exception/CreateException.java
+++ b/bot-core/src/main/java/org/sadtech/bot/vcs/core/exception/CreateException.java
@@ -1,4 +1,4 @@
-package org.sadtech.bot.bitbucketbot.exception;
+package org.sadtech.bot.vcs.core.exception;
public class CreateException extends BitbucketBotException {
diff --git a/src/main/java/org/sadtech/bot/bitbucketbot/exception/NotFoundException.java b/bot-core/src/main/java/org/sadtech/bot/vcs/core/exception/NotFoundException.java
similarity index 75%
rename from src/main/java/org/sadtech/bot/bitbucketbot/exception/NotFoundException.java
rename to bot-core/src/main/java/org/sadtech/bot/vcs/core/exception/NotFoundException.java
index 3a9410c..78132b8 100644
--- a/src/main/java/org/sadtech/bot/bitbucketbot/exception/NotFoundException.java
+++ b/bot-core/src/main/java/org/sadtech/bot/vcs/core/exception/NotFoundException.java
@@ -1,4 +1,4 @@
-package org.sadtech.bot.bitbucketbot.exception;
+package org.sadtech.bot.vcs.core.exception;
public class NotFoundException extends BitbucketBotException {
diff --git a/src/main/java/org/sadtech/bot/bitbucketbot/exception/RegException.java b/bot-core/src/main/java/org/sadtech/bot/vcs/core/exception/RegException.java
similarity index 73%
rename from src/main/java/org/sadtech/bot/bitbucketbot/exception/RegException.java
rename to bot-core/src/main/java/org/sadtech/bot/vcs/core/exception/RegException.java
index 13c2e97..233e449 100644
--- a/src/main/java/org/sadtech/bot/bitbucketbot/exception/RegException.java
+++ b/bot-core/src/main/java/org/sadtech/bot/vcs/core/exception/RegException.java
@@ -1,4 +1,4 @@
-package org.sadtech.bot.bitbucketbot.exception;
+package org.sadtech.bot.vcs.core.exception;
public class RegException extends BitbucketBotException {
diff --git a/src/main/java/org/sadtech/bot/bitbucketbot/exception/UpdateException.java b/bot-core/src/main/java/org/sadtech/bot/vcs/core/exception/UpdateException.java
similarity index 74%
rename from src/main/java/org/sadtech/bot/bitbucketbot/exception/UpdateException.java
rename to bot-core/src/main/java/org/sadtech/bot/vcs/core/exception/UpdateException.java
index 802e45c..92f4037 100644
--- a/src/main/java/org/sadtech/bot/bitbucketbot/exception/UpdateException.java
+++ b/bot-core/src/main/java/org/sadtech/bot/vcs/core/exception/UpdateException.java
@@ -1,4 +1,4 @@
-package org.sadtech.bot.bitbucketbot.exception;
+package org.sadtech.bot.vcs.core.exception;
public class UpdateException extends BitbucketBotException {
diff --git a/src/main/java/org/sadtech/bot/bitbucketbot/repository/ChangeRepository.java b/bot-core/src/main/java/org/sadtech/bot/vcs/core/repository/ChangeRepository.java
similarity index 67%
rename from src/main/java/org/sadtech/bot/bitbucketbot/repository/ChangeRepository.java
rename to bot-core/src/main/java/org/sadtech/bot/vcs/core/repository/ChangeRepository.java
index cb7d0b3..b921f80 100644
--- a/src/main/java/org/sadtech/bot/bitbucketbot/repository/ChangeRepository.java
+++ b/bot-core/src/main/java/org/sadtech/bot/vcs/core/repository/ChangeRepository.java
@@ -1,7 +1,7 @@
-package org.sadtech.bot.bitbucketbot.repository;
+package org.sadtech.bot.vcs.core.repository;
import lombok.NonNull;
-import org.sadtech.bot.bitbucketbot.domain.change.Change;
+import org.sadtech.bot.vcs.core.domain.change.Change;
import java.util.List;
diff --git a/src/main/java/org/sadtech/bot/bitbucketbot/repository/CommentRepository.java b/bot-core/src/main/java/org/sadtech/bot/vcs/core/repository/CommentRepository.java
similarity index 85%
rename from src/main/java/org/sadtech/bot/bitbucketbot/repository/CommentRepository.java
rename to bot-core/src/main/java/org/sadtech/bot/vcs/core/repository/CommentRepository.java
index a56a682..daeb190 100644
--- a/src/main/java/org/sadtech/bot/bitbucketbot/repository/CommentRepository.java
+++ b/bot-core/src/main/java/org/sadtech/bot/vcs/core/repository/CommentRepository.java
@@ -1,8 +1,8 @@
-package org.sadtech.bot.bitbucketbot.repository;
+package org.sadtech.bot.vcs.core.repository;
import lombok.NonNull;
import org.sadtech.basic.context.repository.SimpleManagerRepository;
-import org.sadtech.bot.bitbucketbot.domain.entity.Comment;
+import org.sadtech.bot.vcs.core.domain.entity.Comment;
import java.time.LocalDateTime;
import java.util.List;
diff --git a/src/main/java/org/sadtech/bot/bitbucketbot/repository/PersonRepository.java b/bot-core/src/main/java/org/sadtech/bot/vcs/core/repository/PersonRepository.java
similarity index 84%
rename from src/main/java/org/sadtech/bot/bitbucketbot/repository/PersonRepository.java
rename to bot-core/src/main/java/org/sadtech/bot/vcs/core/repository/PersonRepository.java
index 799cf71..0b1850b 100644
--- a/src/main/java/org/sadtech/bot/bitbucketbot/repository/PersonRepository.java
+++ b/bot-core/src/main/java/org/sadtech/bot/vcs/core/repository/PersonRepository.java
@@ -1,7 +1,7 @@
-package org.sadtech.bot.bitbucketbot.repository;
+package org.sadtech.bot.vcs.core.repository;
import lombok.NonNull;
-import org.sadtech.bot.bitbucketbot.domain.entity.Person;
+import org.sadtech.bot.vcs.core.domain.entity.Person;
import java.util.List;
import java.util.Optional;
diff --git a/src/main/java/org/sadtech/bot/bitbucketbot/repository/PullRequestsRepository.java b/bot-core/src/main/java/org/sadtech/bot/vcs/core/repository/PullRequestsRepository.java
similarity index 67%
rename from src/main/java/org/sadtech/bot/bitbucketbot/repository/PullRequestsRepository.java
rename to bot-core/src/main/java/org/sadtech/bot/vcs/core/repository/PullRequestsRepository.java
index d59c711..add61a4 100644
--- a/src/main/java/org/sadtech/bot/bitbucketbot/repository/PullRequestsRepository.java
+++ b/bot-core/src/main/java/org/sadtech/bot/vcs/core/repository/PullRequestsRepository.java
@@ -1,13 +1,13 @@
-package org.sadtech.bot.bitbucketbot.repository;
+package org.sadtech.bot.vcs.core.repository;
import lombok.NonNull;
import org.sadtech.basic.context.repository.SimpleManagerRepository;
import org.sadtech.basic.context.repository.simple.FilterOperation;
-import org.sadtech.bot.bitbucketbot.domain.IdAndStatusPr;
-import org.sadtech.bot.bitbucketbot.domain.PullRequestStatus;
-import org.sadtech.bot.bitbucketbot.domain.ReviewerStatus;
-import org.sadtech.bot.bitbucketbot.domain.entity.PullRequest;
-import org.sadtech.bot.bitbucketbot.domain.entity.PullRequestMini;
+import org.sadtech.bot.vcs.core.domain.IdAndStatusPr;
+import org.sadtech.bot.vcs.core.domain.PullRequestStatus;
+import org.sadtech.bot.vcs.core.domain.ReviewerStatus;
+import org.sadtech.bot.vcs.core.domain.entity.PullRequest;
+import org.sadtech.bot.vcs.core.domain.entity.PullRequestMini;
import java.util.List;
import java.util.Optional;
diff --git a/src/main/java/org/sadtech/bot/bitbucketbot/repository/TaskRepository.java b/bot-core/src/main/java/org/sadtech/bot/vcs/core/repository/TaskRepository.java
similarity index 77%
rename from src/main/java/org/sadtech/bot/bitbucketbot/repository/TaskRepository.java
rename to bot-core/src/main/java/org/sadtech/bot/vcs/core/repository/TaskRepository.java
index ba1228c..910d11c 100644
--- a/src/main/java/org/sadtech/bot/bitbucketbot/repository/TaskRepository.java
+++ b/bot-core/src/main/java/org/sadtech/bot/vcs/core/repository/TaskRepository.java
@@ -1,7 +1,7 @@
-package org.sadtech.bot.bitbucketbot.repository;
+package org.sadtech.bot.vcs.core.repository;
import org.sadtech.basic.context.repository.SimpleManagerRepository;
-import org.sadtech.bot.bitbucketbot.domain.entity.Task;
+import org.sadtech.bot.vcs.core.domain.entity.Task;
import java.time.LocalDateTime;
import java.util.List;
diff --git a/src/main/java/org/sadtech/bot/bitbucketbot/repository/impl/ChangeRepositoryImpl.java b/bot-core/src/main/java/org/sadtech/bot/vcs/core/repository/impl/ChangeRepositoryImpl.java
similarity index 78%
rename from src/main/java/org/sadtech/bot/bitbucketbot/repository/impl/ChangeRepositoryImpl.java
rename to bot-core/src/main/java/org/sadtech/bot/vcs/core/repository/impl/ChangeRepositoryImpl.java
index c0fe697..b028896 100644
--- a/src/main/java/org/sadtech/bot/bitbucketbot/repository/impl/ChangeRepositoryImpl.java
+++ b/bot-core/src/main/java/org/sadtech/bot/vcs/core/repository/impl/ChangeRepositoryImpl.java
@@ -1,8 +1,8 @@
-package org.sadtech.bot.bitbucketbot.repository.impl;
+package org.sadtech.bot.vcs.core.repository.impl;
import lombok.NonNull;
-import org.sadtech.bot.bitbucketbot.domain.change.Change;
-import org.sadtech.bot.bitbucketbot.repository.ChangeRepository;
+import org.sadtech.bot.vcs.core.domain.change.Change;
+import org.sadtech.bot.vcs.core.repository.ChangeRepository;
import org.springframework.stereotype.Repository;
import java.util.ArrayList;
diff --git a/src/main/java/org/sadtech/bot/bitbucketbot/repository/impl/CommentRepositoryImpl.java b/bot-core/src/main/java/org/sadtech/bot/vcs/core/repository/impl/CommentRepositoryImpl.java
similarity index 83%
rename from src/main/java/org/sadtech/bot/bitbucketbot/repository/impl/CommentRepositoryImpl.java
rename to bot-core/src/main/java/org/sadtech/bot/vcs/core/repository/impl/CommentRepositoryImpl.java
index b50798a..892f3c5 100644
--- a/src/main/java/org/sadtech/bot/bitbucketbot/repository/impl/CommentRepositoryImpl.java
+++ b/bot-core/src/main/java/org/sadtech/bot/vcs/core/repository/impl/CommentRepositoryImpl.java
@@ -1,10 +1,10 @@
-package org.sadtech.bot.bitbucketbot.repository.impl;
+package org.sadtech.bot.vcs.core.repository.impl;
import lombok.NonNull;
import org.sadtech.basic.database.repository.manager.AbstractSimpleManagerRepository;
-import org.sadtech.bot.bitbucketbot.domain.entity.Comment;
-import org.sadtech.bot.bitbucketbot.repository.CommentRepository;
-import org.sadtech.bot.bitbucketbot.repository.jpa.CommentRepositoryJpa;
+import org.sadtech.bot.vcs.core.domain.entity.Comment;
+import org.sadtech.bot.vcs.core.repository.CommentRepository;
+import org.sadtech.bot.vcs.core.repository.jpa.CommentRepositoryJpa;
import org.springframework.stereotype.Repository;
import java.time.LocalDateTime;
diff --git a/src/main/java/org/sadtech/bot/bitbucketbot/repository/impl/PersonRepositoryImpl.java b/bot-core/src/main/java/org/sadtech/bot/vcs/core/repository/impl/PersonRepositoryImpl.java
similarity index 88%
rename from src/main/java/org/sadtech/bot/bitbucketbot/repository/impl/PersonRepositoryImpl.java
rename to bot-core/src/main/java/org/sadtech/bot/vcs/core/repository/impl/PersonRepositoryImpl.java
index 2e83671..3ead285 100644
--- a/src/main/java/org/sadtech/bot/bitbucketbot/repository/impl/PersonRepositoryImpl.java
+++ b/bot-core/src/main/java/org/sadtech/bot/vcs/core/repository/impl/PersonRepositoryImpl.java
@@ -1,11 +1,11 @@
-package org.sadtech.bot.bitbucketbot.repository.impl;
+package org.sadtech.bot.vcs.core.repository.impl;
import lombok.NonNull;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
-import org.sadtech.bot.bitbucketbot.domain.entity.Person;
-import org.sadtech.bot.bitbucketbot.repository.PersonRepository;
-import org.sadtech.bot.bitbucketbot.repository.jpa.PersonJpaRepository;
+import org.sadtech.bot.vcs.core.domain.entity.Person;
+import org.sadtech.bot.vcs.core.repository.PersonRepository;
+import org.sadtech.bot.vcs.core.repository.jpa.PersonJpaRepository;
import org.springframework.dao.InvalidDataAccessResourceUsageException;
import org.springframework.stereotype.Repository;
diff --git a/src/main/java/org/sadtech/bot/bitbucketbot/repository/impl/PullRequestsRepositoryImpl.java b/bot-core/src/main/java/org/sadtech/bot/vcs/core/repository/impl/PullRequestsRepositoryImpl.java
similarity index 72%
rename from src/main/java/org/sadtech/bot/bitbucketbot/repository/impl/PullRequestsRepositoryImpl.java
rename to bot-core/src/main/java/org/sadtech/bot/vcs/core/repository/impl/PullRequestsRepositoryImpl.java
index 05f050d..13c07fe 100644
--- a/src/main/java/org/sadtech/bot/bitbucketbot/repository/impl/PullRequestsRepositoryImpl.java
+++ b/bot-core/src/main/java/org/sadtech/bot/vcs/core/repository/impl/PullRequestsRepositoryImpl.java
@@ -1,15 +1,15 @@
-package org.sadtech.bot.bitbucketbot.repository.impl;
+package org.sadtech.bot.vcs.core.repository.impl;
import lombok.NonNull;
import org.sadtech.basic.database.repository.manager.FilterManagerRepository;
-import org.sadtech.bot.bitbucketbot.domain.IdAndStatusPr;
-import org.sadtech.bot.bitbucketbot.domain.PullRequestStatus;
-import org.sadtech.bot.bitbucketbot.domain.ReviewerStatus;
-import org.sadtech.bot.bitbucketbot.domain.entity.PullRequest;
-import org.sadtech.bot.bitbucketbot.domain.entity.PullRequestMini;
-import org.sadtech.bot.bitbucketbot.repository.PullRequestsRepository;
-import org.sadtech.bot.bitbucketbot.repository.jpa.PullRequestMiniRepositoryJpa;
-import org.sadtech.bot.bitbucketbot.repository.jpa.PullRequestsRepositoryJpa;
+import org.sadtech.bot.vcs.core.domain.IdAndStatusPr;
+import org.sadtech.bot.vcs.core.domain.PullRequestStatus;
+import org.sadtech.bot.vcs.core.domain.ReviewerStatus;
+import org.sadtech.bot.vcs.core.domain.entity.PullRequest;
+import org.sadtech.bot.vcs.core.domain.entity.PullRequestMini;
+import org.sadtech.bot.vcs.core.repository.PullRequestsRepository;
+import org.sadtech.bot.vcs.core.repository.jpa.PullRequestMiniRepositoryJpa;
+import org.sadtech.bot.vcs.core.repository.jpa.PullRequestsRepositoryJpa;
import org.springframework.stereotype.Repository;
import java.util.List;
diff --git a/src/main/java/org/sadtech/bot/bitbucketbot/repository/impl/TaskRepositoryImpl.java b/bot-core/src/main/java/org/sadtech/bot/vcs/core/repository/impl/TaskRepositoryImpl.java
similarity index 78%
rename from src/main/java/org/sadtech/bot/bitbucketbot/repository/impl/TaskRepositoryImpl.java
rename to bot-core/src/main/java/org/sadtech/bot/vcs/core/repository/impl/TaskRepositoryImpl.java
index 0b30a40..3a465b4 100644
--- a/src/main/java/org/sadtech/bot/bitbucketbot/repository/impl/TaskRepositoryImpl.java
+++ b/bot-core/src/main/java/org/sadtech/bot/vcs/core/repository/impl/TaskRepositoryImpl.java
@@ -1,9 +1,9 @@
-package org.sadtech.bot.bitbucketbot.repository.impl;
+package org.sadtech.bot.vcs.core.repository.impl;
import org.sadtech.basic.database.repository.manager.AbstractSimpleManagerRepository;
-import org.sadtech.bot.bitbucketbot.domain.entity.Task;
-import org.sadtech.bot.bitbucketbot.repository.TaskRepository;
-import org.sadtech.bot.bitbucketbot.repository.jpa.TaskRepositoryJpa;
+import org.sadtech.bot.vcs.core.domain.entity.Task;
+import org.sadtech.bot.vcs.core.repository.TaskRepository;
+import org.sadtech.bot.vcs.core.repository.jpa.TaskRepositoryJpa;
import org.springframework.stereotype.Repository;
import java.time.LocalDateTime;
diff --git a/src/main/java/org/sadtech/bot/bitbucketbot/repository/jpa/CommentRepositoryJpa.java b/bot-core/src/main/java/org/sadtech/bot/vcs/core/repository/jpa/CommentRepositoryJpa.java
similarity index 84%
rename from src/main/java/org/sadtech/bot/bitbucketbot/repository/jpa/CommentRepositoryJpa.java
rename to bot-core/src/main/java/org/sadtech/bot/vcs/core/repository/jpa/CommentRepositoryJpa.java
index 1ee56d6..71d8870 100644
--- a/src/main/java/org/sadtech/bot/bitbucketbot/repository/jpa/CommentRepositoryJpa.java
+++ b/bot-core/src/main/java/org/sadtech/bot/vcs/core/repository/jpa/CommentRepositoryJpa.java
@@ -1,7 +1,7 @@
-package org.sadtech.bot.bitbucketbot.repository.jpa;
+package org.sadtech.bot.vcs.core.repository.jpa;
import lombok.NonNull;
-import org.sadtech.bot.bitbucketbot.domain.entity.Comment;
+import org.sadtech.bot.vcs.core.domain.entity.Comment;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
diff --git a/src/main/java/org/sadtech/bot/bitbucketbot/repository/jpa/PersonJpaRepository.java b/bot-core/src/main/java/org/sadtech/bot/vcs/core/repository/jpa/PersonJpaRepository.java
similarity index 88%
rename from src/main/java/org/sadtech/bot/bitbucketbot/repository/jpa/PersonJpaRepository.java
rename to bot-core/src/main/java/org/sadtech/bot/vcs/core/repository/jpa/PersonJpaRepository.java
index 06aa42f..54bf16f 100644
--- a/src/main/java/org/sadtech/bot/bitbucketbot/repository/jpa/PersonJpaRepository.java
+++ b/bot-core/src/main/java/org/sadtech/bot/vcs/core/repository/jpa/PersonJpaRepository.java
@@ -1,6 +1,6 @@
-package org.sadtech.bot.bitbucketbot.repository.jpa;
+package org.sadtech.bot.vcs.core.repository.jpa;
-import org.sadtech.bot.bitbucketbot.domain.entity.Person;
+import org.sadtech.bot.vcs.core.domain.entity.Person;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;
diff --git a/src/main/java/org/sadtech/bot/bitbucketbot/repository/jpa/PullRequestMiniRepositoryJpa.java b/bot-core/src/main/java/org/sadtech/bot/vcs/core/repository/jpa/PullRequestMiniRepositoryJpa.java
similarity index 68%
rename from src/main/java/org/sadtech/bot/bitbucketbot/repository/jpa/PullRequestMiniRepositoryJpa.java
rename to bot-core/src/main/java/org/sadtech/bot/vcs/core/repository/jpa/PullRequestMiniRepositoryJpa.java
index 5bfb1e4..09b7f83 100644
--- a/src/main/java/org/sadtech/bot/bitbucketbot/repository/jpa/PullRequestMiniRepositoryJpa.java
+++ b/bot-core/src/main/java/org/sadtech/bot/vcs/core/repository/jpa/PullRequestMiniRepositoryJpa.java
@@ -1,6 +1,6 @@
-package org.sadtech.bot.bitbucketbot.repository.jpa;
+package org.sadtech.bot.vcs.core.repository.jpa;
-import org.sadtech.bot.bitbucketbot.domain.entity.PullRequestMini;
+import org.sadtech.bot.vcs.core.domain.entity.PullRequestMini;
import org.springframework.data.jpa.repository.JpaRepository;
/**
diff --git a/src/main/java/org/sadtech/bot/bitbucketbot/repository/jpa/PullRequestsRepositoryJpa.java b/bot-core/src/main/java/org/sadtech/bot/vcs/core/repository/jpa/PullRequestsRepositoryJpa.java
similarity index 88%
rename from src/main/java/org/sadtech/bot/bitbucketbot/repository/jpa/PullRequestsRepositoryJpa.java
rename to bot-core/src/main/java/org/sadtech/bot/vcs/core/repository/jpa/PullRequestsRepositoryJpa.java
index 8eb2ada..325710a 100644
--- a/src/main/java/org/sadtech/bot/bitbucketbot/repository/jpa/PullRequestsRepositoryJpa.java
+++ b/bot-core/src/main/java/org/sadtech/bot/vcs/core/repository/jpa/PullRequestsRepositoryJpa.java
@@ -1,9 +1,9 @@
-package org.sadtech.bot.bitbucketbot.repository.jpa;
+package org.sadtech.bot.vcs.core.repository.jpa;
-import org.sadtech.bot.bitbucketbot.domain.IdAndStatusPr;
-import org.sadtech.bot.bitbucketbot.domain.PullRequestStatus;
-import org.sadtech.bot.bitbucketbot.domain.ReviewerStatus;
-import org.sadtech.bot.bitbucketbot.domain.entity.PullRequest;
+import org.sadtech.bot.vcs.core.domain.IdAndStatusPr;
+import org.sadtech.bot.vcs.core.domain.PullRequestStatus;
+import org.sadtech.bot.vcs.core.domain.ReviewerStatus;
+import org.sadtech.bot.vcs.core.domain.entity.PullRequest;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.jpa.repository.support.JpaRepositoryImplementation;
import org.springframework.data.repository.query.Param;
diff --git a/src/main/java/org/sadtech/bot/bitbucketbot/repository/jpa/TaskRepositoryJpa.java b/bot-core/src/main/java/org/sadtech/bot/vcs/core/repository/jpa/TaskRepositoryJpa.java
similarity index 78%
rename from src/main/java/org/sadtech/bot/bitbucketbot/repository/jpa/TaskRepositoryJpa.java
rename to bot-core/src/main/java/org/sadtech/bot/vcs/core/repository/jpa/TaskRepositoryJpa.java
index 566683c..85ee04a 100644
--- a/src/main/java/org/sadtech/bot/bitbucketbot/repository/jpa/TaskRepositoryJpa.java
+++ b/bot-core/src/main/java/org/sadtech/bot/vcs/core/repository/jpa/TaskRepositoryJpa.java
@@ -1,7 +1,7 @@
-package org.sadtech.bot.bitbucketbot.repository.jpa;
+package org.sadtech.bot.vcs.core.repository.jpa;
import lombok.NonNull;
-import org.sadtech.bot.bitbucketbot.domain.entity.Task;
+import org.sadtech.bot.vcs.core.domain.entity.Task;
import org.springframework.data.jpa.repository.JpaRepository;
import java.time.LocalDateTime;
diff --git a/src/main/java/org/sadtech/bot/bitbucketbot/scheduler/SchedulerChangeParsing.java b/bot-core/src/main/java/org/sadtech/bot/vcs/core/scheduler/SchedulerChangeParsing.java
similarity index 85%
rename from src/main/java/org/sadtech/bot/bitbucketbot/scheduler/SchedulerChangeParsing.java
rename to bot-core/src/main/java/org/sadtech/bot/vcs/core/scheduler/SchedulerChangeParsing.java
index 5a94453..393e3b6 100644
--- a/src/main/java/org/sadtech/bot/bitbucketbot/scheduler/SchedulerChangeParsing.java
+++ b/bot-core/src/main/java/org/sadtech/bot/vcs/core/scheduler/SchedulerChangeParsing.java
@@ -1,10 +1,10 @@
-package org.sadtech.bot.bitbucketbot.scheduler;
+package org.sadtech.bot.vcs.core.scheduler;
import lombok.RequiredArgsConstructor;
-import org.sadtech.bot.bitbucketbot.domain.MessageSend;
-import org.sadtech.bot.bitbucketbot.domain.change.Change;
-import org.sadtech.bot.bitbucketbot.service.ChangeService;
-import org.sadtech.bot.bitbucketbot.service.MessageSendService;
+import org.sadtech.bot.vcs.core.domain.MessageSend;
+import org.sadtech.bot.vcs.core.domain.change.Change;
+import org.sadtech.bot.vcs.core.service.ChangeService;
+import org.sadtech.bot.vcs.core.service.MessageSendService;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Service;
diff --git a/src/main/java/org/sadtech/bot/bitbucketbot/scheduler/SchedulerComments.java b/bot-core/src/main/java/org/sadtech/bot/vcs/core/scheduler/SchedulerComments.java
similarity index 99%
rename from src/main/java/org/sadtech/bot/bitbucketbot/scheduler/SchedulerComments.java
rename to bot-core/src/main/java/org/sadtech/bot/vcs/core/scheduler/SchedulerComments.java
index ce7d79a..5998e94 100644
--- a/src/main/java/org/sadtech/bot/bitbucketbot/scheduler/SchedulerComments.java
+++ b/bot-core/src/main/java/org/sadtech/bot/vcs/core/scheduler/SchedulerComments.java
@@ -1,4 +1,4 @@
-package org.sadtech.bot.bitbucketbot.scheduler;
+package org.sadtech.bot.vcs.core.scheduler;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
diff --git a/src/main/java/org/sadtech/bot/bitbucketbot/scheduler/SchedulerNotification.java b/bot-core/src/main/java/org/sadtech/bot/vcs/core/scheduler/SchedulerNotification.java
similarity index 81%
rename from src/main/java/org/sadtech/bot/bitbucketbot/scheduler/SchedulerNotification.java
rename to bot-core/src/main/java/org/sadtech/bot/vcs/core/scheduler/SchedulerNotification.java
index 93c4917..a699efe 100644
--- a/src/main/java/org/sadtech/bot/bitbucketbot/scheduler/SchedulerNotification.java
+++ b/bot-core/src/main/java/org/sadtech/bot/vcs/core/scheduler/SchedulerNotification.java
@@ -1,16 +1,16 @@
-package org.sadtech.bot.bitbucketbot.scheduler;
+package org.sadtech.bot.vcs.core.scheduler;
import lombok.RequiredArgsConstructor;
-import org.sadtech.bot.bitbucketbot.domain.MessageSend;
-import org.sadtech.bot.bitbucketbot.domain.PullRequestStatus;
-import org.sadtech.bot.bitbucketbot.domain.ReviewerStatus;
-import org.sadtech.bot.bitbucketbot.domain.entity.Person;
-import org.sadtech.bot.bitbucketbot.domain.entity.PullRequest;
-import org.sadtech.bot.bitbucketbot.service.MessageSendService;
-import org.sadtech.bot.bitbucketbot.service.PersonService;
-import org.sadtech.bot.bitbucketbot.service.PullRequestsService;
-import org.sadtech.bot.bitbucketbot.utils.Message;
-import org.sadtech.bot.bitbucketbot.utils.Smile;
+import org.sadtech.bot.vcs.core.domain.MessageSend;
+import org.sadtech.bot.vcs.core.domain.PullRequestStatus;
+import org.sadtech.bot.vcs.core.domain.ReviewerStatus;
+import org.sadtech.bot.vcs.core.domain.entity.Person;
+import org.sadtech.bot.vcs.core.domain.entity.PullRequest;
+import org.sadtech.bot.vcs.core.service.MessageSendService;
+import org.sadtech.bot.vcs.core.service.PersonService;
+import org.sadtech.bot.vcs.core.service.PullRequestsService;
+import org.sadtech.bot.vcs.core.utils.Message;
+import org.sadtech.bot.vcs.core.utils.Smile;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Service;
diff --git a/src/main/java/org/sadtech/bot/bitbucketbot/service/ChangeService.java b/bot-core/src/main/java/org/sadtech/bot/vcs/core/service/ChangeService.java
similarity index 77%
rename from src/main/java/org/sadtech/bot/bitbucketbot/service/ChangeService.java
rename to bot-core/src/main/java/org/sadtech/bot/vcs/core/service/ChangeService.java
index dc04a0d..c97a9a0 100644
--- a/src/main/java/org/sadtech/bot/bitbucketbot/service/ChangeService.java
+++ b/bot-core/src/main/java/org/sadtech/bot/vcs/core/service/ChangeService.java
@@ -1,6 +1,6 @@
-package org.sadtech.bot.bitbucketbot.service;
+package org.sadtech.bot.vcs.core.service;
-import org.sadtech.bot.bitbucketbot.domain.change.Change;
+import org.sadtech.bot.vcs.core.domain.change.Change;
import java.util.List;
diff --git a/src/main/java/org/sadtech/bot/bitbucketbot/service/CommentService.java b/bot-core/src/main/java/org/sadtech/bot/vcs/core/service/CommentService.java
similarity index 76%
rename from src/main/java/org/sadtech/bot/bitbucketbot/service/CommentService.java
rename to bot-core/src/main/java/org/sadtech/bot/vcs/core/service/CommentService.java
index bd2253e..bca8e75 100644
--- a/src/main/java/org/sadtech/bot/bitbucketbot/service/CommentService.java
+++ b/bot-core/src/main/java/org/sadtech/bot/vcs/core/service/CommentService.java
@@ -1,9 +1,9 @@
-package org.sadtech.bot.bitbucketbot.service;
+package org.sadtech.bot.vcs.core.service;
import lombok.NonNull;
import org.sadtech.basic.context.service.SimpleManagerService;
-import org.sadtech.bot.bitbucketbot.domain.entity.Comment;
-import org.sadtech.bot.bitbucketbot.domain.entity.Task;
+import org.sadtech.bot.vcs.core.domain.entity.Comment;
+import org.sadtech.bot.vcs.core.domain.entity.Task;
import java.time.LocalDateTime;
import java.util.List;
diff --git a/bot-core/src/main/java/org/sadtech/bot/vcs/core/service/MessageSendService.java b/bot-core/src/main/java/org/sadtech/bot/vcs/core/service/MessageSendService.java
new file mode 100644
index 0000000..810d8df
--- /dev/null
+++ b/bot-core/src/main/java/org/sadtech/bot/vcs/core/service/MessageSendService.java
@@ -0,0 +1,10 @@
+package org.sadtech.bot.vcs.core.service;
+
+import lombok.NonNull;
+import org.sadtech.bot.vcs.core.domain.MessageSend;
+
+public interface MessageSendService {
+
+ void add(@NonNull MessageSend messageSend);
+
+}
diff --git a/src/main/java/org/sadtech/bot/bitbucketbot/service/PersonService.java b/bot-core/src/main/java/org/sadtech/bot/vcs/core/service/PersonService.java
similarity index 85%
rename from src/main/java/org/sadtech/bot/bitbucketbot/service/PersonService.java
rename to bot-core/src/main/java/org/sadtech/bot/vcs/core/service/PersonService.java
index eed9baf..0fa5f42 100644
--- a/src/main/java/org/sadtech/bot/bitbucketbot/service/PersonService.java
+++ b/bot-core/src/main/java/org/sadtech/bot/vcs/core/service/PersonService.java
@@ -1,7 +1,7 @@
-package org.sadtech.bot.bitbucketbot.service;
+package org.sadtech.bot.vcs.core.service;
import lombok.NonNull;
-import org.sadtech.bot.bitbucketbot.domain.entity.Person;
+import org.sadtech.bot.vcs.core.domain.entity.Person;
import java.util.Collection;
import java.util.List;
diff --git a/src/main/java/org/sadtech/bot/bitbucketbot/service/PullRequestsService.java b/bot-core/src/main/java/org/sadtech/bot/vcs/core/service/PullRequestsService.java
similarity index 71%
rename from src/main/java/org/sadtech/bot/bitbucketbot/service/PullRequestsService.java
rename to bot-core/src/main/java/org/sadtech/bot/vcs/core/service/PullRequestsService.java
index 3045153..d12992e 100644
--- a/src/main/java/org/sadtech/bot/bitbucketbot/service/PullRequestsService.java
+++ b/bot-core/src/main/java/org/sadtech/bot/vcs/core/service/PullRequestsService.java
@@ -1,14 +1,14 @@
-package org.sadtech.bot.bitbucketbot.service;
+package org.sadtech.bot.vcs.core.service;
import lombok.NonNull;
import org.sadtech.basic.context.service.SimpleManagerService;
import org.sadtech.basic.context.service.simple.FilterService;
-import org.sadtech.bot.bitbucketbot.domain.IdAndStatusPr;
-import org.sadtech.bot.bitbucketbot.domain.PullRequestStatus;
-import org.sadtech.bot.bitbucketbot.domain.ReviewerStatus;
-import org.sadtech.bot.bitbucketbot.domain.entity.PullRequest;
-import org.sadtech.bot.bitbucketbot.domain.entity.PullRequestMini;
-import org.sadtech.bot.bitbucketbot.domain.filter.PullRequestFilter;
+import org.sadtech.bot.vcs.core.domain.IdAndStatusPr;
+import org.sadtech.bot.vcs.core.domain.PullRequestStatus;
+import org.sadtech.bot.vcs.core.domain.ReviewerStatus;
+import org.sadtech.bot.vcs.core.domain.entity.PullRequest;
+import org.sadtech.bot.vcs.core.domain.entity.PullRequestMini;
+import org.sadtech.bot.vcs.core.domain.filter.PullRequestFilter;
import java.util.List;
import java.util.Optional;
diff --git a/src/main/java/org/sadtech/bot/bitbucketbot/service/ReportService.java b/bot-core/src/main/java/org/sadtech/bot/vcs/core/service/ReportService.java
similarity index 70%
rename from src/main/java/org/sadtech/bot/bitbucketbot/service/ReportService.java
rename to bot-core/src/main/java/org/sadtech/bot/vcs/core/service/ReportService.java
index 7576bbf..3b02e99 100644
--- a/src/main/java/org/sadtech/bot/bitbucketbot/service/ReportService.java
+++ b/bot-core/src/main/java/org/sadtech/bot/vcs/core/service/ReportService.java
@@ -1,4 +1,4 @@
-package org.sadtech.bot.bitbucketbot.service;
+package org.sadtech.bot.vcs.core.service;
import lombok.NonNull;
diff --git a/src/main/java/org/sadtech/bot/bitbucketbot/service/TaskService.java b/bot-core/src/main/java/org/sadtech/bot/vcs/core/service/TaskService.java
similarity index 70%
rename from src/main/java/org/sadtech/bot/bitbucketbot/service/TaskService.java
rename to bot-core/src/main/java/org/sadtech/bot/vcs/core/service/TaskService.java
index 3a2ce0c..1605b27 100644
--- a/src/main/java/org/sadtech/bot/bitbucketbot/service/TaskService.java
+++ b/bot-core/src/main/java/org/sadtech/bot/vcs/core/service/TaskService.java
@@ -1,9 +1,9 @@
-package org.sadtech.bot.bitbucketbot.service;
+package org.sadtech.bot.vcs.core.service;
import lombok.NonNull;
import org.sadtech.basic.context.service.SimpleManagerService;
-import org.sadtech.bot.bitbucketbot.domain.entity.Comment;
-import org.sadtech.bot.bitbucketbot.domain.entity.Task;
+import org.sadtech.bot.vcs.core.domain.entity.Comment;
+import org.sadtech.bot.vcs.core.domain.entity.Task;
import java.time.LocalDateTime;
import java.util.List;
diff --git a/src/main/java/org/sadtech/bot/bitbucketbot/service/Utils.java b/bot-core/src/main/java/org/sadtech/bot/vcs/core/service/Utils.java
similarity index 97%
rename from src/main/java/org/sadtech/bot/bitbucketbot/service/Utils.java
rename to bot-core/src/main/java/org/sadtech/bot/vcs/core/service/Utils.java
index 54187ac..cb14a6b 100644
--- a/src/main/java/org/sadtech/bot/bitbucketbot/service/Utils.java
+++ b/bot-core/src/main/java/org/sadtech/bot/vcs/core/service/Utils.java
@@ -1,4 +1,4 @@
-package org.sadtech.bot.bitbucketbot.service;
+package org.sadtech.bot.vcs.core.service;
import com.fasterxml.jackson.databind.DeserializationFeature;
import com.fasterxml.jackson.databind.ObjectMapper;
diff --git a/src/main/java/org/sadtech/bot/bitbucketbot/service/converter/CommentToTaskConvert.java b/bot-core/src/main/java/org/sadtech/bot/vcs/core/service/converter/CommentToTaskConvert.java
similarity index 80%
rename from src/main/java/org/sadtech/bot/bitbucketbot/service/converter/CommentToTaskConvert.java
rename to bot-core/src/main/java/org/sadtech/bot/vcs/core/service/converter/CommentToTaskConvert.java
index 4e46a4e..936a7dd 100644
--- a/src/main/java/org/sadtech/bot/bitbucketbot/service/converter/CommentToTaskConvert.java
+++ b/bot-core/src/main/java/org/sadtech/bot/vcs/core/service/converter/CommentToTaskConvert.java
@@ -1,8 +1,8 @@
-package org.sadtech.bot.bitbucketbot.service.converter;
+package org.sadtech.bot.vcs.core.service.converter;
-import org.sadtech.bot.bitbucketbot.domain.TaskStatus;
-import org.sadtech.bot.bitbucketbot.domain.entity.Comment;
-import org.sadtech.bot.bitbucketbot.domain.entity.Task;
+import org.sadtech.bot.vcs.core.domain.TaskStatus;
+import org.sadtech.bot.vcs.core.domain.entity.Comment;
+import org.sadtech.bot.vcs.core.domain.entity.Task;
import org.springframework.core.convert.converter.Converter;
import org.springframework.stereotype.Component;
diff --git a/src/main/java/org/sadtech/bot/bitbucketbot/service/converter/TaskToCommentConvert.java b/bot-core/src/main/java/org/sadtech/bot/vcs/core/service/converter/TaskToCommentConvert.java
similarity index 84%
rename from src/main/java/org/sadtech/bot/bitbucketbot/service/converter/TaskToCommentConvert.java
rename to bot-core/src/main/java/org/sadtech/bot/vcs/core/service/converter/TaskToCommentConvert.java
index bf6268c..74fcc3b 100644
--- a/src/main/java/org/sadtech/bot/bitbucketbot/service/converter/TaskToCommentConvert.java
+++ b/bot-core/src/main/java/org/sadtech/bot/vcs/core/service/converter/TaskToCommentConvert.java
@@ -1,7 +1,7 @@
-package org.sadtech.bot.bitbucketbot.service.converter;
+package org.sadtech.bot.vcs.core.service.converter;
-import org.sadtech.bot.bitbucketbot.domain.entity.Comment;
-import org.sadtech.bot.bitbucketbot.domain.entity.Task;
+import org.sadtech.bot.vcs.core.domain.entity.Comment;
+import org.sadtech.bot.vcs.core.domain.entity.Task;
import org.springframework.core.convert.converter.Converter;
import org.springframework.stereotype.Component;
diff --git a/src/main/java/org/sadtech/bot/bitbucketbot/service/impl/ChangeServiceImpl.java b/bot-core/src/main/java/org/sadtech/bot/vcs/core/service/impl/ChangeServiceImpl.java
similarity index 70%
rename from src/main/java/org/sadtech/bot/bitbucketbot/service/impl/ChangeServiceImpl.java
rename to bot-core/src/main/java/org/sadtech/bot/vcs/core/service/impl/ChangeServiceImpl.java
index a8b4f6d..1ca19c4 100644
--- a/src/main/java/org/sadtech/bot/bitbucketbot/service/impl/ChangeServiceImpl.java
+++ b/bot-core/src/main/java/org/sadtech/bot/vcs/core/service/impl/ChangeServiceImpl.java
@@ -1,9 +1,9 @@
-package org.sadtech.bot.bitbucketbot.service.impl;
+package org.sadtech.bot.vcs.core.service.impl;
import lombok.RequiredArgsConstructor;
-import org.sadtech.bot.bitbucketbot.domain.change.Change;
-import org.sadtech.bot.bitbucketbot.repository.ChangeRepository;
-import org.sadtech.bot.bitbucketbot.service.ChangeService;
+import org.sadtech.bot.vcs.core.domain.change.Change;
+import org.sadtech.bot.vcs.core.repository.ChangeRepository;
+import org.sadtech.bot.vcs.core.service.ChangeService;
import org.springframework.stereotype.Service;
import java.util.List;
diff --git a/src/main/java/org/sadtech/bot/bitbucketbot/service/impl/CommentServiceImpl.java b/bot-core/src/main/java/org/sadtech/bot/vcs/core/service/impl/CommentServiceImpl.java
similarity index 88%
rename from src/main/java/org/sadtech/bot/bitbucketbot/service/impl/CommentServiceImpl.java
rename to bot-core/src/main/java/org/sadtech/bot/vcs/core/service/impl/CommentServiceImpl.java
index 9be3b29..7e09fe1 100644
--- a/src/main/java/org/sadtech/bot/bitbucketbot/service/impl/CommentServiceImpl.java
+++ b/bot-core/src/main/java/org/sadtech/bot/vcs/core/service/impl/CommentServiceImpl.java
@@ -1,18 +1,18 @@
-package org.sadtech.bot.bitbucketbot.service.impl;
+package org.sadtech.bot.vcs.core.service.impl;
import lombok.NonNull;
import org.sadtech.basic.core.service.AbstractSimpleManagerService;
-import org.sadtech.bot.bitbucketbot.domain.Answer;
-import org.sadtech.bot.bitbucketbot.domain.change.comment.AnswerCommentChange;
-import org.sadtech.bot.bitbucketbot.domain.change.comment.CommentChange;
-import org.sadtech.bot.bitbucketbot.domain.entity.Comment;
-import org.sadtech.bot.bitbucketbot.domain.entity.Task;
-import org.sadtech.bot.bitbucketbot.exception.NotFoundException;
-import org.sadtech.bot.bitbucketbot.repository.CommentRepository;
-import org.sadtech.bot.bitbucketbot.service.ChangeService;
-import org.sadtech.bot.bitbucketbot.service.CommentService;
-import org.sadtech.bot.bitbucketbot.service.PersonService;
-import org.sadtech.bot.bitbucketbot.service.TaskService;
+import org.sadtech.bot.vcs.core.domain.Answer;
+import org.sadtech.bot.vcs.core.domain.change.comment.AnswerCommentChange;
+import org.sadtech.bot.vcs.core.domain.change.comment.CommentChange;
+import org.sadtech.bot.vcs.core.domain.entity.Comment;
+import org.sadtech.bot.vcs.core.domain.entity.Task;
+import org.sadtech.bot.vcs.core.exception.NotFoundException;
+import org.sadtech.bot.vcs.core.repository.CommentRepository;
+import org.sadtech.bot.vcs.core.service.ChangeService;
+import org.sadtech.bot.vcs.core.service.CommentService;
+import org.sadtech.bot.vcs.core.service.PersonService;
+import org.sadtech.bot.vcs.core.service.TaskService;
import org.springframework.context.annotation.Lazy;
import org.springframework.core.convert.ConversionService;
import org.springframework.stereotype.Service;
diff --git a/src/main/java/org/sadtech/bot/bitbucketbot/service/impl/PersonServiceImpl.java b/bot-core/src/main/java/org/sadtech/bot/vcs/core/service/impl/PersonServiceImpl.java
similarity index 81%
rename from src/main/java/org/sadtech/bot/bitbucketbot/service/impl/PersonServiceImpl.java
rename to bot-core/src/main/java/org/sadtech/bot/vcs/core/service/impl/PersonServiceImpl.java
index 6dffc6e..d537b5f 100644
--- a/src/main/java/org/sadtech/bot/bitbucketbot/service/impl/PersonServiceImpl.java
+++ b/bot-core/src/main/java/org/sadtech/bot/vcs/core/service/impl/PersonServiceImpl.java
@@ -1,16 +1,15 @@
-package org.sadtech.bot.bitbucketbot.service.impl;
+package org.sadtech.bot.vcs.core.service.impl;
import lombok.NonNull;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.sadtech.basic.core.util.Assert;
-import org.sadtech.bot.bitbucketbot.config.properties.BitbucketProperty;
-import org.sadtech.bot.bitbucketbot.domain.entity.Person;
-import org.sadtech.bot.bitbucketbot.dto.bitbucket.sheet.PullRequestSheetJson;
-import org.sadtech.bot.bitbucketbot.exception.RegException;
-import org.sadtech.bot.bitbucketbot.repository.PersonRepository;
-import org.sadtech.bot.bitbucketbot.service.PersonService;
-import org.sadtech.bot.bitbucketbot.service.Utils;
+import org.sadtech.bot.vcs.core.config.properties.BitbucketProperty;
+import org.sadtech.bot.vcs.core.domain.entity.Person;
+import org.sadtech.bot.vcs.core.exception.RegException;
+import org.sadtech.bot.vcs.core.repository.PersonRepository;
+import org.sadtech.bot.vcs.core.service.PersonService;
+import org.sadtech.bot.vcs.core.service.Utils;
import org.springframework.stereotype.Service;
import java.util.Collection;
@@ -50,7 +49,7 @@ public class PersonServiceImpl implements PersonService {
if (optUser.isPresent()) {
final Person oldUser = optUser.get();
if (oldUser.getTelegramId() == null) {
- Optional sheetJson = Utils.urlToJson(bitbucketProperty.getUrlPullRequestClose(), user.getToken(), PullRequestSheetJson.class);
+ Optional