From a87da46af9ca386ee10463c98aa5c3094466d302 Mon Sep 17 00:00:00 2001 From: alexheifetz Date: Tue, 17 Jun 2025 18:12:34 -0400 Subject: [PATCH 1/3] Add embabel-agent-starter. --- pom.xml | 68 ++----------------- .../template/ProjectNameApplication.java | 24 +------ 2 files changed, 8 insertions(+), 84 deletions(-) diff --git a/pom.xml b/pom.xml index f271cdd..aefe54f 100644 --- a/pom.xml +++ b/pom.xml @@ -15,70 +15,25 @@ Generated agent project - 0.1.0-SNAPSHOT - 0.1.0-SNAPSHOT - 0.1.0-SNAPSHOT - + 0.1.0-SNAPSHOT - - - - - - com.embabel.agent - embabel-agent-dependencies - ${embabel-agent-api.version} - pom - import - - - - com.embabel.common - embabel-common-dependencies - ${embabel-common.version} - pom - import - - - - com.embabel.common - embabel-common-test-dependencies - ${embabel-common.version} - pom - import - - - - + com.embabel.agent - embabel-agent-api + embabel-agent-starter + ${embabel-agent.version} com.embabel.agent embabel-agent-test + ${embabel-agent.version} - - - com.embabel.common - embabel-common-core - - - - com.embabel.common - embabel-common-util - - - - com.embabel.common - embabel-common-ai - - + org.springframework.boot @@ -86,27 +41,16 @@ test - - - - - org.springframework.boot spring-boot-maven-plugin ${spring-boot.version} - - - org.jacoco - jacoco-maven-plugin - - org.apache.maven.plugins maven-surefire-plugin diff --git a/src/main/java/com/embabel/template/ProjectNameApplication.java b/src/main/java/com/embabel/template/ProjectNameApplication.java index 6d32326..06ac22b 100644 --- a/src/main/java/com/embabel/template/ProjectNameApplication.java +++ b/src/main/java/com/embabel/template/ProjectNameApplication.java @@ -15,33 +15,13 @@ */ package com.embabel.template; -import com.embabel.common.util.WinUtils; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.context.properties.ConfigurationPropertiesScan; -@SpringBootApplication( - scanBasePackages = { - "com.embabel.agent", - "com.embabel.template" - } -) -@ConfigurationPropertiesScan( - basePackages = { - "com.embabel.agent", - "com.embabel.template" - } -) +@SpringBootApplication +@ConfigurationPropertiesScan("com.embabel.template") class ProjectNameApplication { - - static { - if (WinUtils.IS_OS_WINDOWS()) { - // Set console to UTF-8 on Windows - // This is necessary to display non-ASCII characters correctly - WinUtils.CHCP_TO_UTF8(); - } - } - public static void main(String[] args) { SpringApplication.run(ProjectNameApplication.class, args); } From b40f0437d1662a1109e36e8c9eb7687803413f94 Mon Sep 17 00:00:00 2001 From: alexheifetz Date: Wed, 18 Jun 2025 03:19:08 -0400 Subject: [PATCH 2/3] Switch to Boot Parent POM --- pom.xml | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/pom.xml b/pom.xml index aefe54f..1401d8c 100644 --- a/pom.xml +++ b/pom.xml @@ -2,19 +2,22 @@ 4.0.0 + - com.embabel.build - embabel-build-parent - 0.1.0-SNAPSHOT + org.springframework.boot + spring-boot-starter-parent + 3.4.3 + com.embabel.template ProjectName - 1.0.0-SNAPSHOT + 0.1.0-SNAPSHOT jar My first agent Generated agent project + 21 0.1.0-SNAPSHOT @@ -48,14 +51,7 @@ org.springframework.boot spring-boot-maven-plugin - ${spring-boot.version} - - - - org.apache.maven.plugins - maven-surefire-plugin - - + From 13f6c2ef1a8095d8e780f57a69dfe05baa5c4ce6 Mon Sep 17 00:00:00 2001 From: alexheifetz Date: Wed, 18 Jun 2025 05:06:54 -0400 Subject: [PATCH 3/3] Upgrade to boot 3.5.0 --- pom.xml | 2 +- src/main/java/com/embabel/template/ProjectNameApplication.java | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/pom.xml b/pom.xml index 1401d8c..a202782 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ org.springframework.boot spring-boot-starter-parent - 3.4.3 + 3.5.0 com.embabel.template diff --git a/src/main/java/com/embabel/template/ProjectNameApplication.java b/src/main/java/com/embabel/template/ProjectNameApplication.java index 06ac22b..bd8a71a 100644 --- a/src/main/java/com/embabel/template/ProjectNameApplication.java +++ b/src/main/java/com/embabel/template/ProjectNameApplication.java @@ -17,10 +17,8 @@ import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; -import org.springframework.boot.context.properties.ConfigurationPropertiesScan; @SpringBootApplication -@ConfigurationPropertiesScan("com.embabel.template") class ProjectNameApplication { public static void main(String[] args) { SpringApplication.run(ProjectNameApplication.class, args);