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

This commit is contained in:
2026-07-04 11:35:13 +02:00
parent 752744c114
commit e705e05394
14 changed files with 41 additions and 30 deletions
@@ -1,4 +1,4 @@
package codes.thischwa.jvs;
package codes.thischwa.jdvs;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@@ -1,4 +1,4 @@
package codes.thischwa.jvs.config;
package codes.thischwa.jdvs.config;
import java.util.List;
import lombok.Data;
@@ -6,7 +6,7 @@ import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
@Configuration
@ConfigurationProperties(prefix = "jvs")
@ConfigurationProperties(prefix = "jdvs")
@Data
public class JvsConfig {
private String configPath;
@@ -1,4 +1,4 @@
package codes.thischwa.jvs.model;
package codes.thischwa.jdvs.model;
import jakarta.persistence.Column;
import jakarta.persistence.Entity;
@@ -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 org.springframework.data.jpa.repository.JpaRepository;
@@ -1,7 +1,7 @@
package codes.thischwa.jvs.service;
package codes.thischwa.jdvs.service;
import codes.thischwa.jvs.config.JvsConfig;
import codes.thischwa.jvs.model.GitRepository;
import codes.thischwa.jdvs.config.JvsConfig;
import codes.thischwa.jdvs.model.GitRepository;
import java.io.File;
import java.io.IOException;
import java.nio.file.Files;
@@ -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.File;
import java.io.IOException;
@@ -1,8 +1,8 @@
package codes.thischwa.jvs.service;
package codes.thischwa.jdvs.service;
import codes.thischwa.jvs.config.JvsConfig;
import codes.thischwa.jvs.model.GitRepository;
import codes.thischwa.jvs.repository.GitRepositoryRepository;
import codes.thischwa.jdvs.config.JvsConfig;
import codes.thischwa.jdvs.model.GitRepository;
import codes.thischwa.jdvs.repository.GitRepositoryRepository;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.dataformat.yaml.YAMLFactory;
import jakarta.annotation.PostConstruct;
@@ -1,8 +1,8 @@
package codes.thischwa.jvs.service;
package codes.thischwa.jdvs.service;
import codes.thischwa.jvs.config.JvsConfig;
import codes.thischwa.jvs.model.GitRepository;
import codes.thischwa.jvs.repository.GitRepositoryRepository;
import codes.thischwa.jdvs.config.JvsConfig;
import codes.thischwa.jdvs.model.GitRepository;
import codes.thischwa.jdvs.repository.GitRepositoryRepository;
import java.io.File;
import java.time.LocalDateTime;
import java.util.List;
@@ -26,12 +26,12 @@ public class UpdateScheduler {
@EventListener(ApplicationReadyEvent.class)
public void onApplicationReady() {
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();
}
}
@Scheduled(cron = "${jvs.cron}")
@Scheduled(cron = "${jdvs.cron}")
public void updateAll() {
log.info("Starting scheduled update of repositories...");
List<GitRepository> repos = repository.findAll();
@@ -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 org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
@@ -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 org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
+3 -3
View File
@@ -1,6 +1,6 @@
spring:
datasource:
url: jdbc:h2:file:./database/jvsdb
url: jdbc:h2:file:./database/jdvsdb
driverClassName: org.h2.Driver
username: sa
password: ""
@@ -9,8 +9,8 @@ spring:
hibernate:
ddl-auto: none
jvs:
config-path: ./jvs.yml
jdvs:
config-path: ./jdvs.yml
base-dir: ./javadoc-storage
cron: 0 0/15 * * * ?
run-on-start: false
+11
View File
@@ -0,0 +1,11 @@
___ _ _ _ _____
|_ | | | | | / ___|
| | __| | | | \ `--.
| |/ _` | | | |`--. \
/\__/ / (_| \ \_/ /\__/ /
\____/ \__,_|\___/\____/
$[application.title] ${application.version}
:: Spring Boot${spring-boot.formatted-version} ::
running on java ${java.version}