[logback-dev] svn commit: r1264 - in logback/trunk: . logback-access logback-classic logback-core logback-examples
noreply.seb at qos.ch
noreply.seb at qos.ch
Tue Jan 23 11:42:32 CET 2007
Author: seb
Date: Tue Jan 23 11:42:32 2007
New Revision: 1264
Modified:
logback/trunk/logback-access/pom.xml
logback/trunk/logback-classic/pom.xml
logback/trunk/logback-core/pom.xml
logback/trunk/logback-examples/pom.xml
logback/trunk/pom.xml
Log:
Better dependency management.
Several dependencies are declared with scope=compile and optional=true.
When a user application depends only on lb-classic, only the classic, core and slf4j-api are packaged. Any other dependency
has to be managed by the user: logback does not include any other jars by itself.
Modified: logback/trunk/logback-access/pom.xml
==============================================================================
--- logback/trunk/logback-access/pom.xml (original)
+++ logback/trunk/logback-access/pom.xml Tue Jan 23 11:42:32 2007
@@ -48,24 +48,28 @@
<groupId>tomcat</groupId>
<artifactId>catalina</artifactId>
<scope>compile</scope>
+ <optional>true</optional>
</dependency>
<dependency>
<groupId>org.mortbay.jetty</groupId>
<artifactId>jetty</artifactId>
<scope>compile</scope>
+ <optional>true</optional>
</dependency>
<dependency>
<groupId>org.mortbay.jetty</groupId>
<artifactId>servlet-api-2.5</artifactId>
<scope>compile</scope>
+ <optional>true</optional>
</dependency>
<dependency>
<groupId>janino</groupId>
<artifactId>janino</artifactId>
- <scope>provided</scope>
+ <scope>compile</scope>
+ <optional>true</optional>
</dependency>
<dependency>
@@ -77,7 +81,8 @@
<dependency>
<groupId>javax.mail</groupId>
<artifactId>mail</artifactId>
- <scope>provided</scope>
+ <scope>compile</scope>
+ <optional>true</optional>
</dependency>
</dependencies>
Modified: logback/trunk/logback-classic/pom.xml
==============================================================================
--- logback/trunk/logback-classic/pom.xml (original)
+++ logback/trunk/logback-classic/pom.xml Tue Jan 23 11:42:32 2007
@@ -36,11 +36,13 @@
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-core</artifactId>
+ <scope>compile</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
+ <scope>compile</scope>
</dependency>
<dependency>
@@ -58,12 +60,15 @@
<dependency>
<groupId>javax.mail</groupId>
<artifactId>mail</artifactId>
- <scope>provided</scope>
+ <scope>compile</scope>
+ <optional>true</optional>
</dependency>
<dependency>
<groupId>janino</groupId>
<artifactId>janino</artifactId>
+ <scope>compile</scope>
+ <optional>true</optional>
</dependency>
<dependency>
@@ -77,6 +82,7 @@
<groupId>javax.jms</groupId>
<artifactId>jms</artifactId>
<scope>compile</scope>
+ <optional>true</optional>
</dependency>
</dependencies>
Modified: logback/trunk/logback-core/pom.xml
==============================================================================
--- logback/trunk/logback-core/pom.xml (original)
+++ logback/trunk/logback-core/pom.xml Tue Jan 23 11:42:32 2007
@@ -36,17 +36,20 @@
<dependency>
<groupId>janino</groupId>
<artifactId>janino</artifactId>
- <scope>provided</scope>
+ <scope>compile</scope>
+ <optional>true</optional>
</dependency>
<dependency>
<groupId>javax.mail</groupId>
<artifactId>mail</artifactId>
- <scope>provided</scope>
+ <scope>compile</scope>
+ <optional>true</optional>
</dependency>
<dependency>
<groupId>javax.jms</groupId>
<artifactId>jms</artifactId>
<scope>compile</scope>
+ <optional>true</optional>
</dependency>
</dependencies>
Modified: logback/trunk/logback-examples/pom.xml
==============================================================================
--- logback/trunk/logback-examples/pom.xml (original)
+++ logback/trunk/logback-examples/pom.xml Tue Jan 23 11:42:32 2007
@@ -47,6 +47,13 @@
<artifactId>logback-access</artifactId>
</dependency>
+ <dependency>
+ <groupId>javax.servlet</groupId>
+ <artifactId>servlet-api</artifactId>
+ <scope>compile</scope>
+ <optional>true</optional>
+ </dependency>
+
</dependencies>
<build>
Modified: logback/trunk/pom.xml
==============================================================================
--- logback/trunk/pom.xml (original)
+++ logback/trunk/pom.xml Tue Jan 23 11:42:32 2007
@@ -114,7 +114,12 @@
<groupId>javax.jms</groupId>
<artifactId>jms</artifactId>
<version>1.1</version>
- </dependency>
+ </dependency>
+ <dependency>
+ <groupId>javax.servlet</groupId>
+ <artifactId>servlet-api</artifactId>
+ <version>2.5</version>
+ </dependency>
</dependencies>
</dependencyManagement>
More information about the logback-dev
mailing list