Skip to content

Commit 3091709

Browse files
committed
[GR-65173] Add ProGuard that supports JDK 24
PullRequest: mx/1920
2 parents f688f32 + 37e34e3 commit 3091709

File tree

3 files changed

+88
-1
lines changed

3 files changed

+88
-1
lines changed

mx.mx/suite.py

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -563,6 +563,24 @@
563563
}
564564
},
565565

566+
"LOG4J_API_2_24_2" : {
567+
"digest": "sha512:9665821c14c582dddd0ed181f8d49da3e25857eec11328e0d8978757f1cd2360ae60cf103a4b26b1ad5be47cf0857863a7a3c432a0f71f9eef14f64e8754f35c",
568+
"maven" : {
569+
"groupId" : "org.apache.logging.log4j",
570+
"artifactId" : "log4j-api",
571+
"version" : "2.24.2",
572+
}
573+
},
574+
575+
"LOG4J_CORE_2_24_2" : {
576+
"digest": "sha512:9a8ab3921a8285d500c3e6ce78254803cd785a18fb196951b2161a2a773043317e7c7a30fcf171948e861c952ff1d14a3baf66e1eba7f3393eb956f1069ac677",
577+
"maven" : {
578+
"groupId" : "org.apache.logging.log4j",
579+
"artifactId" : "log4j-core",
580+
"version" : "2.24.2",
581+
}
582+
},
583+
566584
"ORG_JSON_20211205" : {
567585
"digest": "sha512:bcfada5d9f87bd6494e2c9b4d8da2a700b262eb2541296cf5f38a6e4c8dddf496f1db4bb8b10277dcdf8882a7942ab84b5d73e636312c2b193cf3d5d2969ef82",
568586
"maven" : {
@@ -590,6 +608,15 @@
590608
}
591609
},
592610

611+
"GSON_2.11.0" : {
612+
"digest": "sha512:b8c91426a8275b42ea5c55b104308ffbe656ae3354bc661f62173352e53a4818a009e4dd82bc6cf518c77fda5a4d2eab0d3ad832581a8f0d87966ef04e6c025a",
613+
"maven" : {
614+
"groupId" : "com.google.code.gson",
615+
"artifactId" : "gson",
616+
"version" : "2.11.0",
617+
}
618+
},
619+
593620
# As of 8.0.0, the versioning of ProGuardCORE is unlinked from ProguardBASE and ProguardRETRACE
594621
# since ProGuardCORE is a general library used by other projects.
595622
# https://github.com/Guardsquare/proguard/issues/132#issuecomment-887610759
@@ -761,6 +788,51 @@
761788
"dependencies" : ["LOG4J_CORE_2_19_0", "LOG4J_API_2_19_0"],
762789
},
763790

791+
"JETBRAINS_JAVA_ANNOTATIONS_26_0_1" : {
792+
"digest": "sha512:c7be38957318874b837d029dc7b2a1f8b009feaa5362a56cba4f4c8a7d502993b3c900ee338eb9c9ee9494d7fd946bd280403eee28b244d213edb0b145a9ebfd",
793+
"maven" : {
794+
"groupId" : "org.jetbrains",
795+
"artifactId" : "annotations",
796+
"version" : "26.0.1",
797+
},
798+
},
799+
800+
"PROGUARD_CORE_9_1_10" : {
801+
"digest": "sha512:45b3e9170e56b7beebb81e74160292556a2d6adb22f315287a288cccfa56868ca59d82a8eb0960c26fec369fd37971b761f3655a1b8ad38b77d6b66a776c8fc0",
802+
"maven" : {
803+
"groupId" : "com.guardsquare",
804+
"artifactId" : "proguard-core",
805+
"version" : "9.1.10",
806+
},
807+
"dependencies" : ["LOG4J_CORE_2_24_2", "LOG4J_API_2_24_2", "JETBRAINS_JAVA_ANNOTATIONS_26_0_1"],
808+
},
809+
810+
"PROGUARD_BASE_7_7_0" : {
811+
"digest": "sha512:8d4dffc91c7710101e7b08becca484c10396a680918aea68a84929f77f037d58e717174f306a48421d051eb1559c2e40d77751b8efe7bc13472d32769f99c705",
812+
"maven" : {
813+
"groupId" : "com.guardsquare",
814+
"artifactId" : "proguard-base",
815+
"version" : "7.7.0",
816+
},
817+
"dependencies" : [
818+
"PROGUARD_CORE_9_1_10",
819+
"GSON_2.11.0",
820+
"LOG4J_CORE_2_24_2",
821+
"LOG4J_API_2_24_2",
822+
"ORG_JSON_20231013"
823+
],
824+
},
825+
826+
"PROGUARD_RETRACE_7_7_0" : {
827+
"digest": "sha512:14c88b9f314827d0f5f27ad29c9eeef622451004168970a5fc41e3ae9b085eb924132af62c32809a388a5edc7ce790e0d53ae833518031f120031111c9775991",
828+
"maven" : {
829+
"groupId" : "com.guardsquare",
830+
"artifactId" : "proguard-retrace",
831+
"version" : "7.7.0",
832+
},
833+
"dependencies" : ["PROGUARD_BASE_7_7_0"],
834+
},
835+
764836
"NINJA" : {
765837
"packedResource" : True,
766838
"version" : "1.10.2",

src/mx/_impl/mx_compat.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -795,6 +795,21 @@ def version():
795795
def automatically_export_jvmci_packages(self):
796796
return False
797797

798+
class MxCompatibility7552(MxCompatibility733):
799+
@staticmethod
800+
def version():
801+
return mx.VersionSpec("7.55.2")
802+
803+
def proguard_supported_jdk_version(self):
804+
return 24
805+
806+
def proguard_libs(self):
807+
return {
808+
'CORE': '9_1_10',
809+
'BASE': '7_7_0',
810+
'RETRACE': '7_7_0',
811+
}
812+
798813
def minVersion():
799814
_ensureCompatLoaded()
800815
return list(_versionsMap)[0]

src/mx/mx_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# The version must be updated for every PR (checked in CI) and the comment should reflect the PR's issue
2-
version = "7.55.1" # GR-65583 follow-up
2+
version = "7.55.2" # GR-65173: Update to ProGuard that supports JDK 24

0 commit comments

Comments
 (0)