From b3c9f6352f61a4f67782dd62b4dd05936f1756a4 Mon Sep 17 00:00:00 2001 From: Mykola Rudyk Date: Fri, 8 Sep 2023 12:42:11 +0300 Subject: [PATCH] fix: modify default configuration to prevent service launch fails --- pom.xml | 2 +- .../com/lpvs/controller/GitHubWebhooksController.java | 1 - src/main/resources/application.properties | 10 ++++++++-- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/pom.xml b/pom.xml index 258842bd..d0f19e55 100644 --- a/pom.xml +++ b/pom.xml @@ -12,7 +12,7 @@ org.springframework.boot spring-boot-starter-parent - 2.7.10 + 2.7.15 diff --git a/src/main/java/com/lpvs/controller/GitHubWebhooksController.java b/src/main/java/com/lpvs/controller/GitHubWebhooksController.java index b161ae48..ef1a4352 100644 --- a/src/main/java/com/lpvs/controller/GitHubWebhooksController.java +++ b/src/main/java/com/lpvs/controller/GitHubWebhooksController.java @@ -39,7 +39,6 @@ public class GitHubWebhooksController { private String GITHUB_SECRET; - @Autowired ApplicationContext applicationContext; /** diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index 9da5f52c..e83c3cf9 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -14,9 +14,9 @@ license_conflict=db # GitHub settings # Corresponding env. variable LPVS_GITHUB_LOGIN -github.login= +github.login=test # Corresponding env. variable LPVS_GITHUB_TOKEN -github.token= +github.token=test # Corresponding env. variable LPVS_GITHUB_API_URL github.api.url=https://api.github.com # Corresponding env. variable LPVS_GITHUB_SECRET @@ -42,3 +42,9 @@ spring.datasource.url=jdbc:mysql://localhost:3306/lpvs spring.datasource.username= spring.datasource.password= +# Custom DB components name configuration +app.table.detectedLicenseName=detected_license +app.table.detectedLicenseSchema=soshub +app.table.diffFileName=code_licenses +app.table.pullRequestsName=lpvs_pull_requests +app.table.queueName=queue