Skip to content

Commit 00694c2

Browse files
authored
Merge pull request #187 from FusionAuth/bhalsey/jackson-annotations-version-fix
hack pom.xml for jacksonAnnotationsVersion-2.21
2 parents 4dd46a5 + 1cd4122 commit 00694c2

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

build.savant

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@
1616

1717
fusionauthJWTVersion = "5.2.4"
1818
jacksonVersion = "2.21.1"
19-
jacksonAnnotationsVersion = "2.21" // No 2.21.1 version available, annotations dropped patch versioning in 2.20+
19+
// No 2.21.0 version available, annotations dropped patch versioning in 2.20+
20+
// pom target has hack to maintain this "patchless" version
21+
jacksonAnnotationsVersion = "2.21"
2022
jackson5Version = "3.0.1"
2123
javaErrorVersion = "2.2.3"
2224
restifyVersion = "4.3.0"
@@ -124,9 +126,11 @@ target(name: "pom", description: "Updates the pom.xml file") {
124126
pom.update()
125127

126128
// Hack. I think we need to update the pom plugin to optionally remove -{integration} from versions.
129+
// Hack-2. Because jacksonAnnotationsVersion = "2.21", need to overwrite what the pom plugin writes
127130
file.copy(to: ".") {
128131
fileSet(dir: ".", includePatterns: [~/pom.xml/])
129132
filter(token: "-\\{integration\\}", value: "")
133+
filter(token: "2.21.0", value: "2.21")
130134
}
131135
ensureFileNotChanged("pom.xml", "pom")
132136
}

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
<dependency>
7777
<groupId>com.fasterxml.jackson.core</groupId>
7878
<artifactId>jackson-annotations</artifactId>
79-
<version>2.21.0</version>
79+
<version>2.21</version>
8080
<type>jar</type>
8181
<scope>compile</scope>
8282
<optional>false</optional>

0 commit comments

Comments
 (0)