Browse Source
Rework a few of the starter POMs to reduce the import depth. Closes gh-46548pull/46550/head
57 changed files with 225 additions and 30 deletions
@ -0,0 +1,28 @@
@@ -0,0 +1,28 @@
|
||||
/* |
||||
* Copyright 2012-present the original author or authors. |
||||
* |
||||
* Licensed under the Apache License, Version 2.0 (the License); |
||||
* you may not use this file except in compliance with the License. |
||||
* You may obtain a copy of the License at |
||||
* |
||||
* https://www.apache.org/licenses/LICENSE-2.0 |
||||
* |
||||
* Unless required by applicable law or agreed to in writing, software |
||||
* distributed under the License is distributed on an "AS IS" BASIS, |
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
||||
* See the License for the specific language governing permissions and |
||||
* limitations under the License. |
||||
*/ |
||||
|
||||
plugins { |
||||
id "java" |
||||
} |
||||
|
||||
description = "Spring Boot Auto-Configure Classic smoke test" |
||||
|
||||
dependencies { |
||||
implementation(project(":starter:spring-boot-starter")) |
||||
implementation(project(":module:spring-boot-autoconfigure-classic")) |
||||
|
||||
testImplementation(project(":starter:spring-boot-starter-test")) |
||||
} |
||||
@ -0,0 +1,35 @@
@@ -0,0 +1,35 @@
|
||||
/* |
||||
* Copyright 2012-present the original author or authors. |
||||
* |
||||
* Licensed under the Apache License, Version 2.0 (the "License"); |
||||
* you may not use this file except in compliance with the License. |
||||
* You may obtain a copy of the License at |
||||
* |
||||
* https://www.apache.org/licenses/LICENSE-2.0
|
||||
* |
||||
* Unless required by applicable law or agreed to in writing, software |
||||
* distributed under the License is distributed on an "AS IS" BASIS, |
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
||||
* See the License for the specific language governing permissions and |
||||
* limitations under the License. |
||||
*/ |
||||
|
||||
package smoketest.autoconfigureclassic; |
||||
|
||||
import org.springframework.boot.CommandLineRunner; |
||||
import org.springframework.boot.SpringApplication; |
||||
import org.springframework.boot.autoconfigure.SpringBootApplication; |
||||
|
||||
@SpringBootApplication |
||||
public class SampleAutoConfigureClassicApplication implements CommandLineRunner { |
||||
|
||||
@Override |
||||
public void run(String... args) throws Exception { |
||||
System.out.println("Auto-Configure Classic!"); |
||||
} |
||||
|
||||
public static void main(String[] args) { |
||||
SpringApplication.run(SampleAutoConfigureClassicApplication.class, args); |
||||
} |
||||
|
||||
} |
||||
@ -0,0 +1,6 @@
@@ -0,0 +1,6 @@
|
||||
test.name=Phil |
||||
sample.name=Andy |
||||
|
||||
spring.profiles.validate=false |
||||
spring.profiles.active=a+very(silly)!name |
||||
|
||||
|
After Width: | Height: | Size: 62 KiB |
@ -0,0 +1 @@
@@ -0,0 +1 @@
|
||||
${Ansi.GREEN} :: Sample application build with Spring Boot${spring-boot.formatted-version} ::${Ansi.DEFAULT} |
||||
@ -0,0 +1,41 @@
@@ -0,0 +1,41 @@
|
||||
/* |
||||
* Copyright 2012-present the original author or authors. |
||||
* |
||||
* Licensed under the Apache License, Version 2.0 (the "License"); |
||||
* you may not use this file except in compliance with the License. |
||||
* You may obtain a copy of the License at |
||||
* |
||||
* https://www.apache.org/licenses/LICENSE-2.0
|
||||
* |
||||
* Unless required by applicable law or agreed to in writing, software |
||||
* distributed under the License is distributed on an "AS IS" BASIS, |
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
||||
* See the License for the specific language governing permissions and |
||||
* limitations under the License. |
||||
*/ |
||||
|
||||
package smoketest.autoconfigureclassic; |
||||
|
||||
import org.junit.jupiter.api.Test; |
||||
import org.junit.jupiter.api.extension.ExtendWith; |
||||
|
||||
import org.springframework.boot.test.system.CapturedOutput; |
||||
import org.springframework.boot.test.system.OutputCaptureExtension; |
||||
|
||||
import static org.assertj.core.api.Assertions.assertThat; |
||||
|
||||
/** |
||||
* Tests for {@link SampleAutoConfigureClassicApplication}. |
||||
* |
||||
* @author Phillip Webb |
||||
*/ |
||||
@ExtendWith(OutputCaptureExtension.class) |
||||
class SampleAutoConfigureClassicApplicationTests { |
||||
|
||||
@Test |
||||
void testApplicationRuns(CapturedOutput output) { |
||||
SampleAutoConfigureClassicApplication.main(new String[0]); |
||||
assertThat(output).contains("Auto-Configure Classic!"); |
||||
} |
||||
|
||||
} |
||||
Loading…
Reference in new issue