mirror of
https://github.com/slhaf/Partner.git
synced 2026-05-12 16:53:04 +08:00
chore(project): remove legacy module Partner-Test-Demo
This commit is contained in:
5
.idea/misc.xml
generated
5
.idea/misc.xml
generated
@@ -32,6 +32,11 @@
|
|||||||
<option value="$PROJECT_DIR$/PartnerExecutor/pom.xml" />
|
<option value="$PROJECT_DIR$/PartnerExecutor/pom.xml" />
|
||||||
</list>
|
</list>
|
||||||
</option>
|
</option>
|
||||||
|
<option name="ignoredFiles">
|
||||||
|
<set>
|
||||||
|
<option value="$PROJECT_DIR$/Partner-Test-Demo/pom.xml" />
|
||||||
|
</set>
|
||||||
|
</option>
|
||||||
</component>
|
</component>
|
||||||
<component name="PWA">
|
<component name="PWA">
|
||||||
<option name="enabled" value="true" />
|
<option name="enabled" value="true" />
|
||||||
|
|||||||
@@ -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>
|
|
||||||
@@ -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>
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
package work.slhaf.demo;
|
|
||||||
|
|
||||||
|
|
||||||
public class AgentDemoApplication {
|
|
||||||
public static void main(String[] args) {
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
package work.slhaf.demo.flow;
|
|
||||||
|
|
||||||
import work.slhaf.partner.api.agent.runtime.interaction.flow.RunningFlowContext;
|
|
||||||
|
|
||||||
public class AgentDemoFlowContext extends RunningFlowContext {
|
|
||||||
}
|
|
||||||
@@ -1,4 +0,0 @@
|
|||||||
package work.slhaf.demo.module;
|
|
||||||
|
|
||||||
public class ATestModule {
|
|
||||||
}
|
|
||||||
@@ -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();
|
|
||||||
}
|
|
||||||
@@ -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();
|
|
||||||
}
|
|
||||||
@@ -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);
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -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";
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -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";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -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);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
public interface InterfaceTest {
|
|
||||||
default String getName() {
|
|
||||||
return "111";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -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");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
import org.junit.jupiter.api.Test;
|
|
||||||
|
|
||||||
public class TestImpl implements InterfaceTest {
|
|
||||||
|
|
||||||
@Test
|
|
||||||
public void test() {
|
|
||||||
System.out.println(getName());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
1
pom.xml
1
pom.xml
@@ -9,7 +9,6 @@
|
|||||||
<version>0.5.0</version>
|
<version>0.5.0</version>
|
||||||
<packaging>pom</packaging>
|
<packaging>pom</packaging>
|
||||||
<modules>
|
<modules>
|
||||||
<module>Partner-Test-Demo</module>
|
|
||||||
<module>Partner-Core</module>
|
<module>Partner-Core</module>
|
||||||
<module>Partner-Framework</module>
|
<module>Partner-Framework</module>
|
||||||
<module>Partner-SandboxRunner</module>
|
<module>Partner-SandboxRunner</module>
|
||||||
|
|||||||
Reference in New Issue
Block a user