Skip to content

Commit 1edaad8

Browse files
committed
Consider new modules when computing the changelog
Closes gh-46649
1 parent 7d1f974 commit 1edaad8

File tree

1 file changed

+115
-8
lines changed
  • configuration-metadata/spring-boot-configuration-metadata-changelog-generator

1 file changed

+115
-8
lines changed

configuration-metadata/spring-boot-configuration-metadata-changelog-generator/build.gradle

Lines changed: 115 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,12 @@ plugins {
2121
description = "Spring Boot Configuration Metadata Changelog Generator"
2222

2323
configurations {
24-
oldMetadata
25-
newMetadata
24+
oldMetadata {
25+
transitive = false
26+
}
27+
newMetadata {
28+
transitive = false
29+
}
2630
}
2731

2832
dependencies {
@@ -34,15 +38,118 @@ dependencies {
3438
testImplementation("org.junit.jupiter:junit-jupiter")
3539
}
3640

41+
def dependenciesOf(String version) {
42+
if (version.startsWith("4.")) {
43+
return [
44+
"spring-boot",
45+
"spring-boot-activemq",
46+
"spring-boot-actuator",
47+
"spring-boot-actuator-autoconfigure",
48+
"spring-boot-amqp",
49+
"spring-boot-artemis",
50+
"spring-boot-autoconfigure",
51+
"spring-boot-batch",
52+
"spring-boot-cache",
53+
"spring-boot-cassandra",
54+
"spring-boot-couchbase",
55+
"spring-boot-data-cassandra",
56+
"spring-boot-data-commons",
57+
"spring-boot-data-couchbase",
58+
"spring-boot-data-elasticsearch",
59+
"spring-boot-data-jdbc",
60+
"spring-boot-data-jpa",
61+
"spring-boot-data-ldap",
62+
"spring-boot-data-mongodb",
63+
"spring-boot-data-neo4j",
64+
"spring-boot-data-r2dbc",
65+
"spring-boot-data-redis",
66+
"spring-boot-data-rest",
67+
"spring-boot-devtools",
68+
"spring-boot-docker-compose",
69+
"spring-boot-elasticsearch",
70+
"spring-boot-flyway",
71+
"spring-boot-freemarker",
72+
"spring-boot-graphql",
73+
"spring-boot-groovy-templates",
74+
"spring-boot-gson",
75+
"spring-boot-h2console",
76+
"spring-boot-hateoas",
77+
"spring-boot-hazelcast",
78+
"spring-boot-hibernate",
79+
"spring-boot-http-client",
80+
"spring-boot-http-codec",
81+
"spring-boot-http-converter",
82+
"spring-boot-integration",
83+
"spring-boot-jackson",
84+
"spring-boot-jdbc",
85+
"spring-boot-jersey",
86+
"spring-boot-jetty",
87+
"spring-boot-jms",
88+
"spring-boot-jooq",
89+
"spring-boot-jpa",
90+
"spring-boot-kafka",
91+
"spring-boot-ldap",
92+
"spring-boot-liquibase",
93+
"spring-boot-mail",
94+
"spring-boot-metrics",
95+
"spring-boot-mongodb",
96+
"spring-boot-mustache",
97+
"spring-boot-neo4j",
98+
"spring-boot-netty",
99+
"spring-boot-observation",
100+
"spring-boot-opentelemetry",
101+
"spring-boot-pulsar",
102+
"spring-boot-quartz",
103+
"spring-boot-r2dbc",
104+
"spring-boot-reactor",
105+
"spring-boot-reactor-netty",
106+
"spring-boot-restclient",
107+
"spring-boot-rsocket",
108+
"spring-boot-security",
109+
"spring-boot-security-oauth2-authorization-server",
110+
"spring-boot-security-oauth2-client",
111+
"spring-boot-security-oauth2-resource-server",
112+
"spring-boot-security-saml2",
113+
"spring-boot-sendgrid",
114+
"spring-boot-servlet",
115+
"spring-boot-session",
116+
"spring-boot-session-data-mongodb",
117+
"spring-boot-session-data-redis",
118+
"spring-boot-session-hazelcast",
119+
"spring-boot-session-jdbc",
120+
"spring-boot-sql",
121+
"spring-boot-test-autoconfigure",
122+
"spring-boot-testcontainers",
123+
"spring-boot-thymeleaf",
124+
"spring-boot-tomcat",
125+
"spring-boot-tracing",
126+
"spring-boot-tx",
127+
"spring-boot-undertow",
128+
"spring-boot-validation",
129+
"spring-boot-web-server",
130+
"spring-boot-webclient",
131+
"spring-boot-webflux",
132+
"spring-boot-webmvc",
133+
"spring-boot-webservices",
134+
"spring-boot-zipkin"
135+
]
136+
}
137+
return [
138+
"spring-boot",
139+
"spring-boot-actuator",
140+
"spring-boot-actuator-autoconfigure",
141+
"spring-boot-autoconfigure",
142+
"spring-boot-devtools",
143+
"spring-boot-test-autoconfigure"
144+
]
145+
}
146+
37147
if (project.hasProperty("oldVersion") && project.hasProperty("newVersion")) {
38148
dependencies {
39-
["spring-boot",
40-
"spring-boot-actuator",
41-
"spring-boot-actuator-autoconfigure",
42-
"spring-boot-autoconfigure",
43-
"spring-boot-devtools",
44-
"spring-boot-test-autoconfigure"].each {
149+
dependenciesOf(oldVersion).each {
45150
oldMetadata("org.springframework.boot:$it:$oldVersion")
151+
}
152+
dependenciesOf(newVersion).each {
46153
newMetadata("org.springframework.boot:$it:$newVersion")
47154
}
48155
}

0 commit comments

Comments
 (0)