File tree 2 files changed +16
-7
lines changed
src/main/kotlin/com/nfeld/jsonpathkt/util
2 files changed +16
-7
lines changed Original file line number Diff line number Diff line change
1
+ // apply plugin: 'maven'
2
+ apply plugin : ' signing'
1
3
2
4
def publishLocal = true
3
5
6
+ configurations {
7
+ archives {
8
+ extendsFrom configurations. default
9
+ }
10
+ }
11
+
4
12
task sourceJar (type : Jar ) {
5
13
classifier " sources"
6
14
from sourceSets. main. allSource
@@ -10,6 +18,11 @@ artifacts {
10
18
archives jar, sourceJar
11
19
}
12
20
21
+ signing {
22
+ required { ! snapshotVersion && gradle. taskGraph. hasTask(" uploadArchives" ) }
23
+ sign configurations. archives
24
+ }
25
+
13
26
publishing {
14
27
publications {
15
28
mavenJava(MavenPublication ) {
@@ -33,6 +46,7 @@ publishing {
33
46
developer {
34
47
id = ' codeniko'
35
48
name = ' Nikolay Feldman'
49
+ url = ' https://www.nfeld.com'
36
50
}
37
51
}
38
52
scm {
@@ -105,7 +119,3 @@ if (!publishLocal) {
105
119
}
106
120
}
107
121
108
- signing {
109
- required { ! snapshotVersion && gradle. taskGraph. hasTask(" uploadArchives" ) }
110
- sign configurations. archives
111
- }
Original file line number Diff line number Diff line change @@ -2,13 +2,12 @@ package com.nfeld.jsonpathkt.util
2
2
3
3
import com.fasterxml.jackson.databind.ObjectMapper
4
4
import com.fasterxml.jackson.databind.SerializationFeature
5
- import com.fasterxml.jackson.module.kotlin.KotlinModule
5
+ import com.fasterxml.jackson.module.kotlin.jacksonObjectMapper
6
6
7
7
object JacksonUtil {
8
8
val mapper: ObjectMapper by lazy {
9
- ObjectMapper ()
9
+ jacksonObjectMapper ()
10
10
.configure(SerializationFeature .ORDER_MAP_ENTRIES_BY_KEYS , true )
11
- .registerModule(KotlinModule ())
12
11
}
13
12
}
14
13
You can’t perform that action at this time.
0 commit comments