From 60ce922a5b4c55437c0a37fcba49bc146e8e67c5 Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Thu, 21 Jan 2021 15:11:29 +0000 Subject: [PATCH] Prohibit major upgrades that are not of interest Closes gh-24960 --- .../spring-boot-dependencies/build.gradle | 84 +++++++++++++++++++ 1 file changed, 84 insertions(+) diff --git a/spring-boot-project/spring-boot-dependencies/build.gradle b/spring-boot-project/spring-boot-dependencies/build.gradle index 2fd7a3ef28..10e5a2bc4d 100644 --- a/spring-boot-project/spring-boot-dependencies/build.gradle +++ b/spring-boot-project/spring-boot-dependencies/build.gradle @@ -54,6 +54,9 @@ bom { } } library("ANTLR2", "2.7.7") { + prohibit("20030911") { + because "it is old version that used a different versioning scheme" + } group("antlr") { modules = [ "antlr" @@ -110,6 +113,9 @@ bom { } } library("Atomikos", "4.0.6") { + prohibit("[5,)") { + because "our support is deprecated" + } group("com.atomikos") { modules = [ "transactions-jdbc", @@ -325,6 +331,9 @@ bom { } } library("Glassfish EL", "3.0.3") { + prohibit("[4.0.0-RC1,)") { + because "it uses the jakarta.* namespace" + } group("org.glassfish") { modules = [ "jakarta.el" @@ -332,6 +341,9 @@ bom { } } library("Glassfish JAXB", "2.3.3") { + prohibit("[3.0.0-M1,)") { + because "it uses the jakarta.* namespace" + } group("org.glassfish.jaxb") { modules = [ "codemodel", @@ -392,6 +404,9 @@ bom { } } library("Hibernate", "5.4.27.Final") { + prohibit("[6.0.0.Alpha2,)") { + because "it uses the jakarta.* namespace" + } group("org.hibernate") { modules = [ "hibernate-c3p0", @@ -411,6 +426,9 @@ bom { } } library("Hibernate Validator", "6.2.0.Final") { + prohibit("[7.0.0.Alpha1,)") { + because "it uses the jakarta.* namespace" + } group("org.hibernate.validator") { modules = [ "hibernate-validator", @@ -494,6 +512,9 @@ bom { } } library("Jakarta Activation", "1.2.2") { + prohibit("[2.0.0-rc1,)") { + because "it uses the jakarta.* namespace" + } group("com.sun.activation") { modules = [ "jakarta.activation" @@ -506,6 +527,9 @@ bom { } } library("Jakarta Annotation", "1.3.5") { + prohibit("[2.0.0-RC1,)") { + because "it uses the jakarta.* namespace" + } group("jakarta.annotation") { modules = [ "jakarta.annotation-api" @@ -513,6 +537,9 @@ bom { } } library("Jakarta JMS", "2.0.3") { + prohibit("[3.0.0-RC1,)") { + because "it uses the jakarta.* namespace" + } group("jakarta.jms") { modules = [ "jakarta.jms-api" @@ -520,6 +547,9 @@ bom { } } library("Jakarta Json", "1.1.6") { + prohibit("[2.0.0-RC1,)") { + because "it uses the jakarta.* namespace" + } group("jakarta.json") { modules = [ "jakarta.json-api" @@ -527,6 +557,9 @@ bom { } } library("Jakarta Json Bind", "1.0.2") { + prohibit("[2.0.0-RC1,)") { + because "it uses the jakarta.* namespace" + } group("jakarta.json.bind") { modules = [ "jakarta.json.bind-api" @@ -534,6 +567,9 @@ bom { } } library("Jakarta Mail", "1.6.5") { + prohibit("[2.0.0-RC1,)") { + because "it uses the jakarta.* namespace" + } group("jakarta.mail") { modules = [ "jakarta.mail-api" @@ -541,6 +577,9 @@ bom { } } library("Jakarta Persistence", "2.2.3") { + prohibit("[3.0.0-RC1,)") { + because "it uses the jakarta.* namespace" + } group("jakarta.persistence") { modules = [ "jakarta.persistence-api" @@ -548,6 +587,9 @@ bom { } } library("Jakarta Servlet", "4.0.4") { + prohibit("[5.0.0-M1,)") { + because "it uses the jakarta.* namespace" + } group("jakarta.servlet") { modules = [ "jakarta.servlet-api" @@ -555,6 +597,9 @@ bom { } } library("Jakarta Servlet JSP JSTL", "1.2.7") { + prohibit("[2.0.0-RC1,)") { + because "it uses the jakarta.* namespace" + } group("jakarta.servlet.jsp.jstl") { modules = [ "jakarta.servlet.jsp.jstl-api" @@ -562,6 +607,9 @@ bom { } } library("Jakarta Transaction", "1.3.3") { + prohibit("[2.0.0-RC1,)") { + because "it uses the jakarta.* namespace" + } group("jakarta.transaction") { modules = [ "jakarta.transaction-api" @@ -569,6 +617,9 @@ bom { } } library("Jakarta Validation", "2.0.2") { + prohibit("[3.0.0-M1,)") { + because "it uses the jakarta.* namespace" + } group("jakarta.validation") { modules = [ "jakarta.validation-api" @@ -576,6 +627,9 @@ bom { } } library("Jakarta WebSocket", "1.1.2") { + prohibit("[2.0.0-M1,)") { + because "it uses the jakarta.* namespace" + } group("jakarta.websocket") { modules = [ "jakarta.websocket-api" @@ -583,6 +637,9 @@ bom { } } library("Jakarta WS RS", "2.1.6") { + prohibit("[3.0.0-M1,)") { + because "it uses the jakarta.* namespace" + } group("jakarta.ws.rs") { modules = [ "jakarta.ws.rs-api" @@ -590,6 +647,9 @@ bom { } } library("Jakarta XML Bind", "2.3.3") { + prohibit("[3.0.0-RC1,)") { + because "it uses the jakarta.* namespace" + } group("jakarta.xml.bind") { modules = [ "jakarta.xml.bind-api" @@ -597,6 +657,9 @@ bom { } } library("Jakarta XML SOAP", "1.4.2") { + prohibit("[2.0.0-RC1,)") { + because "it uses the jakarta.* namespace" + } group("jakarta.xml.soap") { modules = [ "jakarta.xml.soap-api" @@ -604,6 +667,9 @@ bom { } } library("Jakarta XML WS", "2.3.3") { + prohibit("[3.0.0-RC1,)") { + because "it uses the jakarta.* namespace" + } group("jakarta.xml.ws") { modules = [ "jakarta.xml.ws-api" @@ -761,6 +827,9 @@ bom { } } library("Jersey", "2.33") { + prohibit("[3.0.0-M1,)") { + because "it uses the jakarta.* namespace" + } group("org.glassfish.jersey") { imports = [ "jersey-bom" @@ -782,6 +851,9 @@ bom { } } library("Jetty Reactive HTTPClient", "1.1.5") { + prohibit("[2,)") { + because "it uses the jakarta.* namespace" + } group("org.eclipse.jetty") { modules = [ "jetty-reactive-httpclient" @@ -789,6 +861,9 @@ bom { } } library("Jetty", "9.4.36.v20210114") { + prohibit("[11.0.0-alpha0,)") { + because "it uses the jakarta.* namespace" + } group("org.eclipse.jetty") { imports = [ "jetty-bom" @@ -1438,6 +1513,9 @@ bom { } } library("SAAJ Impl", "1.5.2") { + prohibit("[2.0.0-M1,)") { + because "it uses the jakarta.* namespace" + } group("com.sun.xml.messaging.saaj") { modules = [ "saaj-impl" @@ -1646,6 +1724,9 @@ bom { } } library("Sun Mail", "1.6.5") { + prohibit("[2.0.0-RC1,)") { + because "it uses the jakarta.* namespace" + } group("com.sun.mail") { modules = [ "jakarta.mail" @@ -1689,6 +1770,9 @@ bom { } } library("Tomcat", "9.0.41") { + prohibit("[10.0.0-M1,)") { + because "it uses the jakarta.* namespace" + } group("org.apache.tomcat") { modules = [ "tomcat-annotations-api",