diff --git a/tool/current-time/pom.xml b/tool/current-time/pom.xml deleted file mode 100644 index 4d64559..0000000 --- a/tool/current-time/pom.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - 4.0.0 - - ru.ldeloff - tool - 0.0.1-SNAPSHOT - - - current-time - 0.0.1-SNAPSHOT - current-time - current-time - - diff --git a/tool/current-time/src/main/java/ru/ldeloff/currenttime/CurrentTimeApplication.java b/tool/current-time/src/main/java/ru/ldeloff/currenttime/CurrentTimeApplication.java deleted file mode 100644 index 0eb3f8f..0000000 --- a/tool/current-time/src/main/java/ru/ldeloff/currenttime/CurrentTimeApplication.java +++ /dev/null @@ -1,13 +0,0 @@ -package ru.ldeloff.currenttime; - -import org.springframework.boot.SpringApplication; -import org.springframework.boot.autoconfigure.SpringBootApplication; - -@SpringBootApplication -public class CurrentTimeApplication { - - public static void main(String[] args) { - SpringApplication.run(CurrentTimeApplication.class, args); - } - -} diff --git a/tool/current-time/src/main/java/ru/ldeloff/currenttime/tool/CurrentTimeTool.java b/tool/current-time/src/main/java/ru/ldeloff/currenttime/tool/CurrentTimeTool.java deleted file mode 100644 index e747fcc..0000000 --- a/tool/current-time/src/main/java/ru/ldeloff/currenttime/tool/CurrentTimeTool.java +++ /dev/null @@ -1,18 +0,0 @@ -package ru.ldeloff.currenttime.tool; - -import lombok.extern.slf4j.Slf4j; -import org.springframework.ai.tool.annotation.Tool; -import org.springframework.stereotype.Component; - -import java.time.LocalDateTime; - -@Slf4j -@Component -public class CurrentTimeTool { - - @Tool(description = "Get the current date in the ISO-8601 format yyyy-MM-dd HH:MM:ss") - String getCurrentDate() { - log.info("Getting current datetime: {}", LocalDateTime.now()); - return LocalDateTime.now().toString(); - } -} \ No newline at end of file diff --git a/tool/current-time/src/main/resources/application.properties b/tool/current-time/src/main/resources/application.properties deleted file mode 100644 index 661325f..0000000 --- a/tool/current-time/src/main/resources/application.properties +++ /dev/null @@ -1 +0,0 @@ -spring.application.name=current-time diff --git a/tool/pom.xml b/tool/pom.xml deleted file mode 100644 index accb03c..0000000 --- a/tool/pom.xml +++ /dev/null @@ -1,101 +0,0 @@ - - - 4.0.0 - - - current-time - - - - org.springframework.boot - spring-boot-starter-parent - 3.5.9 - - - - ru.ldeloff - tool - 0.0.1-SNAPSHOT - tool - tool - pom - - - - - - - - 25 - 1.1.2 - - - - - org.springframework.boot - spring-boot-starter-webflux - - - org.springframework.ai - spring-ai-starter-mcp-server-webflux - - - - org.projectlombok - lombok - true - - - org.springframework.boot - spring-boot-starter-test - test - - - io.projectreactor - reactor-test - test - - - - - - org.springframework.ai - spring-ai-bom - ${spring-ai.version} - pom - import - - - - - - - - org.apache.maven.plugins - maven-compiler-plugin - - - - org.projectlombok - lombok - - - - - - org.springframework.boot - spring-boot-maven-plugin - - - - org.projectlombok - lombok - - - - - - - -