Skip to content

Commit 0f83030

Browse files
authored
Merge pull request #1209 from apache/fix/ehcache-jakarta-pom-classifier
2 parents 8da9c2b + d8b8a73 commit 0f83030

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

gradle/publish-config.gradle

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,15 @@ extensions.configure(GrailsPublishExtension) {
4040
url = 'https://apache.org/'
4141
}
4242
it.developers = project.property('pomDevelopers') as Map<String, String>
43+
it.pomCustomization = { xml ->
44+
xml.asNode().dependencies?.dependency?.findAll {
45+
it.groupId.text() == 'org.ehcache' && it.artifactId.text() == 'ehcache'
46+
}?.each {
47+
if (!it.classifier) {
48+
it.appendNode('classifier', 'jakarta')
49+
}
50+
}
51+
}
4352
}
4453

4554
afterEvaluate {

0 commit comments

Comments
 (0)