Skip to content
Permalink
Browse files
chore: refactor fold's structure
  • Loading branch information
plusmancn committed Sep 14, 2021
1 parent 62d9c8c commit 8a189893cdbaa0907ec1b1625b13ed92de2f2453
Showing 9 changed files with 41 additions and 14 deletions.
@@ -0,0 +1,19 @@
<?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/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>dubbo-samples-migration</artifactId>
<groupId>org.apache.dubbo</groupId>
<version>1.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>

<artifactId>dubbo-samples-migration-api</artifactId>

<properties>
<maven.compiler.source>8</maven.compiler.source>
<maven.compiler.target>8</maven.compiler.target>
</properties>

</project>
@@ -14,10 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.dubbo.migration;

import org.apache.dubbo.migration.pojo.HelloReply;
import org.apache.dubbo.migration.pojo.HelloRequest;
package org.apache.dubbo.migration.api;

public interface GreeterService {

@@ -1,4 +1,4 @@
package org.apache.dubbo.migration.pojo;
package org.apache.dubbo.migration.api;

import java.io.Serializable;

@@ -1,4 +1,4 @@
package org.apache.dubbo.migration.pojo;
package org.apache.dubbo.migration.api;

import java.io.Serializable;

@@ -24,4 +24,12 @@
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>org.apache.dubbo</groupId>
<artifactId>dubbo-samples-migration-api</artifactId>
<version>1.0-SNAPSHOT</version>
<scope>compile</scope>
</dependency>
</dependencies>
</project>
@@ -17,8 +17,9 @@
package org.apache.dubbo.migration;


import org.apache.dubbo.migration.pojo.HelloReply;
import org.apache.dubbo.migration.pojo.HelloRequest;
import org.apache.dubbo.migration.api.GreeterService;
import org.apache.dubbo.migration.api.HelloReply;
import org.apache.dubbo.migration.api.HelloRequest;

public class GreeterServiceImpl implements GreeterService {

@@ -22,9 +22,10 @@
import org.apache.dubbo.config.ServiceConfig;
import org.apache.dubbo.config.bootstrap.DubboBootstrap;
import org.apache.dubbo.migration.EmbeddedZooKeeper;
import org.apache.dubbo.migration.GreeterService;
import org.apache.dubbo.migration.GreeterServiceImpl;

import org.apache.dubbo.migration.api.GreeterService;

public class ApiProvider {
public static void main(String[] args) throws InterruptedException {
String curProtocol = System.getProperty("dubbo.current.protocol", "tri");
@@ -1,12 +1,12 @@
package org.apache.dubbo.migration;

import org.apache.dubbo.common.constants.CommonConstants;
import org.apache.dubbo.config.ApplicationConfig;
import org.apache.dubbo.config.ReferenceConfig;
import org.apache.dubbo.config.RegistryConfig;
import org.apache.dubbo.config.bootstrap.DubboBootstrap;
import org.apache.dubbo.migration.pojo.HelloReply;
import org.apache.dubbo.migration.pojo.HelloRequest;
import org.apache.dubbo.migration.api.GreeterService;
import org.apache.dubbo.migration.api.HelloReply;
import org.apache.dubbo.migration.api.HelloRequest;

import org.junit.Assert;
import org.junit.Test;
@@ -10,14 +10,15 @@
<version>1.0-SNAPSHOT</version>
<modules>
<module>dubbo-samples-migration-default</module>
<module>dubbo-samples-migration-api</module>
</modules>

<properties>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<!-- <dubbo.version>3.0.2.1</dubbo.version>-->
<dubbo.version>3.0.2.1</dubbo.version>
<!-- <dubbo.version>3.0.3-SNAPSHOT</dubbo.version>-->
<dubbo.version>2.7.13</dubbo.version>
<!-- <dubbo.version>2.7.13</dubbo.version>-->
<junit.version>4.12</junit.version>
<maven-compiler-plugin.version>3.7.0</maven-compiler-plugin.version>
<source.level>1.8</source.level>

0 comments on commit 8a18989

Please sign in to comment.