[bs-113] Remove dependency on slf4j for core jars

Also added explicit version for starter dependencies.

[Fixes #49588267]
This commit is contained in:
Dave Syer 2013-05-09 15:32:31 +01:00
parent 9f4eb6befc
commit 13cb224b0a
6 changed files with 62 additions and 26 deletions

View File

@ -120,11 +120,9 @@ Spring Bootstrap. Features include:
configuration, e.g. `@ConditionalOnBean`, configuration, e.g. `@ConditionalOnBean`,
`@ConditionalOnMissingBean` and `@ConditionalOnClass`. `@ConditionalOnMissingBean` and `@ConditionalOnClass`.
### Spring Bootstrap Service ### Spring Bootstrap Actuator
<!-- FIXME: change the name --> Spring Bootstrap Actuator uses auto-configuration features to decorate
Spring Bootstrap Service uses auto-configuration features to decorate
your application with features that make it instantly deployable and your application with features that make it instantly deployable and
supportable in production. For instance if you are writing a JSON web supportable in production. For instance if you are writing a JSON web
service then it will provide a server, security, logging, externalized service then it will provide a server, security, logging, externalized
@ -132,11 +130,9 @@ configuration, management endpoints, an audit abstraction, and more.
If you want to switch off the built in features, or extend or replace If you want to switch off the built in features, or extend or replace
them, it makes that really easy as well. them, it makes that really easy as well.
### Spring Bootstrap Applications ### Spring Bootstrap Starters
<!-- FIXME: change the name --> Spring Bootstrap Starters are a set of convenient dependency
Spring Bootstrap Applications are a set of convenient dependency
descriptors that you can include in your application. You get a descriptors that you can include in your application. You get a
one-stop-shop for all the Spring and related technology that you need one-stop-shop for all the Spring and related technology that you need
without having to hunt through sample code and copy paste loads of without having to hunt through sample code and copy paste loads of

View File

@ -22,12 +22,6 @@
<dependency> <dependency>
<groupId>org.springframework</groupId> <groupId>org.springframework</groupId>
<artifactId>spring-core</artifactId> <artifactId>spring-core</artifactId>
<exclusions>
<exclusion>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
</exclusion>
</exclusions>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.springframework</groupId> <groupId>org.springframework</groupId>
@ -49,16 +43,6 @@
<version>4.3.1.Final</version> <version>4.3.1.Final</version>
<!-- FIXME: make this optional --> <!-- FIXME: make this optional -->
</dependency> </dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>jcl-over-slf4j</artifactId>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-jdk14</artifactId>
<optional>true</optional>
<scope>test</scope>
</dependency>
<dependency> <dependency>
<groupId>com.fasterxml.jackson.core</groupId> <groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId> <artifactId>jackson-databind</artifactId>

View File

@ -10,12 +10,13 @@
<packaging>pom</packaging> <packaging>pom</packaging>
<modules> <modules>
<module>spring-bootstrap-sample</module> <module>spring-bootstrap-sample</module>
<module>spring-bootstrap-actuator-sample</module>
<module>spring-bootstrap-batch-sample</module>
<module>spring-bootstrap-data-sample</module> <module>spring-bootstrap-data-sample</module>
<module>spring-bootstrap-jetty-sample</module> <module>spring-bootstrap-jetty-sample</module>
<module>spring-bootstrap-simple-sample</module> <module>spring-bootstrap-simple-sample</module>
<module>spring-bootstrap-tomcat-sample</module> <module>spring-bootstrap-tomcat-sample</module>
<module>spring-bootstrap-profile-sample</module> <module>spring-bootstrap-profile-sample</module>
<module>spring-bootstrap-actuator-sample</module>
<module>spring-bootstrap-trad-sample</module> <module>spring-bootstrap-trad-sample</module>
<module>spring-bootstrap-xml-sample</module> <module>spring-bootstrap-xml-sample</module>
</modules> </modules>
@ -145,4 +146,25 @@
</plugin> </plugin>
</plugins> </plugins>
</build> </build>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-core</artifactId>
<exclusions>
<exclusion>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>jcl-over-slf4j</artifactId>
<scope>runtime</scope>
</dependency>
</dependencies>
</project> </project>

View File

@ -5,7 +5,7 @@
<parent> <parent>
<groupId>org.springframework.bootstrap</groupId> <groupId>org.springframework.bootstrap</groupId>
<artifactId>spring-bootstrap-samples</artifactId> <artifactId>spring-bootstrap-samples</artifactId>
<version>0.0.1-SNAPSHOT</version> <version>0.5.0.BUILD-SNAPSHOT</version>
</parent> </parent>
<artifactId>spring-bootstrap-batch-sample</artifactId> <artifactId>spring-bootstrap-batch-sample</artifactId>
<packaging>jar</packaging> <packaging>jar</packaging>

View File

@ -16,6 +16,7 @@
</properties> </properties>
<modules> <modules>
<module>spring-bootstrap-starter</module> <module>spring-bootstrap-starter</module>
<module>spring-bootstrap-actuator-starter</module>
<module>spring-bootstrap-batch-starter</module> <module>spring-bootstrap-batch-starter</module>
<module>spring-bootstrap-integration-starter</module> <module>spring-bootstrap-integration-starter</module>
<module>spring-bootstrap-jpa-starter</module> <module>spring-bootstrap-jpa-starter</module>
@ -33,6 +34,16 @@
<artifactId>spring-bootstrap-actuator</artifactId> <artifactId>spring-bootstrap-actuator</artifactId>
<version>${spring.bootstrap.version}</version> <version>${spring.bootstrap.version}</version>
</dependency> </dependency>
<dependency>
<groupId>org.springframework.bootstrap</groupId>
<artifactId>spring-bootstrap-starter</artifactId>
<version>${spring.bootstrap.version}</version>
</dependency>
<dependency>
<groupId>org.springframework.bootstrap</groupId>
<artifactId>spring-bootstrap-actuator-starter</artifactId>
<version>${spring.bootstrap.version}</version>
</dependency>
<dependency> <dependency>
<groupId>org.springframework.bootstrap</groupId> <groupId>org.springframework.bootstrap</groupId>
<artifactId>spring-bootstrap-web-starter</artifactId> <artifactId>spring-bootstrap-web-starter</artifactId>

View File

@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.springframework.bootstrap</groupId>
<artifactId>spring-bootstrap-starters</artifactId>
<version>0.5.0.BUILD-SNAPSHOT</version>
</parent>
<artifactId>spring-bootstrap-actuator-starter</artifactId>
<packaging>jar</packaging>
<dependencies>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>spring-bootstrap-starter</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>spring-bootstrap-actuator</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>
</project>