Skip to content

Commit 8ccd488

Browse files
committed
add Java8 Date&Time
1 parent 347c187 commit 8ccd488

File tree

5 files changed

+214
-1
lines changed

5 files changed

+214
-1
lines changed
Binary file not shown.
Lines changed: 204 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,204 @@
1+
<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">
2+
<modelVersion>4.0.0</modelVersion>
3+
<groupId>com.n1global</groupId>
4+
<artifactId>async-couchdb-client</artifactId>
5+
<version>0.41</version>
6+
<name>async-couchdb-client</name>
7+
8+
<properties>
9+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
10+
<project.resources.sourceEncoding>UTF-8</project.resources.sourceEncoding>
11+
<maven.compiler.source>1.8</maven.compiler.source>
12+
<maven.compiler.target>1.8</maven.compiler.target>
13+
</properties>
14+
15+
<dependencies>
16+
<dependency>
17+
<groupId>com.ning</groupId>
18+
<artifactId>async-http-client</artifactId>
19+
<version>1.9.11</version>
20+
</dependency>
21+
22+
<dependency>
23+
<groupId>com.fasterxml.jackson.core</groupId>
24+
<artifactId>jackson-databind</artifactId>
25+
<version>2.5.1</version>
26+
</dependency>
27+
28+
<dependency>
29+
<groupId>com.fasterxml.jackson.datatype</groupId>
30+
<artifactId>jackson-datatype-jsr310</artifactId>
31+
<version>2.5.1</version>
32+
</dependency>
33+
34+
<dependency>
35+
<groupId>ch.qos.logback</groupId>
36+
<artifactId>logback-classic</artifactId>
37+
<version>1.1.2</version>
38+
</dependency>
39+
40+
<dependency>
41+
<groupId>org.springframework</groupId>
42+
<artifactId>spring-web</artifactId>
43+
<version>4.1.5.RELEASE</version>
44+
<exclusions>
45+
<exclusion>
46+
<groupId>*</groupId>
47+
</exclusion>
48+
</exclusions>
49+
</dependency>
50+
51+
<!-- For testing -->
52+
<dependency>
53+
<groupId>org.slf4j</groupId>
54+
<artifactId>jcl-over-slf4j</artifactId>
55+
<version>1.7.10</version>
56+
<scope>test</scope>
57+
</dependency>
58+
59+
<dependency>
60+
<groupId>net.coobird</groupId>
61+
<artifactId>thumbnailator</artifactId>
62+
<version>0.4.8</version>
63+
<scope>test</scope>
64+
</dependency>
65+
66+
<dependency>
67+
<groupId>junit</groupId>
68+
<artifactId>junit</artifactId>
69+
<version>4.12</version>
70+
<scope>test</scope>
71+
</dependency>
72+
73+
<dependency>
74+
<groupId>org.assertj</groupId>
75+
<artifactId>assertj-core</artifactId>
76+
<version>2.0.0</version>
77+
<scope>test</scope>
78+
</dependency>
79+
80+
<dependency>
81+
<groupId>org.springframework</groupId>
82+
<artifactId>spring-context</artifactId>
83+
<version>4.1.5.RELEASE</version>
84+
<exclusions>
85+
<exclusion>
86+
<groupId>commons-logging</groupId>
87+
<artifactId>commons-logging</artifactId>
88+
</exclusion>
89+
</exclusions>
90+
<scope>test</scope>
91+
</dependency>
92+
93+
<dependency>
94+
<groupId>org.springframework</groupId>
95+
<artifactId>spring-test</artifactId>
96+
<version>4.1.5.RELEASE</version>
97+
<scope>test</scope>
98+
</dependency>
99+
100+
<dependency>
101+
<groupId>org.apache.lucene</groupId>
102+
<artifactId>lucene-core</artifactId>
103+
<version>5.0.0</version>
104+
<scope>test</scope>
105+
</dependency>
106+
107+
<dependency>
108+
<groupId>org.apache.lucene</groupId>
109+
<artifactId>lucene-analyzers-common</artifactId>
110+
<version>5.0.0</version>
111+
<scope>test</scope>
112+
</dependency>
113+
</dependencies>
114+
115+
<build>
116+
<plugins>
117+
<plugin>
118+
<groupId>org.apache.maven.plugins</groupId>
119+
<artifactId>maven-source-plugin</artifactId>
120+
<version>2.4</version>
121+
<executions>
122+
<execution>
123+
<id>attach-sources</id>
124+
<goals>
125+
<goal>jar</goal>
126+
</goals>
127+
</execution>
128+
</executions>
129+
</plugin>
130+
131+
<plugin>
132+
<artifactId>maven-resources-plugin</artifactId>
133+
<version>2.7</version>
134+
<executions>
135+
<execution>
136+
<id>copy-configuration-files</id>
137+
<phase>install</phase>
138+
<goals>
139+
<goal>copy-resources</goal>
140+
</goals>
141+
<configuration>
142+
<outputDirectory>${project.basedir}/maven/com/n1global/${project.artifactId}/${project.version}</outputDirectory>
143+
<resources>
144+
<resource>
145+
<directory>${project.build.directory}</directory>
146+
<includes>
147+
<include>*.jar</include>
148+
</includes>
149+
</resource>
150+
</resources>
151+
</configuration>
152+
</execution>
153+
</executions>
154+
</plugin>
155+
156+
<plugin>
157+
<artifactId>maven-antrun-plugin</artifactId>
158+
<executions>
159+
<execution>
160+
<phase>install</phase>
161+
<configuration>
162+
<tasks>
163+
<copy file="${project.basedir}/pom.xml" tofile="${project.basedir}/maven/com/n1global/${project.artifactId}/${project.version}/${project.artifactId}-${project.version}.pom"/>
164+
</tasks>
165+
</configuration>
166+
<goals>
167+
<goal>run</goal>
168+
</goals>
169+
</execution>
170+
</executions>
171+
</plugin>
172+
</plugins>
173+
174+
<pluginManagement>
175+
<plugins>
176+
<!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
177+
<plugin>
178+
<groupId>org.eclipse.m2e</groupId>
179+
<artifactId>lifecycle-mapping</artifactId>
180+
<version>1.0.0</version>
181+
<configuration>
182+
<lifecycleMappingMetadata>
183+
<pluginExecutions>
184+
<pluginExecution>
185+
<pluginExecutionFilter>
186+
<groupId>org.apache.maven.plugins</groupId>
187+
<artifactId>maven-dependency-plugin</artifactId>
188+
<versionRange>[2.4,)</versionRange>
189+
<goals>
190+
<goal>copy-dependencies</goal>
191+
</goals>
192+
</pluginExecutionFilter>
193+
<action>
194+
<ignore></ignore>
195+
</action>
196+
</pluginExecution>
197+
</pluginExecutions>
198+
</lifecycleMappingMetadata>
199+
</configuration>
200+
</plugin>
201+
</plugins>
202+
</pluginManagement>
203+
</build>
204+
</project>

