Skip to content

Commit

Permalink
Updates MongoDB driver to 3.x version
Browse files Browse the repository at this point in the history
All classes are rewritten to reflect latest MongoDB Java Driver API changes.
  • Loading branch information
scheras committed Jan 30, 2017
1 parent 7a70433 commit cac349a
Show file tree
Hide file tree
Showing 22 changed files with 2,873 additions and 2,798 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ More details are at the [Project site](http://log4mongo.org/display/PUB/Log4mong
* Jay Patel

# Pre-requisites
* JDK 1.5+
* MongoDB Server v2.0+ (tested with 2.6.5)
* MongoDB Java Driver v2.7+ (tested with 2.12.4)
* Log4J 1.2+ (tested with 1.2.16 - note: tests won't work on earlier versions due to Log4J API changes)
* JDK 1.8+
* MongoDB Server v3.0+ (tested with 3.4.1)
* MongoDB Java Driver v3.0+ (tested with 3.4.1)
* Log4J 1.2+ (tested with 1.2.17 - note: tests won't work on earlier versions due to Log4J API changes)
* Privateer (used only in unit tests - a copy is in the lib dir, in case you can't get it
from the central Maven repo)

Expand Down
Binary file removed lib/privateer-0.1.1.jar
Binary file not shown.
320 changes: 158 additions & 162 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -1,175 +1,171 @@
<?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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.log4mongo</groupId>
<artifactId>log4mongo-java</artifactId>
<packaging>jar</packaging>
<name>log4mongo-java</name>
<description>Log4J Appender for MongoDB</description>
<version>0.7.5</version>
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.log4mongo</groupId>
<artifactId>log4mongo-java</artifactId>
<packaging>jar</packaging>
<name>log4mongo-java</name>
<description>Log4J Appender for MongoDB</description>
<version>0.8.0</version>

<parent>
<groupId>org.sonatype.oss</groupId>
<artifactId>oss-parent</artifactId>
<version>7</version>
</parent>
<parent>
<groupId>org.sonatype.oss</groupId>
<artifactId>oss-parent</artifactId>
<version>7</version>
</parent>

<properties>
<project.build.sourceEncoding>
UTF-8
</project.build.sourceEncoding>
<project.reporting.outputEncoding>
UTF-8
</project.reporting.outputEncoding>
</properties>
<properties>
<project.build.sourceEncoding>
UTF-8
</project.build.sourceEncoding>
<project.reporting.outputEncoding>
UTF-8
</project.reporting.outputEncoding>
</properties>

<licenses>
<license>
<name>Apache 2</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
<distribution>repo</distribution>
</license>
</licenses>
<licenses>
<license>
<name>Apache 2</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
<distribution>repo</distribution>
</license>
</licenses>

<developers>
<developer>
<id>pmonks</id>
<name>Peter Monks</name>
<email>pmonks@gmail.com</email>
</developer>
<developer>
<id>jsk</id>
<name>Jozef Sevcik</name>
<email>sevcik@styxys.com</email>
</developer>
<developer>
<id>wombatnation</id>
<name>Robert Stewart</name>
<email>robert@wombatnation.com</email>
</developer>
</developers>
<developers>
<developer>
<id>pmonks</id>
<name>Peter Monks</name>
<email>pmonks@gmail.com</email>
</developer>
<developer>
<id>jsk</id>
<name>Jozef Sevcik</name>
<email>sevcik@styxys.com</email>
</developer>
<developer>
<id>wombatnation</id>
<name>Robert Stewart</name>
<email>robert@wombatnation.com</email>
</developer>
<developer>
<id>ScheRas</id>
<name>Šimon Schierreich</name>
<email>simon.schierreich@messenger.cz</email>
</developer>
</developers>

<issueManagement>
<system>Github</system>
<url>https://github.com/log4mongo/log4mongo-java/issues</url>
</issueManagement>
<issueManagement>
<system>Github</system>
<url>https://github.com/log4mongo/log4mongo-java/issues</url>
</issueManagement>

<scm>
<connection>scm:git:git@github.com:log4mongo/log4mongo-java.git</connection>
<developerConnection>scm:git:git@github.com:log4mongo/log4mongo-java.git</developerConnection>
<url>scm:git:git@github.com:log4mongo/log4mongo-java</url>
</scm>
<scm>
<connection>scm:git:git@github.com:log4mongo/log4mongo-java.git</connection>
<developerConnection>scm:git:git@github.com:log4mongo/log4mongo-java.git</developerConnection>
<url>scm:git:git@github.com:log4mongo/log4mongo-java</url>
</scm>

<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.8.2</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>1.2.16</version>
<scope>provided</scope>
<exclusions>
<exclusion>
<groupId>com.sun.jmx</groupId>
<artifactId>jmxri</artifactId>
</exclusion>
<exclusion>
<groupId>com.sun.jdmk</groupId>
<artifactId>jmxtools</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.mongodb</groupId>
<artifactId>mongo-java-driver</artifactId>
<version>2.12.4</version>
</dependency>
<dependency>
<groupId>com.wombatnation</groupId>
<artifactId>privateer</artifactId>
<version>0.1.1</version>
<scope>test</scope>
</dependency>
</dependencies>
<dependencies>
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>1.2.17</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.mongodb</groupId>
<artifactId>mongo-java-driver</artifactId>
<version>3.4.2</version>
</dependency>

<build>
<extensions>
<extension>
<groupId>org.apache.maven.wagon</groupId>
<artifactId>wagon-webdav</artifactId>
<version>1.0-beta-2</version>
</extension>
</extensions>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.2</version>
<configuration>
<source>1.5</source>
<target>1.5</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>2.0-beta-9</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>1.5</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>2.4</version>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.wombatnation</groupId>
<artifactId>privateer</artifactId>
<version>0.1.1</version>
<scope>test</scope>
</dependency>
</dependencies>

<profiles>
<profile>
<id>release</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
<build>
<extensions>
<extension>
<groupId>org.apache.maven.wagon</groupId>
<artifactId>wagon-webdav</artifactId>
<version>1.0-beta-2</version>
</extension>
</extensions>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.6.0</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>2.5.3</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>1.6</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>3.0.1</version>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>

<profiles>
<profile>
<id>release</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>

</project>
Loading

0 comments on commit cac349a

Please sign in to comment.