mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-08-29 03:06:45 +08:00
Use starter for CLI apps
Update SpringCompilerAutoConfiguration to used the spring starter rather than explicit bootstrap dependencies.
This commit is contained in:
parent
0b673d82e2
commit
d46dbca115
@ -40,20 +40,7 @@ public class SpringCompilerAutoConfiguration extends CompilerAutoConfiguration {
|
|||||||
public void applyDependencies(DependencyCustomizer dependencies) {
|
public void applyDependencies(DependencyCustomizer dependencies) {
|
||||||
dependencies.ifAnyMissingClasses(
|
dependencies.ifAnyMissingClasses(
|
||||||
"org.springframework.bootstrap.SpringApplication").add(
|
"org.springframework.bootstrap.SpringApplication").add(
|
||||||
"org.springframework.zero", "spring-autoconfigure",
|
"org.springframework.zero", "spring-starter", "0.5.0.BUILD-SNAPSHOT");
|
||||||
"0.5.0.BUILD-SNAPSHOT");
|
|
||||||
// FIXME currently broken on CI + decide how relates to logging
|
|
||||||
// dependencies.ifAnyResourcesPresent("logback.xml").add("ch.qos.logback",
|
|
||||||
// "logback-classic", "1.0.7");
|
|
||||||
// dependencies.ifNotAdded("cg.qos.logback", "logback-classic")
|
|
||||||
// .ifAnyResourcesPresent("log4j.properties", "log4j.xml")
|
|
||||||
// .add("org.slf4j", "slf4j-log4j12", "1.7.5")
|
|
||||||
// .add("log4j", "log4j", "1.2.16")
|
|
||||||
// .add("org.slf4j", "jcl-over-slf4j", "1.7.5");
|
|
||||||
// dependencies.ifNotAdded("ch.qos.logback", "logback-classic")
|
|
||||||
// .ifNotAdded("org.slf4j", "slf4j-log4j12")
|
|
||||||
// .add("org.slf4j", "slf4j-jdk14", "1.7.5")
|
|
||||||
// .add("org.slf4j", "jcl-over-slf4j", "1.7.5");
|
|
||||||
// FIXME get the version
|
// FIXME get the version
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user