From 3277e99bf8056aa439bc1246be0db86cc02bbdd4 Mon Sep 17 00:00:00 2001 From: Nemo Date: Wed, 7 Sep 2022 19:34:23 +0530 Subject: [PATCH] Maven Automation Apache projects don't consider git tags as the final release, only maven publishes. This applies for tomcat/zookeeper primarily. --- .gitignore | 1 + releases/log4j.json | 43 ++++ releases/tomcat.json | 553 ++++++++++++++++++++-------------------- releases/zookeeper.json | 99 +++---- src/maven.py | 51 ++++ 5 files changed, 402 insertions(+), 345 deletions(-) create mode 100644 releases/log4j.json create mode 100644 src/maven.py diff --git a/.gitignore b/.gitignore index 3b8ebdc8..2f403d42 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ website vendor .bundle +pyrightconfig.json diff --git a/releases/log4j.json b/releases/log4j.json new file mode 100644 index 00000000..e0adaa04 --- /dev/null +++ b/releases/log4j.json @@ -0,0 +1,43 @@ +{ + "2.18.0": "2022-06-28", + "2.17.2": "2022-02-23", + "2.3.2": "2021-12-29", + "2.12.4": "2021-12-28", + "2.17.1": "2021-12-27", + "2.3.1": "2021-12-21", + "2.12.3": "2021-12-20", + "2.17.0": "2021-12-18", + "2.12.2": "2021-12-14", + "2.16.0": "2021-12-13", + "2.15.0": "2021-12-09", + "2.14.1": "2021-03-07", + "2.14.0": "2020-11-06", + "2.13.3": "2020-05-10", + "2.13.2": "2020-04-21", + "2.13.1": "2020-02-26", + "2.13.0": "2019-12-12", + "2.12.1": "2019-08-07", + "2.12.0": "2019-06-26", + "2.11.2": "2019-02-06", + "2.11.1": "2018-07-23", + "2.11.0": "2018-03-11", + "2.10.0": "2017-11-19", + "2.9.1": "2017-09-18", + "2.9.0": "2017-08-26", + "2.8.2": "2017-04-02", + "2.8.1": "2017-02-27", + "2.8": "2017-01-22", + "2.7": "2016-10-02", + "2.6.2": "2016-07-06", + "2.6.1": "2016-06-06", + "2.6": "2016-05-25", + "2.5": "2015-12-07", + "2.4.1": "2015-10-09", + "2.4": "2015-09-20", + "2.3": "2015-05-10", + "2.2": "2015-02-22", + "2.1": "2014-10-20", + "2.0.2": "2014-08-17", + "2.0.1": "2014-07-30", + "2.0": "2014-07-12" +} \ No newline at end of file diff --git a/releases/tomcat.json b/releases/tomcat.json index 2d7da0f1..a0dbc7ab 100644 --- a/releases/tomcat.json +++ b/releases/tomcat.json @@ -1,285 +1,278 @@ { - "10.0.0": "2020-12-02", - "10.0.1": "2021-01-27", - "10.0.10": "2021-07-30", - "10.0.11": "2021-09-06", - "10.0.12": "2021-09-28", - "10.0.13": "2021-11-09", - "10.0.14": "2021-12-02", - "10.0.15": "2022-01-12", - "10.0.16": "2022-01-15", - "10.0.17": "2022-02-21", - "10.0.18": "2022-03-09", - "10.0.19": "2022-03-30", - "10.0.2": "2021-01-28", - "10.0.20": "2022-03-31", - "10.0.21": "2022-05-10", - "10.0.22": "2022-06-02", - "10.0.23": "2022-07-14", - "10.0.3": "2021-03-04", - "10.0.4": "2021-03-05", - "10.0.5": "2021-03-30", - "10.0.6": "2021-05-08", - "10.0.7": "2021-06-08", - "10.0.8": "2021-06-26", - "10.0.9": "2021-07-29", - "7.0.0": "2010-06-13", - "7.0.1": "2010-08-01", - "7.0.10": "2011-03-05", - "7.0.100": "2020-02-11", - "7.0.101": "2020-03-10", - "7.0.102": "2020-03-12", - "7.0.103": "2020-03-16", - "7.0.104": "2020-05-07", - "7.0.105": "2020-07-02", - "7.0.106": "2020-09-16", - "7.0.107": "2020-11-18", - "7.0.108": "2021-01-28", - "7.0.109": "2021-04-22", - "7.0.11": "2011-03-10", - "7.0.12": "2011-04-01", - "7.0.13": "2011-05-09", - "7.0.14": "2011-05-09", - "7.0.15": "2011-06-04", - "7.0.16": "2011-06-11", - "7.0.17": "2011-07-02", - "7.0.18": "2011-07-06", - "7.0.19": "2011-07-13", - "7.0.2": "2010-08-03", - "7.0.20": "2011-08-09", - "7.0.21": "2011-08-29", - "7.0.22": "2011-09-27", - "7.0.23": "2011-11-17", - "7.0.24": "2012-01-15", - "7.0.25": "2012-01-17", - "7.0.26": "2012-02-17", - "7.0.27": "2012-03-31", - "7.0.28": "2012-06-15", - "7.0.29": "2012-07-02", - "7.0.3": "2010-10-02", - "7.0.30": "2012-09-01", - "7.0.31": "2012-10-01", - "7.0.32": "2012-10-03", - "7.0.33": "2012-11-17", - "7.0.34": "2012-12-04", - "7.0.35": "2013-01-10", - "7.0.36": "2013-02-03", - "7.0.37": "2013-02-12", - "7.0.38": "2013-03-07", - "7.0.39": "2013-03-22", - "7.0.4": "2010-10-14", - "7.0.40": "2013-05-05", - "7.0.41": "2013-06-06", - "7.0.42": "2013-07-02", - "7.0.43": "2013-09-19", - "7.0.44": "2013-09-23", - "7.0.45": "2013-09-25", - "7.0.46": "2013-10-16", - "7.0.47": "2013-10-18", - "7.0.48": "2013-12-09", - "7.0.49": "2013-12-11", - "7.0.5": "2010-11-24", - "7.0.50": "2013-12-19", - "7.0.51": "2014-02-10", - "7.0.52": "2014-02-13", - "7.0.53": "2014-03-25", - "7.0.54": "2014-05-19", - "7.0.55": "2014-07-18", - "7.0.56": "2014-09-26", - "7.0.57": "2014-10-31", - "7.0.58": "2015-01-26", - "7.0.59": "2015-01-28", - "7.0.6": "2011-01-10", - "7.0.60": "2015-03-26", - "7.0.61": "2015-03-27", - "7.0.62": "2015-05-07", - "7.0.63": "2015-06-30", - "7.0.64": "2015-08-19", - "7.0.65": "2015-10-09", - "7.0.66": "2015-11-25", - "7.0.67": "2015-12-07", - "7.0.68": "2016-02-08", - "7.0.69": "2016-04-11", - "7.0.7": "2011-02-03", - "7.0.70": "2016-06-15", - "7.0.71": "2016-09-07", - "7.0.72": "2016-09-14", - "7.0.73": "2016-11-07", - "7.0.74": "2017-01-13", - "7.0.75": "2017-01-18", - "7.0.76": "2017-03-09", - "7.0.77": "2017-03-28", - "7.0.78": "2017-05-10", - "7.0.79": "2017-06-26", - "7.0.8": "2011-02-04", - "7.0.80": "2017-08-10", - "7.0.81": "2017-08-11", - "7.0.82": "2017-09-29", - "7.0.83": "2017-11-30", - "7.0.84": "2018-01-19", - "7.0.85": "2018-02-07", - "7.0.86": "2018-04-09", - "7.0.87": "2018-04-28", - "7.0.88": "2018-05-07", - "7.0.89": "2018-06-28", - "7.0.9": "2011-02-28", - "7.0.90": "2018-07-02", - "7.0.91": "2018-09-13", - "7.0.92": "2018-11-09", - "7.0.93": "2019-02-16", - "7.0.94": "2019-04-10", - "7.0.95": "2019-07-11", - "7.0.96": "2019-07-24", - "7.0.97": "2019-10-06", - "7.0.98": "2019-11-22", - "7.0.99": "2019-12-11", - "8.5.0": "2016-03-17", - "8.5.1": "2016-05-11", - "8.5.10": "2017-01-05", - "8.5.11": "2017-01-10", - "8.5.12": "2017-03-08", - "8.5.13": "2017-03-27", - "8.5.14": "2017-04-13", - "8.5.15": "2017-05-05", - "8.5.16": "2017-06-21", - "8.5.17": "2017-07-04", - "8.5.18": "2017-07-18", - "8.5.19": "2017-07-24", - "8.5.2": "2016-05-11", - "8.5.20": "2017-08-02", - "8.5.21": "2017-09-13", - "8.5.22": "2017-09-22", - "8.5.23": "2017-09-28", - "8.5.24": "2017-11-27", - "8.5.25": "2018-01-15", - "8.5.26": "2018-01-15", - "8.5.27": "2018-01-18", - "8.5.28": "2018-02-06", - "8.5.29": "2018-03-05", - "8.5.3": "2016-06-09", - "8.5.30": "2018-04-03", - "8.5.31": "2018-04-27", - "8.5.32": "2018-06-20", - "8.5.33": "2018-08-11", - "8.5.34": "2018-09-04", - "8.5.35": "2018-11-03", - "8.5.36": "2018-12-12", - "8.5.37": "2018-12-12", - "8.5.38": "2019-02-05", - "8.5.39": "2019-03-14", - "8.5.4": "2016-07-06", - "8.5.40": "2019-04-10", - "8.5.41": "2019-05-04", - "8.5.42": "2019-06-04", - "8.5.43": "2019-07-04", - "8.5.44": "2019-08-14", - "8.5.45": "2019-08-14", - "8.5.46": "2019-09-16", - "8.5.47": "2019-10-07", - "8.5.48": "2019-11-16", - "8.5.49": "2019-11-17", - "8.5.5": "2016-08-31", - "8.5.50": "2019-12-07", - "8.5.51": "2020-02-05", - "8.5.52": "2020-03-06", - "8.5.53": "2020-03-11", - "8.5.54": "2020-04-03", - "8.5.55": "2020-05-05", - "8.5.56": "2020-06-03", - "8.5.57": "2020-06-30", - "8.5.58": "2020-09-10", - "8.5.59": "2020-10-06", - "8.5.6": "2016-10-06", - "8.5.60": "2020-11-12", - "8.5.61": "2020-12-03", - "8.5.62": "2021-01-27", - "8.5.63": "2021-01-29", - "8.5.64": "2021-03-04", - "8.5.65": "2021-03-30", - "8.5.66": "2021-05-08", - "8.5.67": "2021-06-10", - "8.5.68": "2021-06-11", - "8.5.69": "2021-06-29", - "8.5.7": "2016-11-02", - "8.5.70": "2021-08-05", - "8.5.71": "2021-09-09", - "8.5.72": "2021-10-01", - "8.5.73": "2021-11-11", - "8.5.74": "2022-01-12", - "8.5.75": "2022-01-17", - "8.5.76": "2022-02-23", - "8.5.77": "2022-03-13", - "8.5.78": "2022-03-31", - "8.5.79": "2022-05-16", - "8.5.8": "2016-11-03", - "8.5.80": "2022-06-07", - "8.5.81": "2022-06-08", "8.5.82": "2022-08-08", - "8.5.9": "2016-12-05", - "9.0.0": "2017-09-22", - "9.0.1": "2017-09-27", - "9.0.10": "2018-06-20", - "9.0.11": "2018-08-11", - "9.0.12": "2018-09-04", - "9.0.13": "2018-11-02", - "9.0.14": "2018-12-06", - "9.0.15": "2019-02-03", - "9.0.16": "2019-02-04", - "9.0.17": "2019-03-13", - "9.0.18": "2019-04-10", - "9.0.19": "2019-04-12", - "9.0.2": "2017-11-25", - "9.0.20": "2019-05-03", - "9.0.21": "2019-06-04", - "9.0.22": "2019-07-04", - "9.0.23": "2019-08-14", - "9.0.24": "2019-08-14", - "9.0.25": "2019-09-16", - "9.0.26": "2019-09-16", - "9.0.27": "2019-10-07", - "9.0.28": "2019-11-14", - "9.0.29": "2019-11-16", - "9.0.3": "2018-01-11", - "9.0.30": "2019-12-07", - "9.0.31": "2020-02-05", - "9.0.32": "2020-03-06", - "9.0.33": "2020-03-11", - "9.0.34": "2020-04-03", - "9.0.35": "2020-05-05", - "9.0.36": "2020-06-03", - "9.0.37": "2020-06-30", - "9.0.38": "2020-09-10", - "9.0.39": "2020-10-06", - "9.0.4": "2018-01-18", - "9.0.40": "2020-11-12", - "9.0.41": "2020-12-03", - "9.0.42": "2021-01-27", - "9.0.43": "2021-01-28", - "9.0.44": "2021-03-04", - "9.0.45": "2021-03-30", - "9.0.46": "2021-05-08", - "9.0.47": "2021-06-08", - "9.0.48": "2021-06-10", - "9.0.49": "2021-06-27", - "9.0.5": "2018-02-06", - "9.0.50": "2021-06-28", - "9.0.51": "2021-07-30", - "9.0.52": "2021-07-31", - "9.0.53": "2021-09-06", - "9.0.54": "2021-09-28", - "9.0.55": "2021-11-10", - "9.0.56": "2021-12-02", - "9.0.57": "2022-01-12", - "9.0.58": "2022-01-15", - "9.0.59": "2022-02-21", - "9.0.6": "2018-03-05", - "9.0.60": "2022-03-09", - "9.0.61": "2022-03-30", - "9.0.62": "2022-03-31", - "9.0.63": "2022-05-11", - "9.0.64": "2022-06-02", "9.0.65": "2022-07-14", - "9.0.7": "2018-04-03", + "10.0.23": "2022-07-14", + "10.1.0-M17": "2022-07-13", + "8.5.81": "2022-06-08", + "9.0.64": "2022-06-02", + "10.0.22": "2022-06-02", + "10.1.0-M16": "2022-06-02", + "8.5.79": "2022-05-16", + "9.0.63": "2022-05-11", + "10.0.21": "2022-05-10", + "10.1.0-M15": "2022-05-10", + "8.5.78": "2022-03-31", + "10.0.20": "2022-03-31", + "9.0.62": "2022-03-31", + "10.1.0-M14": "2022-03-31", + "8.5.77": "2022-03-13", + "9.0.60": "2022-03-09", + "10.0.18": "2022-03-09", + "10.1.0-M12": "2022-03-09", + "8.5.76": "2022-02-23", + "9.0.59": "2022-02-21", + "10.0.17": "2022-02-21", + "10.1.0-M11": "2022-02-21", + "8.5.75": "2022-01-17", + "9.0.58": "2022-01-15", + "10.0.16": "2022-01-15", + "10.1.0-M10": "2022-01-15", + "10.0.14": "2021-12-02", + "9.0.56": "2021-12-02", + "10.1.0-M8": "2021-12-02", + "8.5.73": "2021-11-11", + "9.0.55": "2021-11-10", + "10.0.13": "2021-11-09", + "10.1.0-M7": "2021-11-08", + "8.5.72": "2021-10-01", + "9.0.54": "2021-09-28", + "10.0.12": "2021-09-28", + "10.1.0-M6": "2021-09-28", + "8.5.71": "2021-09-09", + "9.0.53": "2021-09-06", + "10.0.11": "2021-09-06", + "10.1.0-M5": "2021-09-06", + "8.5.70": "2021-08-09", + "10.1.0-M4": "2021-08-03", + "9.0.52": "2021-07-31", + "10.0.10": "2021-07-30", + "8.5.69": "2021-06-30", + "9.0.50": "2021-06-28", + "10.0.8": "2021-06-25", + "10.1.0-M2": "2021-06-25", + "8.5.68": "2021-06-11", + "9.0.48": "2021-06-10", + "10.0.7": "2021-06-08", + "10.1.0-M1": "2021-06-08", + "8.5.66": "2021-05-08", + "9.0.46": "2021-05-08", + "10.0.6": "2021-05-08", + "7.0.109": "2021-04-22", + "8.5.65": "2021-03-30", + "9.0.45": "2021-03-30", + "10.0.5": "2021-03-30", + "10.0.4": "2021-03-05", + "8.5.64": "2021-03-04", + "9.0.44": "2021-03-04", + "8.5.63": "2021-01-29", + "9.0.43": "2021-01-28", + "10.0.2": "2021-01-28", + "7.0.108": "2021-01-28", + "8.5.61": "2020-12-03", + "9.0.41": "2020-12-03", + "10.0.0": "2020-12-03", + "7.0.107": "2020-11-18", + "8.5.60": "2020-11-12", + "9.0.40": "2020-11-12", + "10.0.0-M10": "2020-11-12", + "8.5.59": "2020-10-06", + "9.0.39": "2020-10-06", + "10.0.0-M9": "2020-10-06", + "7.0.106": "2020-09-16", + "8.5.58": "2020-09-10", + "9.0.38": "2020-09-10", + "10.0.0-M8": "2020-09-09", + "7.0.105": "2020-07-02", + "8.5.57": "2020-06-30", + "9.0.37": "2020-06-30", + "10.0.0-M7": "2020-06-30", + "8.5.56": "2020-06-03", + "9.0.36": "2020-06-03", + "10.0.0-M6": "2020-06-03", + "7.0.104": "2020-05-07", + "8.5.55": "2020-05-05", + "9.0.35": "2020-05-05", + "10.0.0-M5": "2020-05-05", + "8.5.54": "2020-04-03", + "9.0.34": "2020-04-03", + "10.0.0-M4": "2020-04-03", + "7.0.103": "2020-03-16", + "8.5.53": "2020-03-11", + "9.0.33": "2020-03-11", + "10.0.0-M3": "2020-03-10", + "10.0.0-M1": "2020-02-14", + "7.0.100": "2020-02-11", + "8.5.51": "2020-02-05", + "9.0.31": "2020-02-05", + "7.0.99": "2019-12-11", + "8.5.50": "2019-12-07", + "9.0.30": "2019-12-07", + "8.5.49": "2019-11-17", + "9.0.29": "2019-11-16", + "8.5.47": "2019-10-07", + "9.0.27": "2019-10-07", + "8.5.46": "2019-09-16", + "9.0.26": "2019-09-16", + "8.5.45": "2019-08-14", + "9.0.24": "2019-08-14", + "7.0.96": "2019-07-24", + "8.5.43": "2019-07-04", + "9.0.22": "2019-07-04", + "8.5.42": "2019-06-04", + "9.0.21": "2019-06-04", + "8.5.41": "2019-05-04", + "9.0.20": "2019-05-03", + "9.0.19": "2019-04-12", + "7.0.94": "2019-04-10", + "8.5.40": "2019-04-10", + "8.5.39": "2019-03-14", + "9.0.17": "2019-03-13", + "7.0.93": "2019-02-16", + "8.5.38": "2019-02-05", + "9.0.16": "2019-02-04", + "8.5.37": "2018-12-12", + "9.0.14": "2018-12-06", + "7.0.92": "2018-11-09", + "8.5.35": "2018-11-03", + "9.0.13": "2018-11-02", + "7.0.91": "2018-09-13", + "8.5.34": "2018-09-04", + "9.0.12": "2018-09-04", + "8.5.33": "2018-08-12", + "9.0.11": "2018-08-11", + "7.0.90": "2018-07-02", + "8.0.53": "2018-06-29", + "8.5.32": "2018-06-20", + "9.0.10": "2018-06-20", + "7.0.88": "2018-05-07", + "8.0.52": "2018-04-28", + "8.5.31": "2018-04-27", "9.0.8": "2018-04-27", - "9.0.9": "2018-06-20" + "8.0.51": "2018-04-09", + "7.0.86": "2018-04-09", + "8.5.30": "2018-04-03", + "9.0.7": "2018-04-03", + "8.5.29": "2018-03-05", + "9.0.6": "2018-03-05", + "8.0.50": "2018-02-07", + "7.0.85": "2018-02-07", + "8.5.28": "2018-02-06", + "9.0.5": "2018-02-06", + "8.0.49": "2018-01-19", + "7.0.84": "2018-01-19", + "8.5.27": "2018-01-18", + "9.0.4": "2018-01-18", + "8.0.48": "2017-11-30", + "8.5.24": "2017-11-27", + "9.0.2": "2017-11-25", + "8.0.47": "2017-09-29", + "7.0.82": "2017-09-29", + "8.5.23": "2017-09-28", + "9.0.1": "2017-09-27", + "8.5.21": "2017-09-13", + "9.0.0.M27": "2017-09-13", + "7.0.81": "2017-08-11", + "8.0.46": "2017-08-10", + "8.5.20": "2017-08-02", + "9.0.0.M26": "2017-08-02", + "8.5.19": "2017-07-24", + "9.0.0.M25": "2017-07-24", + "8.0.45": "2017-06-26", + "7.0.79": "2017-06-26", + "8.5.16": "2017-06-21", + "9.0.0.M22": "2017-06-21", + "8.0.44": "2017-05-10", + "7.0.78": "2017-05-10", + "8.5.15": "2017-05-05", + "9.0.0.M21": "2017-05-04", + "8.5.14": "2017-04-13", + "9.0.0.M20": "2017-04-12", + "7.0.77": "2017-03-28", + "8.0.43": "2017-03-28", + "8.5.13": "2017-03-27", + "9.0.0.M19": "2017-03-27", + "7.0.76": "2017-03-09", + "8.0.42": "2017-03-08", + "8.5.12": "2017-03-08", + "9.0.0.M18": "2017-03-08", + "8.0.41": "2017-01-18", + "7.0.75": "2017-01-18", + "8.5.11": "2017-01-10", + "9.0.0.M17": "2017-01-10", + "8.5.9": "2016-12-05", + "9.0.0.M15": "2016-12-05", + "8.0.39": "2016-11-09", + "7.0.73": "2016-11-07", + "8.5.8": "2016-11-03", + "9.0.0.M13": "2016-11-03", + "8.0.38": "2016-10-06", + "8.5.6": "2016-10-06", + "9.0.0.M11": "2016-10-06", + "7.0.72": "2016-09-14", + "8.0.37": "2016-09-01", + "8.5.5": "2016-08-31", + "9.0.0.M10": "2016-08-31", + "8.5.4": "2016-07-06", + "9.0.0.M9": "2016-07-04", + "7.0.70": "2016-06-15", + "8.0.36": "2016-06-09", + "8.5.3": "2016-06-09", + "9.0.0.M8": "2016-06-07", + "8.0.35": "2016-05-11", + "8.5.2": "2016-05-11", + "9.0.0.M6": "2016-05-11", + "7.0.69": "2016-04-11", + "8.0.33": "2016-03-18", + "8.5.0": "2016-03-17", + "9.0.0.M4": "2016-03-12", + "7.0.68": "2016-02-08", + "8.0.32": "2016-02-02", + "9.0.0.M3": "2016-02-01", + "7.0.67": "2015-12-07", + "8.0.30": "2015-12-01", + "8.0.29": "2015-11-20", + "9.0.0.M1": "2015-11-13", + "7.0.65": "2015-10-09", + "8.0.28": "2015-10-07", + "8.0.27": "2015-09-28", + "7.0.64": "2015-08-19", + "8.0.26": "2015-08-18", + "8.0.24": "2015-07-01", + "7.0.63": "2015-06-30", + "8.0.23": "2015-05-19", + "7.0.62": "2015-05-07", + "8.0.22": "2015-04-29", + "7.0.61": "2015-03-27", + "8.0.21": "2015-03-23", + "8.0.20": "2015-02-15", + "7.0.59": "2015-01-28", + "8.0.18": "2015-01-23", + "8.0.17": "2015-01-09", + "7.0.57": "2014-11-03", + "8.0.15": "2014-11-02", + "7.0.56": "2014-09-28", + "8.0.14": "2014-09-24", + "8.0.12": "2014-08-29", + "8.0.11": "2014-08-15", + "7.0.55": "2014-07-18", + "8.0.9": "2014-06-19", + "7.0.54": "2014-05-20", + "8.0.8": "2014-05-16", + "7.0.53": "2014-03-25", + "8.0.5": "2014-03-24", + "7.0.52": "2014-02-13", + "8.0.3": "2014-02-07", + "8.0.1": "2014-01-29", + "7.0.50": "2013-12-19", + "8.0.0-RC10": "2013-12-19", + "7.0.47": "2013-10-18", + "8.0.0-RC5": "2013-10-16", + "8.0.0-RC3": "2013-09-19", + "8.0.0-RC1": "2013-08-01", + "7.0.42": "2013-07-02", + "7.0.41": "2013-06-06", + "7.0.40": "2013-05-05", + "7.0.39": "2013-03-22", + "7.0.37": "2013-02-12", + "7.0.35": "2013-01-10" } \ No newline at end of file diff --git a/releases/zookeeper.json b/releases/zookeeper.json index ac6a41f1..0e90d027 100644 --- a/releases/zookeeper.json +++ b/releases/zookeeper.json @@ -1,68 +1,37 @@ { - "3.0.0": "2010-11-24", - "3.0.1": "2010-11-24", - "3.1.0": "2010-11-24", - "3.1.1": "2010-11-24", - "3.1.2": "2010-11-24", - "3.2.0": "2010-11-24", - "3.2.1": "2010-11-24", - "3.2.2": "2010-11-24", - "3.3.0": "2010-11-24", - "3.3.1": "2010-11-24", - "3.3.2": "2010-11-24", - "3.3.3": "2011-02-27", - "3.3.4": "2011-11-23", - "3.3.5": "2012-03-19", - "3.3.6": "2012-08-01", - "3.4.0": "2011-11-23", - "3.4.1": "2011-12-16", - "3.4.10": "2017-03-30", - "3.4.11": "2017-11-08", - "3.4.12": "2018-04-24", - "3.4.13": "2018-07-15", - "3.4.14": "2019-04-01", - "3.4.2": "2011-12-29", - "3.4.3": "2012-02-13", - "3.4.4": "2012-09-23", + "3.5.10": "2022-05-29", + "3.7.1": "2022-05-07", + "3.8.0": "2022-02-25", + "3.6.3": "2021-04-08", + "3.7.0": "2021-03-17", + "3.5.9": "2021-01-06", + "3.6.2": "2020-09-04", + "3.5.8": "2020-05-04", + "3.6.1": "2020-04-21", + "3.6.0": "2020-02-25", + "3.5.7": "2020-02-10", + "3.5.6": "2019-10-08", + "3.5.5": "2019-05-03", + "3.4.14": "2019-03-06", + "3.4.13": "2018-06-30", + "3.4.12": "2018-03-27", + "3.4.11": "2017-11-01", + "3.4.10": "2017-03-23", + "3.4.9": "2016-08-23", + "3.4.8": "2016-02-06", + "3.4.7": "2015-11-11", + "3.4.6": "2014-02-23", "3.4.5": "2012-11-19", - "3.4.6": "2014-03-12", - "3.4.7": "2015-11-21", - "3.4.8": "2016-02-20", - "3.4.9": "2016-09-03", - "3.5.0": "2014-08-06", - "3.5.1": "2015-08-31", - "3.5.10": "2022-06-04", - "3.5.2": "2016-07-20", - "3.5.3": "2017-04-16", - "3.5.4": "2018-05-16", - "3.5.5": "2019-05-20", - "3.5.6": "2019-10-16", - "3.5.7": "2020-02-14", - "3.5.8": "2020-05-11", - "3.5.9": "2021-01-14", - "3.6.0": "2020-03-03", - "3.6.0-0": "2020-01-11", - "3.6.0-1": "2020-02-01", - "3.6.0-2": "2020-02-05", - "3.6.0-3": "2020-02-18", - "3.6.0-4": "2020-02-25", - "3.6.1": "2020-04-30", - "3.6.1-0": "2020-04-15", - "3.6.1-1": "2020-04-21", - "3.6.2": "2020-09-09", - "3.6.2-0": "2020-08-31", - "3.6.2-1": "2020-09-04", - "3.6.3": "2021-04-13", - "3.6.3-0": "2021-04-01", - "3.6.3-1": "2021-04-04", - "3.6.3-2": "2021-04-08", - "3.7.0": "2021-03-27", - "3.7.0-0": "2021-01-19", - "3.7.0-1": "2021-01-24", - "3.7.0-2": "2021-03-17", - "3.7.1": "2022-05-10", - "3.7.1-0": "2022-04-25", - "3.7.1-1": "2022-05-07", - "3.8.0-0": "2022-02-04", - "3.8.0-1": "2022-02-25" + "3.4.4": "2012-09-24", + "3.3.6": "2012-08-03", + "3.3.5": "2012-03-21", + "3.4.3": "2012-02-14", + "3.4.2": "2011-12-29", + "3.4.1": "2011-12-17", + "3.3.4": "2011-11-29", + "3.4.0": "2011-11-23", + "3.3.3": "2011-03-01", + "3.3.2": "2010-11-12", + "3.3.1": "2010-05-07", + "3.3.0": "2010-03-19" } \ No newline at end of file diff --git a/src/maven.py b/src/maven.py new file mode 100644 index 00000000..888d3a3b --- /dev/null +++ b/src/maven.py @@ -0,0 +1,51 @@ +from glob import glob +import os +import sys +import json +import frontmatter +import urllib.request +import datetime + +def fetch_releases(package_identifier): + groupId, artifactId = package_identifier.split("/") + releases = {} + start = 0 + while True: + url = "https://search.maven.org/solrsearch/select?q=g:%s+AND+a:%s&core=gav&rows=100&wt=json&start=%s" % (groupId, artifactId, start) + with urllib.request.urlopen(url, data=None, timeout=5) as response: + data = json.load(response) + for row in data['response']['docs']: + date = datetime.datetime.utcfromtimestamp(row['timestamp'] / 1000) + version = row['v'] + if not any(exception in version for exception in ['alpha', 'beta', 'nightly', 'rc']): + releases[version] = date.strftime("%Y-%m-%d") + start+=100 + if data['response']['numFound'] <= start: + break + return releases + +def update_releases(product_filter=None): + for product_file in glob("website/products/*.md"): + product_name = os.path.splitext(os.path.basename(product_file))[0] + if product_filter and product_name != product_filter: + continue + with open(product_file, "r") as f: + data = frontmatter.load(f) + if "auto" in data: + for config in data["auto"]: + for key, _ in config.items(): + if key == "maven": + update_product(product_name, config) + +def update_product(product_name, config): + print("::group::%s" % product_name) + r = fetch_releases(config['maven']) + with open("releases/%s.json" % product_name, "w") as f: + f.write(json.dumps(r, indent=2)) + print("::endgroup::") + +if __name__ == "__main__": + if len(sys.argv) > 1: + update_releases(sys.argv[1]) + else: + update_releases()