Skip to content

Commit 5db3cac

Browse files
philwebbwilkinsona
authored andcommitted
Create spring-boot-autoconfigure-classic module
Closes gh-46233
1 parent 77176c0 commit 5db3cac

File tree

9 files changed

+400
-0
lines changed

9 files changed

+400
-0
lines changed

settings.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ include "spring-boot-project:spring-boot-actuator-integration-tests"
6464
include "spring-boot-project:spring-boot-amqp"
6565
include "spring-boot-project:spring-boot-artemis"
6666
include "spring-boot-project:spring-boot-autoconfigure"
67+
include "spring-boot-project:spring-boot-autoconfigure-classic"
6768
include "spring-boot-project:spring-boot-batch"
6869
include "spring-boot-project:spring-boot-cache"
6970
include "spring-boot-project:spring-boot-cassandra"
Lines changed: 287 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,287 @@
1+
/*
2+
* Copyright 2012-present the original author or authors.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the License);
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* https://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
plugins {
18+
id "java-library"
19+
id "org.springframework.boot.deployed"
20+
}
21+
22+
description = "Spring Boot AutoConfigure Classic"
23+
24+
dependencies {
25+
api(project(":spring-boot-project:spring-boot-autoconfigure"))
26+
api(project(":spring-boot-project:spring-boot-activemq")) {
27+
transitive = false
28+
}
29+
api(project(":spring-boot-project:spring-boot-amqp")) {
30+
transitive = false
31+
}
32+
api(project(":spring-boot-project:spring-boot-artemis")) {
33+
transitive = false
34+
}
35+
api(project(":spring-boot-project:spring-boot-batch")) {
36+
transitive = false
37+
}
38+
api(project(":spring-boot-project:spring-boot-cache")) {
39+
transitive = false
40+
}
41+
api(project(":spring-boot-project:spring-boot-cassandra")) {
42+
transitive = false
43+
}
44+
api(project(":spring-boot-project:spring-boot-cloudfoundry")) {
45+
transitive = false
46+
}
47+
api(project(":spring-boot-project:spring-boot-couchbase")) {
48+
transitive = false
49+
}
50+
api(project(":spring-boot-project:spring-boot-data-cassandra")) {
51+
transitive = false
52+
}
53+
api(project(":spring-boot-project:spring-boot-data-commons")) {
54+
transitive = false
55+
}
56+
api(project(":spring-boot-project:spring-boot-data-couchbase")) {
57+
transitive = false
58+
}
59+
api(project(":spring-boot-project:spring-boot-data-elasticsearch")) {
60+
transitive = false
61+
}
62+
api(project(":spring-boot-project:spring-boot-data-jdbc")) {
63+
transitive = false
64+
}
65+
api(project(":spring-boot-project:spring-boot-data-jpa")) {
66+
transitive = false
67+
}
68+
api(project(":spring-boot-project:spring-boot-data-ldap")) {
69+
transitive = false
70+
}
71+
api(project(":spring-boot-project:spring-boot-data-mongodb")) {
72+
transitive = false
73+
}
74+
api(project(":spring-boot-project:spring-boot-data-neo4j")) {
75+
transitive = false
76+
}
77+
api(project(":spring-boot-project:spring-boot-data-r2dbc")) {
78+
transitive = false
79+
}
80+
api(project(":spring-boot-project:spring-boot-data-redis")) {
81+
transitive = false
82+
}
83+
api(project(":spring-boot-project:spring-boot-data-rest")) {
84+
transitive = false
85+
}
86+
api(project(":spring-boot-project:spring-boot-elasticsearch")) {
87+
transitive = false
88+
}
89+
api(project(":spring-boot-project:spring-boot-flyway")) {
90+
transitive = false
91+
}
92+
api(project(":spring-boot-project:spring-boot-freemarker")) {
93+
transitive = false
94+
}
95+
api(project(":spring-boot-project:spring-boot-graphql")) {
96+
transitive = false
97+
}
98+
api(project(":spring-boot-project:spring-boot-groovy-templates")) {
99+
transitive = false
100+
}
101+
api(project(":spring-boot-project:spring-boot-gson")) {
102+
transitive = false
103+
}
104+
api(project(":spring-boot-project:spring-boot-h2console")) {
105+
transitive = false
106+
}
107+
api(project(":spring-boot-project:spring-boot-hateoas")) {
108+
transitive = false
109+
}
110+
api(project(":spring-boot-project:spring-boot-hazelcast")) {
111+
transitive = false
112+
}
113+
api(project(":spring-boot-project:spring-boot-health")) {
114+
transitive = false
115+
}
116+
api(project(":spring-boot-project:spring-boot-hibernate")) {
117+
transitive = false
118+
}
119+
api(project(":spring-boot-project:spring-boot-http-client")) {
120+
transitive = false
121+
}
122+
api(project(":spring-boot-project:spring-boot-http-codec")) {
123+
transitive = false
124+
}
125+
api(project(":spring-boot-project:spring-boot-http-converter")) {
126+
transitive = false
127+
}
128+
api(project(":spring-boot-project:spring-boot-integration")) {
129+
transitive = false
130+
}
131+
api(project(":spring-boot-project:spring-boot-jackson")) {
132+
transitive = false
133+
}
134+
api(project(":spring-boot-project:spring-boot-jdbc")) {
135+
transitive = false
136+
}
137+
api(project(":spring-boot-project:spring-boot-jersey")) {
138+
transitive = false
139+
}
140+
api(project(":spring-boot-project:spring-boot-jetty")) {
141+
transitive = false
142+
}
143+
api(project(":spring-boot-project:spring-boot-jms")) {
144+
transitive = false
145+
}
146+
api(project(":spring-boot-project:spring-boot-jooq")) {
147+
transitive = false
148+
}
149+
api(project(":spring-boot-project:spring-boot-jpa")) {
150+
transitive = false
151+
}
152+
api(project(":spring-boot-project:spring-boot-jsonb")) {
153+
transitive = false
154+
}
155+
api(project(":spring-boot-project:spring-boot-kafka")) {
156+
transitive = false
157+
}
158+
api(project(":spring-boot-project:spring-boot-ldap")) {
159+
transitive = false
160+
}
161+
api(project(":spring-boot-project:spring-boot-liquibase")) {
162+
transitive = false
163+
}
164+
api(project(":spring-boot-project:spring-boot-mail")) {
165+
transitive = false
166+
}
167+
api(project(":spring-boot-project:spring-boot-metrics")) {
168+
transitive = false
169+
}
170+
api(project(":spring-boot-project:spring-boot-mongodb")) {
171+
transitive = false
172+
}
173+
api(project(":spring-boot-project:spring-boot-mustache")) {
174+
transitive = false
175+
}
176+
api(project(":spring-boot-project:spring-boot-neo4j")) {
177+
transitive = false
178+
}
179+
api(project(":spring-boot-project:spring-boot-netty")) {
180+
transitive = false
181+
}
182+
api(project(":spring-boot-project:spring-boot-observation")) {
183+
transitive = false
184+
}
185+
api(project(":spring-boot-project:spring-boot-opentelemetry")) {
186+
transitive = false
187+
}
188+
api(project(":spring-boot-project:spring-boot-pulsar")) {
189+
transitive = false
190+
}
191+
api(project(":spring-boot-project:spring-boot-quartz")) {
192+
transitive = false
193+
}
194+
api(project(":spring-boot-project:spring-boot-r2dbc")) {
195+
transitive = false
196+
}
197+
api(project(":spring-boot-project:spring-boot-reactor")) {
198+
transitive = false
199+
}
200+
api(project(":spring-boot-project:spring-boot-reactor-netty")) {
201+
transitive = false
202+
}
203+
api(project(":spring-boot-project:spring-boot-restclient")) {
204+
transitive = false
205+
}
206+
api(project(":spring-boot-project:spring-boot-rsocket")) {
207+
transitive = false
208+
}
209+
api(project(":spring-boot-project:spring-boot-security")) {
210+
transitive = false
211+
}
212+
api(project(":spring-boot-project:spring-boot-security-oauth2-authorization-server")) {
213+
transitive = false
214+
}
215+
api(project(":spring-boot-project:spring-boot-security-oauth2-client")) {
216+
transitive = false
217+
}
218+
api(project(":spring-boot-project:spring-boot-security-oauth2-resource-server")) {
219+
transitive = false
220+
}
221+
api(project(":spring-boot-project:spring-boot-security-saml2")) {
222+
transitive = false
223+
}
224+
api(project(":spring-boot-project:spring-boot-sendgrid")) {
225+
transitive = false
226+
}
227+
api(project(":spring-boot-project:spring-boot-servlet")) {
228+
transitive = false
229+
}
230+
api(project(":spring-boot-project:spring-boot-session")) {
231+
transitive = false
232+
}
233+
api(project(":spring-boot-project:spring-boot-session-data-mongodb")) {
234+
transitive = false
235+
}
236+
api(project(":spring-boot-project:spring-boot-session-data-redis")) {
237+
transitive = false
238+
}
239+
api(project(":spring-boot-project:spring-boot-session-hazelcast")) {
240+
transitive = false
241+
}
242+
api(project(":spring-boot-project:spring-boot-session-jdbc")) {
243+
transitive = false
244+
}
245+
api(project(":spring-boot-project:spring-boot-sql")) {
246+
transitive = false
247+
}
248+
api(project(":spring-boot-project:spring-boot-thymeleaf")) {
249+
transitive = false
250+
}
251+
api(project(":spring-boot-project:spring-boot-tomcat")) {
252+
transitive = false
253+
}
254+
api(project(":spring-boot-project:spring-boot-tracing")) {
255+
transitive = false
256+
}
257+
api(project(":spring-boot-project:spring-boot-tx")) {
258+
transitive = false
259+
}
260+
api(project(":spring-boot-project:spring-boot-undertow")) {
261+
transitive = false
262+
}
263+
api(project(":spring-boot-project:spring-boot-validation")) {
264+
transitive = false
265+
}
266+
api(project(":spring-boot-project:spring-boot-webclient")) {
267+
transitive = false
268+
}
269+
api(project(":spring-boot-project:spring-boot-webflux")) {
270+
transitive = false
271+
}
272+
api(project(":spring-boot-project:spring-boot-webmvc")) {
273+
transitive = false
274+
}
275+
api(project(":spring-boot-project:spring-boot-webservices")) {
276+
transitive = false
277+
}
278+
api(project(":spring-boot-project:spring-boot-websocket")) {
279+
transitive = false
280+
}
281+
api(project(":spring-boot-project:spring-boot-web-server")) {
282+
transitive = false
283+
}
284+
api(project(":spring-boot-project:spring-boot-zipkin")) {
285+
transitive = false
286+
}
287+
}

spring-boot-project/spring-boot-dependencies/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1989,6 +1989,7 @@ bom {
19891989
"spring-boot-amqp",
19901990
"spring-boot-artemis",
19911991
"spring-boot-autoconfigure",
1992+
"spring-boot-autoconfigure-classic",
19921993
"spring-boot-autoconfigure-processor",
19931994
"spring-boot-batch",
19941995
"spring-boot-buildpack-platform",
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
/*
2+
* Copyright 2012-present the original author or authors.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the License);
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* https://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
plugins {
18+
id "java"
19+
}
20+
21+
description = "Spring Boot Auto-Configure Classic smoke test"
22+
23+
dependencies {
24+
implementation(project(":spring-boot-project:spring-boot-starters:spring-boot-starter"))
25+
implementation(project(":spring-boot-project:spring-boot-autoconfigure-classic"))
26+
27+
testImplementation(project(":spring-boot-project:spring-boot-starters:spring-boot-starter-test"))
28+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
/*
2+
* Copyright 2012-present the original author or authors.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* https://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
package smoketest.autoconfigureclassic;
18+
19+
import org.springframework.boot.CommandLineRunner;
20+
import org.springframework.boot.SpringApplication;
21+
import org.springframework.boot.autoconfigure.SpringBootApplication;
22+
23+
@SpringBootApplication
24+
public class SampleAutoConfigureClassicApplication implements CommandLineRunner {
25+
26+
@Override
27+
public void run(String... args) throws Exception {
28+
System.out.println("Auto-Configure Classic!");
29+
}
30+
31+
public static void main(String[] args) {
32+
SpringApplication.run(SampleAutoConfigureClassicApplication.class, args);
33+
}
34+
35+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
test.name=Phil
2+
sample.name=Andy
3+
4+
spring.profiles.validate=false
5+
spring.profiles.active=a+very(silly)!name
6+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
${Ansi.GREEN} :: Sample application build with Spring Boot${spring-boot.formatted-version} ::${Ansi.DEFAULT}

0 commit comments

Comments
 (0)