Skip to content

Commit 8c20f82

Browse files
committed
update usage jackson kotlin module
1 parent 6673b76 commit 8c20f82

File tree

2 files changed

+16
-7
lines changed

2 files changed

+16
-7
lines changed

publish.gradle

+14-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
1+
// apply plugin: 'maven'
2+
apply plugin: 'signing'
13

24
def publishLocal = true
35

6+
configurations {
7+
archives {
8+
extendsFrom configurations.default
9+
}
10+
}
11+
412
task sourceJar(type: Jar) {
513
classifier "sources"
614
from sourceSets.main.allSource
@@ -10,6 +18,11 @@ artifacts {
1018
archives jar, sourceJar
1119
}
1220

21+
signing {
22+
required { !snapshotVersion && gradle.taskGraph.hasTask("uploadArchives") }
23+
sign configurations.archives
24+
}
25+
1326
publishing {
1427
publications {
1528
mavenJava(MavenPublication) {
@@ -33,6 +46,7 @@ publishing {
3346
developer {
3447
id = 'codeniko'
3548
name = 'Nikolay Feldman'
49+
url = 'https://www.nfeld.com'
3650
}
3751
}
3852
scm {
@@ -105,7 +119,3 @@ if (!publishLocal) {
105119
}
106120
}
107121

108-
signing {
109-
required { !snapshotVersion && gradle.taskGraph.hasTask("uploadArchives") }
110-
sign configurations.archives
111-
}

src/main/kotlin/com/nfeld/jsonpathkt/util/JacksonUtil.kt

+2-3
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,12 @@ package com.nfeld.jsonpathkt.util
22

33
import com.fasterxml.jackson.databind.ObjectMapper
44
import com.fasterxml.jackson.databind.SerializationFeature
5-
import com.fasterxml.jackson.module.kotlin.KotlinModule
5+
import com.fasterxml.jackson.module.kotlin.jacksonObjectMapper
66

77
object JacksonUtil {
88
val mapper: ObjectMapper by lazy {
9-
ObjectMapper()
9+
jacksonObjectMapper()
1010
.configure(SerializationFeature.ORDER_MAP_ENTRIES_BY_KEYS, true)
11-
.registerModule(KotlinModule())
1211
}
1312
}
1413

0 commit comments

Comments
 (0)