Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
spring-cloud-netflix
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
openSource
spring-cloud-netflix
Commits
25337dd4
Commit
25337dd4
authored
Sep 28, 2017
by
Ryan Baxter
Committed by
Spencer Gibb
Sep 28, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move Archaius to its own module (#2308)
* Move Archaius to its own module. Fixes gh-2300\
parent
ec257714
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
81 additions
and
32 deletions
+81
-32
pom.xml
pom.xml
+1
-0
pom.xml
spring-cloud-netflix-archaius/pom.xml
+57
-0
ArchaiusAutoConfiguration.java
...ork/cloud/netflix/archaius/ArchaiusAutoConfiguration.java
+0
-0
ArchaiusDelegatingProxyUtils.java
.../cloud/netflix/archaius/ArchaiusDelegatingProxyUtils.java
+0
-0
ArchaiusEndpoint.java
...ingframework/cloud/netflix/archaius/ArchaiusEndpoint.java
+2
-2
ConfigurableEnvironmentConfiguration.java
...etflix/archaius/ConfigurableEnvironmentConfiguration.java
+0
-0
spring.factories
...lix-archaius/src/main/resources/META-INF/spring.factories
+3
-0
ArchaiusAutoConfigurationTests.java
...loud/netflix/archaius/ArchaiusAutoConfigurationTests.java
+4
-4
ArchaiusEndpointTests.java
...amework/cloud/netflix/archaius/ArchaiusEndpointTests.java
+0
-0
TestArchaiusExternalConfiguration.java
...d/netflix/archaius/TestArchaiusExternalConfiguration.java
+0
-0
config.properties
...oud-netflix-archaius/src/test/resources/config.properties
+0
-0
pom.xml
spring-cloud-netflix-core/pom.xml
+3
-25
spring.factories
...netflix-core/src/main/resources/META-INF/spring.factories
+0
-1
config.properties.bak
...oud-netflix-core/src/test/resources/config.properties.bak
+2
-0
pom.xml
spring-cloud-netflix-dependencies/pom.xml
+5
-0
pom.xml
...ter-netflix/spring-cloud-starter-netflix-archaius/pom.xml
+4
-0
No files found.
pom.xml
View file @
25337dd4
...
...
@@ -123,6 +123,7 @@
</dependencyManagement>
<modules>
<module>
spring-cloud-netflix-dependencies
</module>
<module>
spring-cloud-netflix-archaius
</module>
<module>
spring-cloud-netflix-core
</module>
<module>
spring-cloud-netflix-hystrix-dashboard
</module>
<module>
spring-cloud-netflix-hystrix-stream
</module>
...
...
spring-cloud-netflix-archaius/pom.xml
0 → 100644
View file @
25337dd4
<?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"
>
<modelVersion>
4.0.0
</modelVersion>
<parent>
<artifactId>
spring-cloud-netflix
</artifactId>
<groupId>
org.springframework.cloud
</groupId>
<version>
2.0.0.BUILD-SNAPSHOT
</version>
<relativePath>
..
</relativePath>
<!-- lookup parent from repository -->
</parent>
<artifactId>
spring-cloud-netflix-archaius
</artifactId>
<packaging>
jar
</packaging>
<name>
Spring Cloud Netflix Archaius
</name>
<description>
Spring Cloud Netflix Archaius
</description>
<properties>
<main.basedir>
${basedir}/..
</main.basedir>
</properties>
<dependencies>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-actuator
</artifactId>
<optional>
true
</optional>
</dependency>
<dependency>
<groupId>
org.springframework.cloud
</groupId>
<artifactId>
spring-cloud-context
</artifactId>
<optional>
true
</optional>
</dependency>
<dependency>
<groupId>
com.netflix.archaius
</groupId>
<artifactId>
archaius-core
</artifactId>
<optional>
true
</optional>
</dependency>
<dependency>
<groupId>
commons-configuration
</groupId>
<artifactId>
commons-configuration
</artifactId>
<optional>
true
</optional>
</dependency>
<dependency>
<groupId>
commons-logging
</groupId>
<artifactId>
commons-logging
</artifactId>
<optional>
true
</optional>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-test
</artifactId>
<scope>
test
</scope>
</dependency>
</dependencies>
</project>
\ No newline at end of file
spring-cloud-netflix-
core
/src/main/java/org/springframework/cloud/netflix/archaius/ArchaiusAutoConfiguration.java
→
spring-cloud-netflix-
archaius
/src/main/java/org/springframework/cloud/netflix/archaius/ArchaiusAutoConfiguration.java
View file @
25337dd4
File moved
spring-cloud-netflix-
core
/src/main/java/org/springframework/cloud/netflix/archaius/ArchaiusDelegatingProxyUtils.java
→
spring-cloud-netflix-
archaius
/src/main/java/org/springframework/cloud/netflix/archaius/ArchaiusDelegatingProxyUtils.java
View file @
25337dd4
File moved
spring-cloud-netflix-
core
/src/main/java/org/springframework/cloud/netflix/archaius/ArchaiusEndpoint.java
→
spring-cloud-netflix-
archaius
/src/main/java/org/springframework/cloud/netflix/archaius/ArchaiusEndpoint.java
View file @
25337dd4
...
...
@@ -24,11 +24,11 @@ import org.apache.commons.configuration.AbstractConfiguration;
import
org.apache.commons.configuration.Configuration
;
import
org.apache.commons.configuration.EnvironmentConfiguration
;
import
org.apache.commons.configuration.SystemConfiguration
;
import
org.springframework.boot.actuate.endpoint.annotation.Endpoint
;
import
org.springframework.boot.actuate.endpoint.annotation.ReadOperation
;
import
com.netflix.config.ConcurrentCompositeConfiguration
;
import
com.netflix.config.ConfigurationManager
;
import
org.springframework.boot.actuate.endpoint.annotation.Endpoint
;
import
org.springframework.boot.actuate.endpoint.annotation.ReadOperation
;
/**
* @author Dave Syer
...
...
spring-cloud-netflix-
core
/src/main/java/org/springframework/cloud/netflix/archaius/ConfigurableEnvironmentConfiguration.java
→
spring-cloud-netflix-
archaius
/src/main/java/org/springframework/cloud/netflix/archaius/ConfigurableEnvironmentConfiguration.java
View file @
25337dd4
File moved
spring-cloud-netflix-archaius/src/main/resources/META-INF/spring.factories
0 → 100644
View file @
25337dd4
org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
org.springframework.cloud.netflix.archaius.ArchaiusAutoConfiguration
\ No newline at end of file
spring-cloud-netflix-
core
/src/test/java/org/springframework/cloud/netflix/archaius/ArchaiusAutoConfigurationTests.java
→
spring-cloud-netflix-
archaius
/src/test/java/org/springframework/cloud/netflix/archaius/ArchaiusAutoConfigurationTests.java
View file @
25337dd4
...
...
@@ -23,14 +23,14 @@ import org.apache.commons.configuration.event.ConfigurationEvent;
import
org.apache.commons.configuration.event.ConfigurationListener
;
import
org.junit.After
;
import
org.junit.Test
;
import
com.netflix.config.ConfigurationManager
;
import
com.netflix.config.DynamicPropertyFactory
;
import
com.netflix.config.DynamicStringProperty
;
import
org.springframework.boot.test.util.EnvironmentTestUtils
;
import
org.springframework.cloud.context.environment.EnvironmentChangeEvent
;
import
org.springframework.context.annotation.AnnotationConfigApplicationContext
;
import
com.netflix.config.ConfigurationManager
;
import
com.netflix.config.DynamicPropertyFactory
;
import
com.netflix.config.DynamicStringProperty
;
import
static
org
.
junit
.
Assert
.
assertEquals
;
import
static
org
.
junit
.
Assert
.
assertNotNull
;
import
static
org
.
junit
.
Assert
.
assertNull
;
...
...
spring-cloud-netflix-
core
/src/test/java/org/springframework/cloud/netflix/archaius/ArchaiusEndpointTests.java
→
spring-cloud-netflix-
archaius
/src/test/java/org/springframework/cloud/netflix/archaius/ArchaiusEndpointTests.java
View file @
25337dd4
File moved
spring-cloud-netflix-
core
/src/test/java/org/springframework/cloud/netflix/archaius/TestArchaiusExternalConfiguration.java
→
spring-cloud-netflix-
archaius
/src/test/java/org/springframework/cloud/netflix/archaius/TestArchaiusExternalConfiguration.java
View file @
25337dd4
File moved
spring-cloud-netflix-
core
/src/test/resources/config.properties
→
spring-cloud-netflix-
archaius
/src/test/resources/config.properties
View file @
25337dd4
File moved
spring-cloud-netflix-core/pom.xml
View file @
25337dd4
...
...
@@ -18,11 +18,6 @@
<dependencies>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-configuration-processor
</artifactId>
<optional>
true
</optional>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot
</artifactId>
</dependency>
<dependency>
...
...
@@ -65,23 +60,16 @@
<optional>
true
</optional>
</dependency>
<dependency>
<groupId>
com.netflix.archaius
</groupId>
<artifactId>
archaius-core
</artifactId>
<
optional>
true
</optional
>
<groupId>
org.springframework.cloud
</groupId>
<artifactId>
spring-cloud-netflix-archaius
</artifactId>
<
version>
${project.version}
</version
>
</dependency>
<!-- archaius dependencies that are now runtime -->
<dependency>
<groupId>
commons-configuration
</groupId>
<artifactId>
commons-configuration
</artifactId>
<optional>
true
</optional>
</dependency>
<dependency>
<groupId>
commons-logging
</groupId>
<artifactId>
commons-logging
</artifactId>
<optional>
true
</optional>
</dependency>
<!-- end archaius deps -->
<dependency>
<groupId>
com.netflix.servo
</groupId>
<artifactId>
servo-core
</artifactId>
<optional>
true
</optional>
...
...
@@ -201,16 +189,6 @@
<artifactId>
spring-cloud-test-support
</artifactId>
<scope>
test
</scope>
</dependency>
<dependency>
<groupId>
org.aspectj
</groupId>
<artifactId>
aspectjweaver
</artifactId>
<optional>
true
</optional>
</dependency>
<dependency>
<groupId>
com.fasterxml.jackson.dataformat
</groupId>
<artifactId>
jackson-dataformat-smile
</artifactId>
<optional>
true
</optional>
</dependency>
</dependencies>
<profiles>
<profile>
...
...
spring-cloud-netflix-core/src/main/resources/META-INF/spring.factories
View file @
25337dd4
org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
org.springframework.cloud.netflix.archaius.ArchaiusAutoConfiguration,\
org.springframework.cloud.netflix.feign.ribbon.FeignRibbonClientAutoConfiguration,\
org.springframework.cloud.netflix.feign.FeignAutoConfiguration,\
org.springframework.cloud.netflix.feign.encoding.FeignAcceptGzipEncodingAutoConfiguration,\
...
...
spring-cloud-netflix-core/src/test/resources/config.properties.bak
0 → 100644
View file @
25337dd4
archaius.file.property=Static config file property
db.second.property=It should be overridden
spring-cloud-netflix-dependencies/pom.xml
View file @
25337dd4
...
...
@@ -37,6 +37,11 @@
</dependency>
<dependency>
<groupId>
org.springframework.cloud
</groupId>
<artifactId>
spring-cloud-netflix-archaius
</artifactId>
<version>
${project.version}
</version>
</dependency>
<dependency>
<groupId>
org.springframework.cloud
</groupId>
<artifactId>
spring-cloud-starter-netflix-archaius
</artifactId>
<version>
${project.version}
</version>
</dependency>
...
...
spring-cloud-starter-netflix/spring-cloud-starter-netflix-archaius/pom.xml
View file @
25337dd4
...
...
@@ -27,6 +27,10 @@
<artifactId>
spring-cloud-netflix-core
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.cloud
</groupId>
<artifactId>
spring-cloud-netflix-archaius
</artifactId>
</dependency>
<dependency>
<groupId>
com.netflix.archaius
</groupId>
<artifactId>
archaius-core
</artifactId>
</dependency>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment