рефактор

This commit is contained in:
2025-12-30 15:50:44 +03:00
parent bf7aacb1a7
commit 5014b45978
5 changed files with 0 additions and 149 deletions

View File

@@ -1,16 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>ru.ldeloff</groupId>
<artifactId>tool</artifactId>
<version>0.0.1-SNAPSHOT</version>
</parent>
<artifactId>current-time</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>current-time</name>
<description>current-time</description>
</project>

View File

@@ -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);
}
}

View File

@@ -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();
}
}

View File

@@ -1 +0,0 @@
spring.application.name=current-time

View File

@@ -1,101 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<modules>
<module>current-time</module>
</modules>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>3.5.9</version>
<relativePath />
</parent>
<groupId>ru.ldeloff</groupId>
<artifactId>tool</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>tool</name>
<description>tool</description>
<packaging>pom</packaging>
<url/>
<licenses> <license/> </licenses>
<developers> <developer/> </developers>
<scm> <connection/> <developerConnection/> <tag/> <url/> </scm>
<properties>
<java.version>25</java.version>
<spring-ai.version>1.1.2</spring-ai.version>
</properties>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-webflux</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.ai</groupId>
<artifactId>spring-ai-starter-mcp-server-webflux</artifactId>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>io.projectreactor</groupId>
<artifactId>reactor-test</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.ai</groupId>
<artifactId>spring-ai-bom</artifactId>
<version>${spring-ai.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<annotationProcessorPaths>
<path>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
</path>
</annotationProcessorPaths>
</configuration>
</plugin>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<excludes>
<exclude>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
</exclude>
</excludes>
</configuration>
</plugin>
</plugins>
</build>
</project>