Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
88 changes: 14 additions & 74 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,116 +2,56 @@
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
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>com.embabel.build</groupId>
<artifactId>embabel-build-parent</artifactId>
<version>0.1.0-SNAPSHOT</version>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>3.5.0</version>
<relativePath/> <!-- Lookup parent from repository -->
</parent>
<groupId>com.embabel.template</groupId>
<artifactId>ProjectName</artifactId>
<version>1.0.0-SNAPSHOT</version>
<version>0.1.0-SNAPSHOT</version>
<packaging>jar</packaging>
<name>My first agent</name>
<description>Generated agent project</description>

<properties>
<embabel-common.version>0.1.0-SNAPSHOT</embabel-common.version>
<embabel-agent-api.version>0.1.0-SNAPSHOT</embabel-agent-api.version>
<examples-common.version>0.1.0-SNAPSHOT</examples-common.version>

<java.version>21</java.version>
<embabel-agent.version>0.1.0-SNAPSHOT</embabel-agent.version>
</properties>

<!-- Embabel BOM(s) -->
<dependencyManagement>
<dependencies>
<!-- Embabel Agent BOM -->
<dependency>
<groupId>com.embabel.agent</groupId>
<artifactId>embabel-agent-dependencies</artifactId>
<version>${embabel-agent-api.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<!-- Embabel Common BOM -->
<dependency>
<groupId>com.embabel.common</groupId>
<artifactId>embabel-common-dependencies</artifactId>
<version>${embabel-common.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<!-- Embabel Common BOM For Unit Tests-->
<dependency>
<groupId>com.embabel.common</groupId>
<artifactId>embabel-common-test-dependencies</artifactId>
<version>${embabel-common.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>

<dependencies>

<!-- Main Dependencies -->
<dependency>
<groupId>com.embabel.agent</groupId>
<artifactId>embabel-agent-api</artifactId>
<artifactId>embabel-agent-starter</artifactId>
<version>${embabel-agent.version}</version>
</dependency>

<dependency>
<groupId>com.embabel.agent</groupId>
<artifactId>embabel-agent-test</artifactId>
<version>${embabel-agent.version}</version>
</dependency>


<dependency>
<groupId>com.embabel.common</groupId>
<artifactId>embabel-common-core</artifactId>
</dependency>

<dependency>
<groupId>com.embabel.common</groupId>
<artifactId>embabel-common-util</artifactId>
</dependency>

<dependency>
<groupId>com.embabel.common</groupId>
<artifactId>embabel-common-ai</artifactId>
</dependency>


<!-- Unit and Integration Testing -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>



</dependencies>

<build>
<plugins>
<!-- Production Build Plugins -->


<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<version>${spring-boot.version}</version>
</plugin>

<!-- Testing and Quality Build Plugins -->
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
</plugin>

</plugin>
</plugins>
</build>

Expand Down
24 changes: 1 addition & 23 deletions src/main/java/com/embabel/template/ProjectNameApplication.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,33 +15,11 @@
*/
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
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);
}
Expand Down