Skip to content

Commit

Permalink
Merge pull request #1 from vert-x3/initial-work
Browse files Browse the repository at this point in the history
Initial Work
  • Loading branch information
cescoffier committed Feb 1, 2017
2 parents adc3ec7 + 6376aa2 commit e9ce440
Show file tree
Hide file tree
Showing 166 changed files with 8,486 additions and 1 deletion.
12 changes: 12 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
root = true

[*]
charset = utf-8
indent_style = space
indent_size = 2
trim_trailing_whitespace = true
end_of_line = lf
insert_final_newline = true

[Makefile]
indent_style = tab
15 changes: 15 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
.idea
*.iml
target/
pom.xml.tag
pom.xml.releaseBackup
pom.xml.versionsBackup
pom.xml.next
release.properties
dependency-reduced-pom.xml
buildNumber.properties
.mvn/timing.properties
.vertx
.project
.classpath
.settings
1 change: 0 additions & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -199,4 +199,3 @@
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

13 changes: 13 additions & 0 deletions README.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
= Vert.x Config

Vert.x Config provide an extensible way to configure Vert.x applications:

* retrieve configuration from anywhere (file, directory, HTTP location, Git repository, Zookeeper...)
* write your configuration in any format (properties, json, yaml, hocon...)
Please see the in source asciidoc documentation or the main documentation on the web-site for a full description
of Vert.x Config:

* link:vertx-config/src/main/asciidoc/java/index.adoc[Java in-source docs]
* link:vertx-config/src/main/asciidoc/js/index.adoc[JavaScript in-source docs]
* link:vertx-config/src/main/asciidoc/groovy/index.adoc[Groovy in-source docs]
128 changes: 128 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,128 @@
<?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>
<groupId>io.vertx</groupId>
<artifactId>vertx-ext-parent</artifactId>
<version>23</version>
</parent>

<artifactId>vertx-config-parent</artifactId>
<version>3.4.0-SNAPSHOT</version>
<packaging>pom</packaging>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<vertx.version>3.4.0-SNAPSHOT</vertx.version>
<doc.skip>true</doc.skip>
</properties>

<modules>
<module>vertx-config</module>
<module>vertx-config-hocon</module>
<module>vertx-config-yaml</module>
<module>vertx-config-spring-config-server</module>
<module>vertx-config-kubernetes-configmap</module>
<module>vertx-config-redis</module>
<module>vertx-config-git</module>
<module>vertx-config-zookeeper</module>
</modules>

<build>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
</plugins>
</build>

<dependencyManagement>
<dependencies>
<dependency>
<groupId>io.vertx</groupId>
<artifactId>vertx-dependencies</artifactId>
<version>${vertx.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>

<dependencies>
<dependency>
<groupId>io.vertx</groupId>
<artifactId>vertx-core</artifactId>
</dependency>
<dependency>
<groupId>io.vertx</groupId>
<artifactId>vertx-codegen</artifactId>
<optional>true</optional>
</dependency>
<dependency>
<groupId>io.vertx</groupId>
<artifactId>vertx-docgen</artifactId>
<optional>true</optional>
</dependency>
<dependency>
<groupId>io.vertx</groupId>
<artifactId>vertx-codetrans</artifactId>
<optional>true</optional>
</dependency>
<dependency>
<groupId>io.vertx</groupId>
<artifactId>vertx-lang-groovy</artifactId>
<optional>true</optional>
</dependency>
<dependency>
<groupId>io.vertx</groupId>
<artifactId>vertx-lang-ruby</artifactId>
<optional>true</optional>
</dependency>
<dependency>
<groupId>io.vertx</groupId>
<artifactId>vertx-lang-js</artifactId>
<optional>true</optional>
</dependency>
<dependency>
<groupId>io.vertx</groupId>
<artifactId>vertx-rx-java</artifactId>
<optional>true</optional>
</dependency>
<dependency>
<groupId>io.vertx</groupId>
<artifactId>vertx-lang-kotlin</artifactId>
<optional>true</optional>
</dependency>

<dependency>
<groupId>io.vertx</groupId>
<artifactId>vertx-unit</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.assertj</groupId>
<artifactId>assertj-core</artifactId>
<version>3.4.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.jayway.awaitility</groupId>
<artifactId>awaitility</artifactId>
<version>1.7.0</version>
<scope>test</scope>
</dependency>
</dependencies>

</project>
39 changes: 39 additions & 0 deletions vertx-config-git/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<?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>
<groupId>io.vertx</groupId>
<artifactId>vertx-config-parent</artifactId>
<version>3.4.0-SNAPSHOT</version>
</parent>

<properties>
<jgit.version>4.4.1.201607150455-r</jgit.version>
</properties>

<artifactId>vertx-config-git</artifactId>

<dependencies>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>vertx-config</artifactId>
<version>${project.version}</version>
</dependency>

<dependency>
<groupId>org.eclipse.jgit</groupId>
<artifactId>org.eclipse.jgit</artifactId>
<version>${jgit.version}</version>
</dependency>

<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>2.5</version>
<scope>test</scope>
</dependency>
</dependencies>
</project>
31 changes: 31 additions & 0 deletions vertx-config-git/src/main/java/examples/Examples.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
package examples;

import io.vertx.config.ConfigRetriever;
import io.vertx.config.ConfigRetrieverOptions;
import io.vertx.core.Vertx;
import io.vertx.core.json.JsonArray;
import io.vertx.core.json.JsonObject;
import io.vertx.config.ConfigStoreOptions;

/**
* @author <a href="http://escoffier.me">Clement Escoffier</a>
*/
public class Examples {


public void example1(Vertx vertx) {

ConfigStoreOptions git = new ConfigStoreOptions()
.setType("git")
.setConfig(new JsonObject()
.put("url", "https://github.com/cescoffier/vertx-config-test.git")
.put("path", "local")
.put("filesets",
new JsonArray().add(new JsonObject().put("pattern", "*.json"))));

ConfigRetriever retriever = ConfigRetriever.create(vertx,
new ConfigRetrieverOptions().addStore(git));
}


}
4 changes: 4 additions & 0 deletions vertx-config-git/src/main/java/examples/package-info.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
@Source
package examples;

import io.vertx.docgen.Source;
Loading

0 comments on commit e9ce440

Please sign in to comment.