chore(project): remove legacy module Partner-Test-Demo

This commit is contained in:
2026-03-10 15:04:16 +08:00
parent 331d415925
commit 0f3d4659ae
16 changed files with 5 additions and 252 deletions

5
.idea/misc.xml generated
View File

@@ -32,6 +32,11 @@
<option value="$PROJECT_DIR$/PartnerExecutor/pom.xml" />
</list>
</option>
<option name="ignoredFiles">
<set>
<option value="$PROJECT_DIR$/Partner-Test-Demo/pom.xml" />
</set>
</option>
</component>
<component name="PWA">
<option name="enabled" value="true" />

View File

@@ -1,56 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<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 http://maven.apache.org/maven-v4_0_0.xsd">
<parent>
<artifactId>Partner</artifactId>
<groupId>work.slhaf</groupId>
<version>0.5.0</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>Partner-Test-Demo</artifactId>
<build>
<plugins>
<plugin>
<artifactId>maven-jar-plugin</artifactId>
<version>3.2.0</version>
<configuration>
<archive>
<manifest>
<mainClass>work.slhaf.demo.AgentDemoApplication</mainClass>
</manifest>
</archive>
</configuration>
</plugin>
<plugin>
<artifactId>maven-shade-plugin</artifactId>
<version>3.4.1</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<transformers>
<transformer>
<mainClass>work.slhaf.demo.AgentDemoApplication</mainClass>
</transformer>
</transformers>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<skipTests>true</skipTests>
</configuration>
</plugin>
</plugins>
</build>
<properties>
<maven.compiler.target>21</maven.compiler.target>
<maven.compiler.source>21</maven.compiler.source>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
</project>

View File

@@ -1,74 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<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 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>work.slhaf</groupId>
<artifactId>Partner</artifactId>
<version>0.5.0</version>
</parent>
<artifactId>Partner-Test-Demo</artifactId>
<dependencies>
<dependency>
<groupId>work.slhaf</groupId>
<artifactId>Partner-Framework</artifactId>
<version>0.5.0</version>
</dependency>
</dependencies>
<properties>
<maven.compiler.source>21</maven.compiler.source>
<maven.compiler.target>21</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>3.2.0</version>
<configuration>
<archive>
<manifest>
<mainClass>work.slhaf.demo.AgentDemoApplication</mainClass>
</manifest>
</archive>
</configuration>
</plugin>
<!-- 添加 maven-shade-plugin 插件 -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.4.1</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<transformers>
<transformer
implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
<mainClass>work.slhaf.demo.AgentDemoApplication</mainClass>
</transformer>
</transformers>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<skipTests>true</skipTests>
</configuration>
</plugin>
</plugins>
</build>
</project>

View File

@@ -1,8 +0,0 @@
package work.slhaf.demo;
public class AgentDemoApplication {
public static void main(String[] args) {
}
}

View File

@@ -1,6 +0,0 @@
package work.slhaf.demo.flow;
import work.slhaf.partner.api.agent.runtime.interaction.flow.RunningFlowContext;
public class AgentDemoFlowContext extends RunningFlowContext {
}

View File

@@ -1,4 +0,0 @@
package work.slhaf.demo.module;
public class ATestModule {
}

View File

@@ -1,10 +0,0 @@
package work.slhaf.demo.service.capability;
import work.slhaf.partner.api.agent.factory.capability.annotation.Capability;
@Capability("test_a")
public interface ATestCapability {
void testMethodNormalA();
String testMethodNormalB();
}

View File

@@ -1,8 +0,0 @@
package work.slhaf.demo.service.capability;
import work.slhaf.partner.api.agent.factory.capability.annotation.Capability;
@Capability("test_b")
public interface BTestCapability {
void testMethodNormalA();
}

View File

@@ -1,9 +0,0 @@
package work.slhaf.demo.service.capability;
import work.slhaf.partner.api.agent.factory.capability.annotation.Capability;
@Capability("test_c")
public interface CTestCapability {
void testMethodNormalA(String input);
}

View File

@@ -1,19 +0,0 @@
package work.slhaf.demo.service.core;
import work.slhaf.partner.api.agent.factory.capability.annotation.CapabilityCore;
import work.slhaf.partner.api.agent.factory.capability.annotation.CapabilityMethod;
@CapabilityCore("test_a")
public class ATestCore {
@CapabilityMethod
public void testMethodNormalA() {
System.out.println("ATestCore::testMethodNormalA");
}
@CapabilityMethod
public String testMethodNormalB() {
return "ATestCore::testMethodNormalB";
}
}

View File

@@ -1,17 +0,0 @@
package work.slhaf.demo.service.core;
import work.slhaf.partner.api.agent.factory.capability.annotation.CapabilityCore;
import work.slhaf.partner.api.agent.factory.capability.annotation.CapabilityMethod;
@CapabilityCore("test_b")
public class BTestCore {
@CapabilityMethod
public void testMethodNormalA() {
System.out.println("BTestCore::testMethodNormalA");
}
public String testCoordinateSubMethod() {
return "BTestCore::testMethodCoordinate";
}
}

View File

@@ -1,17 +0,0 @@
package work.slhaf.demo.service.core;
import work.slhaf.partner.api.agent.factory.capability.annotation.CapabilityCore;
import work.slhaf.partner.api.agent.factory.capability.annotation.CapabilityMethod;
@CapabilityCore("test_c")
public class CTestCore {
@CapabilityMethod
public void testMethodNormalA(String input) {
System.out.println("CTestCore::testMethodNormalA, input: " + input);
}
public void testCoordinateSubMethod(String input) {
System.out.println("CTestCore::testMethodCoordinate, input: " + input);
}
}

View File

@@ -1,5 +0,0 @@
public interface InterfaceTest {
default String getName() {
return "111";
}
}

View File

@@ -1,9 +0,0 @@
public class TestA {
public static void main(String[] args) {
try {
int a = 1 / 0;
} catch (Exception ignore) {
}
System.out.println("111");
}
}

View File

@@ -1,9 +0,0 @@
import org.junit.jupiter.api.Test;
public class TestImpl implements InterfaceTest {
@Test
public void test() {
System.out.println(getName());
}
}

View File

@@ -9,7 +9,6 @@
<version>0.5.0</version>
<packaging>pom</packaging>
<modules>
<module>Partner-Test-Demo</module>
<module>Partner-Core</module>
<module>Partner-Framework</module>
<module>Partner-SandboxRunner</module>