Rename project from jvs to jdvs and update related configurations, package names, and resources accordingly
Build and Push Docker Image / build-and-push (push) Successful in 50s
Build and Push Docker Image / build-and-push (push) Successful in 50s
This commit is contained in:
+1
-1
@@ -38,4 +38,4 @@ build/
|
|||||||
## local ##
|
## local ##
|
||||||
/database/
|
/database/
|
||||||
/javadoc-storage/
|
/javadoc-storage/
|
||||||
/jvs.yml
|
/jdvs.yml
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.springframework.boot</groupId>
|
<groupId>org.springframework.boot</groupId>
|
||||||
<artifactId>spring-boot-starter-parent</artifactId>
|
<artifactId>spring-boot-starter-parent</artifactId>
|
||||||
<version>4.0.4</version>
|
<version>4.0.5</version>
|
||||||
<relativePath/>
|
<relativePath/>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
package codes.thischwa.jvs;
|
package codes.thischwa.jdvs;
|
||||||
|
|
||||||
import org.springframework.boot.SpringApplication;
|
import org.springframework.boot.SpringApplication;
|
||||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||||
+2
-2
@@ -1,4 +1,4 @@
|
|||||||
package codes.thischwa.jvs.config;
|
package codes.thischwa.jdvs.config;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
@@ -6,7 +6,7 @@ import org.springframework.boot.context.properties.ConfigurationProperties;
|
|||||||
import org.springframework.context.annotation.Configuration;
|
import org.springframework.context.annotation.Configuration;
|
||||||
|
|
||||||
@Configuration
|
@Configuration
|
||||||
@ConfigurationProperties(prefix = "jvs")
|
@ConfigurationProperties(prefix = "jdvs")
|
||||||
@Data
|
@Data
|
||||||
public class JvsConfig {
|
public class JvsConfig {
|
||||||
private String configPath;
|
private String configPath;
|
||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
package codes.thischwa.jvs.model;
|
package codes.thischwa.jdvs.model;
|
||||||
|
|
||||||
import jakarta.persistence.Column;
|
import jakarta.persistence.Column;
|
||||||
import jakarta.persistence.Entity;
|
import jakarta.persistence.Entity;
|
||||||
+2
-2
@@ -1,6 +1,6 @@
|
|||||||
package codes.thischwa.jvs.repository;
|
package codes.thischwa.jdvs.repository;
|
||||||
|
|
||||||
import codes.thischwa.jvs.model.GitRepository;
|
import codes.thischwa.jdvs.model.GitRepository;
|
||||||
import java.util.Optional;
|
import java.util.Optional;
|
||||||
import org.springframework.data.jpa.repository.JpaRepository;
|
import org.springframework.data.jpa.repository.JpaRepository;
|
||||||
|
|
||||||
+3
-3
@@ -1,7 +1,7 @@
|
|||||||
package codes.thischwa.jvs.service;
|
package codes.thischwa.jdvs.service;
|
||||||
|
|
||||||
import codes.thischwa.jvs.config.JvsConfig;
|
import codes.thischwa.jdvs.config.JvsConfig;
|
||||||
import codes.thischwa.jvs.model.GitRepository;
|
import codes.thischwa.jdvs.model.GitRepository;
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.nio.file.Files;
|
import java.nio.file.Files;
|
||||||
+2
-2
@@ -1,6 +1,6 @@
|
|||||||
package codes.thischwa.jvs.service;
|
package codes.thischwa.jdvs.service;
|
||||||
|
|
||||||
import codes.thischwa.jvs.config.JvsConfig;
|
import codes.thischwa.jdvs.config.JvsConfig;
|
||||||
import java.io.BufferedReader;
|
import java.io.BufferedReader;
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
+4
-4
@@ -1,8 +1,8 @@
|
|||||||
package codes.thischwa.jvs.service;
|
package codes.thischwa.jdvs.service;
|
||||||
|
|
||||||
import codes.thischwa.jvs.config.JvsConfig;
|
import codes.thischwa.jdvs.config.JvsConfig;
|
||||||
import codes.thischwa.jvs.model.GitRepository;
|
import codes.thischwa.jdvs.model.GitRepository;
|
||||||
import codes.thischwa.jvs.repository.GitRepositoryRepository;
|
import codes.thischwa.jdvs.repository.GitRepositoryRepository;
|
||||||
import com.fasterxml.jackson.databind.ObjectMapper;
|
import com.fasterxml.jackson.databind.ObjectMapper;
|
||||||
import com.fasterxml.jackson.dataformat.yaml.YAMLFactory;
|
import com.fasterxml.jackson.dataformat.yaml.YAMLFactory;
|
||||||
import jakarta.annotation.PostConstruct;
|
import jakarta.annotation.PostConstruct;
|
||||||
+6
-6
@@ -1,8 +1,8 @@
|
|||||||
package codes.thischwa.jvs.service;
|
package codes.thischwa.jdvs.service;
|
||||||
|
|
||||||
import codes.thischwa.jvs.config.JvsConfig;
|
import codes.thischwa.jdvs.config.JvsConfig;
|
||||||
import codes.thischwa.jvs.model.GitRepository;
|
import codes.thischwa.jdvs.model.GitRepository;
|
||||||
import codes.thischwa.jvs.repository.GitRepositoryRepository;
|
import codes.thischwa.jdvs.repository.GitRepositoryRepository;
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.time.LocalDateTime;
|
import java.time.LocalDateTime;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
@@ -26,12 +26,12 @@ public class UpdateScheduler {
|
|||||||
@EventListener(ApplicationReadyEvent.class)
|
@EventListener(ApplicationReadyEvent.class)
|
||||||
public void onApplicationReady() {
|
public void onApplicationReady() {
|
||||||
if (jvsConfig.isRunOnStart()) {
|
if (jvsConfig.isRunOnStart()) {
|
||||||
log.info("'jvs.run-on-start' is enabled – running initial update.");
|
log.info("'jdvs.run-on-start' is enabled – running initial update.");
|
||||||
updateAll();
|
updateAll();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Scheduled(cron = "${jvs.cron}")
|
@Scheduled(cron = "${jdvs.cron}")
|
||||||
public void updateAll() {
|
public void updateAll() {
|
||||||
log.info("Starting scheduled update of repositories...");
|
log.info("Starting scheduled update of repositories...");
|
||||||
List<GitRepository> repos = repository.findAll();
|
List<GitRepository> repos = repository.findAll();
|
||||||
+2
-2
@@ -1,6 +1,6 @@
|
|||||||
package codes.thischwa.jvs.web;
|
package codes.thischwa.jdvs.web;
|
||||||
|
|
||||||
import codes.thischwa.jvs.repository.GitRepositoryRepository;
|
import codes.thischwa.jdvs.repository.GitRepositoryRepository;
|
||||||
import lombok.RequiredArgsConstructor;
|
import lombok.RequiredArgsConstructor;
|
||||||
import org.springframework.stereotype.Controller;
|
import org.springframework.stereotype.Controller;
|
||||||
import org.springframework.ui.Model;
|
import org.springframework.ui.Model;
|
||||||
+2
-2
@@ -1,6 +1,6 @@
|
|||||||
package codes.thischwa.jvs.web;
|
package codes.thischwa.jdvs.web;
|
||||||
|
|
||||||
import codes.thischwa.jvs.config.JvsConfig;
|
import codes.thischwa.jdvs.config.JvsConfig;
|
||||||
import java.nio.file.Path;
|
import java.nio.file.Path;
|
||||||
import org.springframework.context.annotation.Configuration;
|
import org.springframework.context.annotation.Configuration;
|
||||||
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
|
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
spring:
|
spring:
|
||||||
datasource:
|
datasource:
|
||||||
url: jdbc:h2:file:./database/jvsdb
|
url: jdbc:h2:file:./database/jdvsdb
|
||||||
driverClassName: org.h2.Driver
|
driverClassName: org.h2.Driver
|
||||||
username: sa
|
username: sa
|
||||||
password: ""
|
password: ""
|
||||||
@@ -9,8 +9,8 @@ spring:
|
|||||||
hibernate:
|
hibernate:
|
||||||
ddl-auto: none
|
ddl-auto: none
|
||||||
|
|
||||||
jvs:
|
jdvs:
|
||||||
config-path: ./jvs.yml
|
config-path: ./jdvs.yml
|
||||||
base-dir: ./javadoc-storage
|
base-dir: ./javadoc-storage
|
||||||
cron: 0 0/15 * * * ?
|
cron: 0 0/15 * * * ?
|
||||||
run-on-start: false
|
run-on-start: false
|
||||||
|
|||||||
@@ -0,0 +1,11 @@
|
|||||||
|
|
||||||
|
___ _ _ _ _____
|
||||||
|
|_ | | | | | / ___|
|
||||||
|
| | __| | | | \ `--.
|
||||||
|
| |/ _` | | | |`--. \
|
||||||
|
/\__/ / (_| \ \_/ /\__/ /
|
||||||
|
\____/ \__,_|\___/\____/
|
||||||
|
|
||||||
|
$[application.title] ${application.version}
|
||||||
|
:: Spring Boot${spring-boot.formatted-version} ::
|
||||||
|
running on java ${java.version}
|
||||||
Reference in New Issue
Block a user