Skip to content

Commit d25f3c8

Browse files
authored
Merge pull request #69 from irufus/#31_mavenPublish
#31 re-add lost update to websocket feed's object mapper
2 parents 5ca00cf + ad807bd commit d25f3c8

File tree

4 files changed

+18
-2
lines changed

4 files changed

+18
-2
lines changed

api/build.gradle

+15
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
plugins {
2+
id 'maven-publish'
3+
}
4+
5+
publishing {
6+
publications {
7+
maven(MavenPublication) {
8+
groupId = 'com.irufus'
9+
artifactId = 'coinbase-pro-java'
10+
11+
from components.java
12+
}
13+
}
14+
}
15+
116
test {
217
useJUnitPlatform()
318
}

build.gradle

+1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ allprojects {
2424
include '**/*IntegrationTest*'
2525
}
2626
}
27+
2728
subprojects { }
2829

2930
// apply dependency constraints to all java modules

websocketfeed/build.gradle

-1
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,4 @@ dependencies {
1515
testImplementation 'org.junit.jupiter:junit-jupiter-params'
1616
testImplementation 'org.junit.jupiter:junit-jupiter-engine'
1717
testImplementation 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310'
18-
// testImplementation 'org.junit.platform:junit-platform-suite-api'
1918
}

websocketfeed/src/main/java/com/coinbase/exchange/websocketfeed/WebsocketFeed.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import com.coinbase.exchange.security.Signature;
44
import com.fasterxml.jackson.core.JsonProcessingException;
55
import com.fasterxml.jackson.databind.ObjectMapper;
6+
import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule;
67
import org.slf4j.Logger;
78
import org.slf4j.LoggerFactory;
89

@@ -50,7 +51,7 @@ public WebsocketFeed(final String websocketUrl,
5051
this.websocketUrl = websocketUrl;
5152
this.signature = signature;
5253
this.guiEnabled = guiEnabled;
53-
this.objectMapper = objectMapper;
54+
this.objectMapper = objectMapper.registerModule(new JavaTimeModule());;
5455
}
5556

5657
public void connect() {

0 commit comments

Comments
 (0)