File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed
src/main/java/com/palantir/gradle/versions Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change
1
+ type : fix
2
+ fix :
3
+ description : Add WstxInputFactory and WstxOutputFactory to XmlMapper
4
+ links :
5
+ - https://github.com/palantir/gradle-consistent-versions/pull/1245
Original file line number Diff line number Diff line change 16
16
17
17
package com .palantir .gradle .versions ;
18
18
19
+ import com .ctc .wstx .stax .WstxInputFactory ;
20
+ import com .ctc .wstx .stax .WstxOutputFactory ;
19
21
import com .fasterxml .jackson .annotation .JsonRootName ;
20
22
import com .fasterxml .jackson .databind .ObjectMapper ;
21
23
import com .fasterxml .jackson .databind .annotation .JsonDeserialize ;
38
40
39
41
public abstract class GenerateMavenRepositoriesTask extends DefaultTask {
40
42
41
- private static final ObjectMapper XML_MAPPER = new XmlMapper ().registerModule (new GuavaModule ());
43
+ private static final ObjectMapper XML_MAPPER =
44
+ new XmlMapper (new WstxInputFactory (), new WstxOutputFactory ()).registerModule (new GuavaModule ());
42
45
43
46
private static final String MAVEN_REPOSITORIES_FILE_NAME = ".idea/gcv-maven-repositories.xml" ;
44
47
You can’t perform that action at this time.
0 commit comments