feat:release 1.3.0-Hoxton.SR9.

pull/125/head
SkyeBeFreeman 3 years ago
parent 9475f75435
commit 3be97408da

@ -85,7 +85,7 @@
<properties> <properties>
<!-- Project revision --> <!-- Project revision -->
<revision>1.3.0-Hoxton.SR9-SNAPSHOT</revision> <revision>1.3.0-Hoxton.SR9</revision>
<!-- Spring Cloud --> <!-- Spring Cloud -->
<spring.cloud.version>Hoxton.SR9</spring.cloud.version> <spring.cloud.version>Hoxton.SR9</spring.cloud.version>

@ -36,9 +36,10 @@ public class DiscoveryEnabledCondition implements Condition {
.parseBoolean(conditionContext.getEnvironment() .parseBoolean(conditionContext.getEnvironment()
.getProperty("spring.cloud.polaris.discovery.enabled", "true")); .getProperty("spring.cloud.polaris.discovery.enabled", "true"));
boolean isConsulDiscoveryEnabled = Boolean.parseBoolean(conditionContext.getEnvironment() boolean isConsulDiscoveryEnabled = Boolean
.getProperty("spring.cloud.consul.enabled", "false")) && .parseBoolean(conditionContext.getEnvironment()
Boolean.parseBoolean(conditionContext.getEnvironment() .getProperty("spring.cloud.consul.enabled", "false"))
&& Boolean.parseBoolean(conditionContext.getEnvironment()
.getProperty("spring.cloud.consul.discovery.enabled", "true")); .getProperty("spring.cloud.consul.discovery.enabled", "true"));
isDiscoveryEnabled |= isConsulDiscoveryEnabled; isDiscoveryEnabled |= isConsulDiscoveryEnabled;

@ -34,9 +34,10 @@ public class RegisterEnabledCondition implements Condition {
boolean isRegisterEnabled = Boolean.parseBoolean(conditionContext.getEnvironment() boolean isRegisterEnabled = Boolean.parseBoolean(conditionContext.getEnvironment()
.getProperty("spring.cloud.polaris.discovery.register", "true")); .getProperty("spring.cloud.polaris.discovery.register", "true"));
boolean isConsulRegisterEnabled = Boolean.parseBoolean(conditionContext.getEnvironment() boolean isConsulRegisterEnabled = Boolean
.getProperty("spring.cloud.consul.enabled", "false")) && .parseBoolean(conditionContext.getEnvironment()
Boolean.parseBoolean(conditionContext.getEnvironment() .getProperty("spring.cloud.consul.enabled", "false"))
&& Boolean.parseBoolean(conditionContext.getEnvironment()
.getProperty("spring.cloud.consul.discovery.register", "true")); .getProperty("spring.cloud.consul.discovery.register", "true"));
isRegisterEnabled |= isConsulRegisterEnabled; isRegisterEnabled |= isConsulRegisterEnabled;

@ -70,8 +70,8 @@
</developers> </developers>
<properties> <properties>
<revision>1.3.0-Hoxton.SR9-SNAPSHOT</revision> <revision>1.3.0-Hoxton.SR9</revision>
<polaris.version>1.4.0-SNAPSHOT</polaris.version> <polaris.version>1.4.0</polaris.version>
<powermock.version>2.0.0</powermock.version> <powermock.version>2.0.0</powermock.version>
<!-- Maven Plugin Versions --> <!-- Maven Plugin Versions -->

Loading…
Cancel
Save