Skip to content
Permalink
Browse files
change dubbo compiler verison 0.0.4-SNAPSHOT
  • Loading branch information
EarthChen committed Sep 15, 2021
1 parent 817d4e8 commit 53cc1a2bed26f1b11d28c0001fb14301c0d9f6fd
Showing 11 changed files with 34 additions and 11 deletions.
@@ -31,15 +31,15 @@
<properties>
<source.level>1.8</source.level>
<target.level>1.8</target.level>
<dubbo.version>3.0.2</dubbo.version>
<dubbo.version>3.0.2.1</dubbo.version>
<grpc.version>1.40.1</grpc.version>
<junit.version>4.12</junit.version>
<spring-test.version>4.3.16.RELEASE</spring-test.version>
<maven-compiler-plugin.version>3.7.0</maven-compiler-plugin.version>
<maven-failsafe-plugin.version>2.21.0</maven-failsafe-plugin.version>
<spring-boot.version>1.5.13.RELEASE</spring-boot.version>
<protoc.version>3.7.1</protoc.version>
<dubbo.compiler.version>0.0.3</dubbo.compiler.version>
<dubbo.compiler.version>0.0.4-SNAPSHOT</dubbo.compiler.version>
</properties>

<dependencies>
@@ -34,6 +34,8 @@ public class TriSampleConstants {

public static final int DEFAULT_DUBBO_PORT = 20880;

public static final int CONSUMER_METADATA_SERVICE_PORT = 20881;

public static final String HOST = System.getProperty("provider.host", "127.0.0.1");

public static final String ZK_HOST = System.getProperty("zookeeper.host", "127.0.0.1");
@@ -25,7 +25,9 @@ public static void init() {
ref.setGeneric("true");
ref.setLazy(true);
DubboBootstrap bootstrap = DubboBootstrap.getInstance();
bootstrap.application(new ApplicationConfig("demo-consumer"))
ApplicationConfig applicationConfig = new ApplicationConfig(TriGenericTest.class.getName());
applicationConfig.setMetadataServicePort(TriSampleConstants.CONSUMER_METADATA_SERVICE_PORT);
bootstrap.application(applicationConfig)
.registry(new RegistryConfig(TriSampleConstants.ZK_ADDRESS))
.reference(ref)
.start();
@@ -28,7 +28,9 @@ public static void init() {
ref2.setTimeout(10000);

DubboBootstrap bootstrap = DubboBootstrap.getInstance();
bootstrap.application(new ApplicationConfig("demo-consumer"))
ApplicationConfig applicationConfig = new ApplicationConfig(TriPbConsumerTest.class.getName());
applicationConfig.setMetadataServicePort(TriSampleConstants.CONSUMER_METADATA_SERVICE_PORT);
bootstrap.application(applicationConfig)
.registry(new RegistryConfig(TriSampleConstants.ZK_ADDRESS))
.reference(ref)
.reference(ref2)
@@ -31,7 +31,9 @@ public static void initStub() {
ref.setLazy(true);

DubboBootstrap bootstrap = DubboBootstrap.getInstance();
bootstrap.application(new ApplicationConfig("demo-consumer"))
ApplicationConfig applicationConfig = new ApplicationConfig(TriWrapConsumerTest.class.getName());
applicationConfig.setMetadataServicePort(TriSampleConstants.CONSUMER_METADATA_SERVICE_PORT);
bootstrap.application(applicationConfig)
.registry(new RegistryConfig(TriSampleConstants.ZK_ADDRESS))
.reference(ref)
.start();
@@ -31,7 +31,9 @@ public static void init() {
ref2.setTimeout(10000);

DubboBootstrap bootstrap = DubboBootstrap.getInstance();
bootstrap.application(new ApplicationConfig("demo-consumer"))
ApplicationConfig applicationConfig = new ApplicationConfig(TriAppPbConsumerTest.class.getName());
applicationConfig.setMetadataServicePort(TriSampleConstants.CONSUMER_METADATA_SERVICE_PORT);
bootstrap.application(applicationConfig)
.registry(new RegistryConfig(TriSampleConstants.ZK_ADDRESS_MODE_INSTANCE))
.reference(ref)
.reference(ref2)
@@ -7,6 +7,7 @@
import org.apache.dubbo.config.bootstrap.DubboBootstrap;
import org.apache.dubbo.sample.tri.BaseTriWrapConsumerTest;
import org.apache.dubbo.sample.tri.TriSampleConstants;
import org.apache.dubbo.sample.tri.direct.TriDirectWrapConsumerTest;
import org.apache.dubbo.sample.tri.service.WrapGreeter;

import org.junit.BeforeClass;
@@ -23,7 +24,9 @@ public static void initStub() {
ref.setLazy(true);

DubboBootstrap bootstrap = DubboBootstrap.getInstance();
bootstrap.application(new ApplicationConfig("demo-consumer"))
ApplicationConfig applicationConfig = new ApplicationConfig(TriAppWrapConsumerTest.class.getName());
applicationConfig.setMetadataServicePort(TriSampleConstants.CONSUMER_METADATA_SERVICE_PORT);
bootstrap.application(applicationConfig)
.registry(new RegistryConfig(TriSampleConstants.ZK_ADDRESS_MODE_INSTANCE))
.reference(ref)
.start();
@@ -6,6 +6,7 @@
import org.apache.dubbo.config.bootstrap.DubboBootstrap;
import org.apache.dubbo.sample.tri.BasePbConsumerTest;
import org.apache.dubbo.sample.tri.PbGreeter;
import org.apache.dubbo.sample.tri.TriGenericTest;
import org.apache.dubbo.sample.tri.TriSampleConstants;
import org.apache.dubbo.sample.tri.service.PbGreeterManual;

@@ -32,7 +33,9 @@ public static void init() {
ref2.setTimeout(10000);

DubboBootstrap bootstrap = DubboBootstrap.getInstance();
bootstrap.application(new ApplicationConfig("demo-consumer"))
ApplicationConfig applicationConfig = new ApplicationConfig(TriDirectPbConsumerTest.class.getName());
applicationConfig.setMetadataServicePort(TriSampleConstants.CONSUMER_METADATA_SERVICE_PORT);
bootstrap.application(applicationConfig)
.reference(ref)
.reference(ref2)
.start();
@@ -23,7 +23,9 @@ public static void initStub() {
ref.setLazy(true);

DubboBootstrap bootstrap = DubboBootstrap.getInstance();
bootstrap.application(new ApplicationConfig("demo-consumer"))
ApplicationConfig applicationConfig = new ApplicationConfig(TriDirectWrapConsumerTest.class.getName());
applicationConfig.setMetadataServicePort(TriSampleConstants.CONSUMER_METADATA_SERVICE_PORT);
bootstrap.application(applicationConfig)
.reference(ref)
.start();
delegate = ref.get();
@@ -8,6 +8,7 @@
import org.apache.dubbo.sample.tri.BasePbConsumerTest;
import org.apache.dubbo.sample.tri.PbGreeter;
import org.apache.dubbo.sample.tri.TriSampleConstants;
import org.apache.dubbo.sample.tri.application.TriAppWrapConsumerTest;
import org.apache.dubbo.sample.tri.service.PbGreeterManual;

import org.junit.BeforeClass;
@@ -31,7 +32,9 @@ public static void init() {
ref2.setTimeout(10000);

DubboBootstrap bootstrap = DubboBootstrap.getInstance();
bootstrap.application(new ApplicationConfig("demo-consumer"))
ApplicationConfig applicationConfig = new ApplicationConfig(TriInterfacePbConsumerTest.class.getName());
applicationConfig.setMetadataServicePort(TriSampleConstants.CONSUMER_METADATA_SERVICE_PORT);
bootstrap.application(applicationConfig)
.registry(new RegistryConfig(TriSampleConstants.ZK_ADDRESS_MODE_INTERFACE))
.reference(ref)
.reference(ref2)
@@ -24,7 +24,9 @@ public static void initStub() {
ref.setLazy(true);

DubboBootstrap bootstrap = DubboBootstrap.getInstance();
bootstrap.application(new ApplicationConfig("demo-consumer"))
ApplicationConfig applicationConfig = new ApplicationConfig(TriInterfaceWrapConsumerTest.class.getName());
applicationConfig.setMetadataServicePort(TriSampleConstants.CONSUMER_METADATA_SERVICE_PORT);
bootstrap.application(applicationConfig)
.registry(new RegistryConfig(TriSampleConstants.ZK_ADDRESS_MODE_INTERFACE))
.reference(ref)
.start();

0 comments on commit 53cc1a2

Please sign in to comment.