pom.xml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<modelVersion>4.0.0</modelVersion>
33
<groupId>com.n1global</groupId>
44
<artifactId>async-couchdb-client</artifactId>
5-
<version>0.40</version>
5+
<version>0.41</version>
66
<name>async-couchdb-client</name>
77

88
<properties>
@@ -25,6 +25,12 @@
2525
<version>2.5.1</version>
2626
</dependency>
2727

28+
<dependency>
29+
<groupId>com.fasterxml.jackson.datatype</groupId>
30+
<artifactId>jackson-datatype-jsr310</artifactId>
31+
<version>2.5.1</version>
32+
</dependency>
33+
2834
<dependency>
2935
<groupId>ch.qos.logback</groupId>
3036
<artifactId>logback-classic</artifactId>

src/main/java/com/n1global/acc/CouchDbBase.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package com.n1global.acc;
22

33
import com.fasterxml.jackson.databind.ObjectMapper;
4+
import com.fasterxml.jackson.datatype.jsr310.JSR310Module;
45
import com.ning.http.client.Realm;
56
import com.ning.http.client.Realm.AuthScheme;
67
import com.ning.http.client.Request;
@@ -17,6 +18,8 @@ public class CouchDbBase {
1718
final Request prototype;
1819

1920
public CouchDbBase(CouchDbBaseConfig config) {
21+
mapper.registerModule(new JSR310Module());
22+
2023
this.config = config;
2124

2225
RequestBuilder builder = new RequestBuilder().setHeader("Content-Type", "application/json; charset=utf-8")

0 commit comments

Comments
 (0)