mirror of
https://github.com/slhaf/Partner.git
synced 2026-05-12 16:53:04 +08:00
refactor(project): normalize formatting and reorder class members across modules
This commit is contained in:
@@ -1,55 +1,56 @@
|
||||
<?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 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 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,6 +1,6 @@
|
||||
<?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"
|
||||
<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>
|
||||
@@ -52,7 +52,8 @@
|
||||
</goals>
|
||||
<configuration>
|
||||
<transformers>
|
||||
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
|
||||
<transformer
|
||||
implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
|
||||
<mainClass>work.slhaf.demo.AgentDemoApplication</mainClass>
|
||||
</transformer>
|
||||
</transformers>
|
||||
|
||||
@@ -11,7 +11,7 @@ public class TestCoordinateManager {
|
||||
private CTestCore cTestCore = new CTestCore();
|
||||
|
||||
@Coordinated(capability = "test_c")
|
||||
public void testMethodCoordinate(String input){
|
||||
public void testMethodCoordinate(String input) {
|
||||
String resultB = bTestCore.testCoordinateSubMethod();
|
||||
cTestCore.testCoordinateSubMethod(resultB);
|
||||
}
|
||||
|
||||
@@ -5,5 +5,6 @@ import work.slhaf.partner.api.agent.factory.capability.annotation.Capability;
|
||||
@Capability("test_a")
|
||||
public interface ATestCapability {
|
||||
void testMethodNormalA();
|
||||
|
||||
String testMethodNormalB();
|
||||
}
|
||||
|
||||
@@ -7,12 +7,12 @@ import work.slhaf.partner.api.agent.factory.capability.annotation.CapabilityMeth
|
||||
public class ATestCore {
|
||||
|
||||
@CapabilityMethod
|
||||
public void testMethodNormalA(){
|
||||
public void testMethodNormalA() {
|
||||
System.out.println("ATestCore::testMethodNormalA");
|
||||
}
|
||||
|
||||
@CapabilityMethod
|
||||
public String testMethodNormalB(){
|
||||
public String testMethodNormalB() {
|
||||
return "ATestCore::testMethodNormalB";
|
||||
}
|
||||
|
||||
|
||||
@@ -7,11 +7,11 @@ import work.slhaf.partner.api.agent.factory.capability.annotation.CapabilityMeth
|
||||
public class BTestCore {
|
||||
|
||||
@CapabilityMethod
|
||||
public void testMethodNormalA(){
|
||||
public void testMethodNormalA() {
|
||||
System.out.println("BTestCore::testMethodNormalA");
|
||||
}
|
||||
|
||||
public String testCoordinateSubMethod(){
|
||||
public String testCoordinateSubMethod() {
|
||||
return "BTestCore::testMethodCoordinate";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -7,11 +7,11 @@ import work.slhaf.partner.api.agent.factory.capability.annotation.CapabilityMeth
|
||||
public class CTestCore {
|
||||
|
||||
@CapabilityMethod
|
||||
public void testMethodNormalA(String input){
|
||||
public void testMethodNormalA(String input) {
|
||||
System.out.println("CTestCore::testMethodNormalA, input: " + input);
|
||||
}
|
||||
|
||||
public void testCoordinateSubMethod(String input){
|
||||
public void testCoordinateSubMethod(String input) {
|
||||
System.out.println("CTestCore::testMethodCoordinate, input: " + input);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
public interface InterfaceTest {
|
||||
default String getName(){
|
||||
default String getName() {
|
||||
return "111";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@ public class TestA {
|
||||
public static void main(String[] args) {
|
||||
try {
|
||||
int a = 1 / 0;
|
||||
}catch (Exception ignore) {
|
||||
} catch (Exception ignore) {
|
||||
}
|
||||
System.out.println("111");
|
||||
}
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
public class TestImpl implements InterfaceTest{
|
||||
public class TestImpl implements InterfaceTest {
|
||||
|
||||
@Test
|
||||
public void test(){
|
||||
public void test() {
|
||||
System.out.println(getName());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user