Return-Path: X-Original-To: apmail-sling-dev-archive@www.apache.org Delivered-To: apmail-sling-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 29A5710980 for ; Mon, 3 Feb 2014 05:10:20 +0000 (UTC) Received: (qmail 98490 invoked by uid 500); 3 Feb 2014 05:10:18 -0000 Delivered-To: apmail-sling-dev-archive@sling.apache.org Received: (qmail 98220 invoked by uid 500); 3 Feb 2014 05:10:13 -0000 Mailing-List: contact dev-help@sling.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@sling.apache.org Delivered-To: mailing list dev@sling.apache.org Received: (qmail 98212 invoked by uid 99); 3 Feb 2014 05:10:11 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Feb 2014 05:10:11 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of chetan.mehrotra@gmail.com designates 209.85.214.169 as permitted sender) Received: from [209.85.214.169] (HELO mail-ob0-f169.google.com) (209.85.214.169) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Feb 2014 05:10:06 +0000 Received: by mail-ob0-f169.google.com with SMTP id wo20so7359968obc.14 for ; Sun, 02 Feb 2014 21:09:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=1B/Ff61xW9V82XqVwAGqAfrMim2zPbyGNYeTeuZIagc=; b=Udcx9V7KbzXfmIzrUSXZbyzZICjOImG8xd67OC1PeTOZCWytBpw4FgcmvHd7VffDud VNCnjLi24Gi3tlx81cf4gePWzOS0d3eagmjb+JsfD7wSjTo7r/fOOIW9GovUXmjwcuLA 5B14wY7x3Ntg3TYMgujksy+hL4XOnW95nFhYPB7dPcFL4NoTV2A9jvGuq4ljFdzc4zip UcXD+R0YL7sZDLQPVbJZeTGhcF2+KpGUkTgpl6e6zoQvrUiQfiuKJRWbnZelufhIrdWK n+Bqef1e2C9aNtqEUEBpSGyy3QvsY/Kc+2ahj+ki/unteYQTilHogRdfNs5t7fiOVs9C CDOQ== MIME-Version: 1.0 X-Received: by 10.60.119.100 with SMTP id kt4mr9969628oeb.14.1391404185722; Sun, 02 Feb 2014 21:09:45 -0800 (PST) Received: by 10.60.84.211 with HTTP; Sun, 2 Feb 2014 21:09:45 -0800 (PST) Date: Mon, 3 Feb 2014 10:39:45 +0530 Message-ID: Subject: How to version packages exported from embedded bundles From: Chetan Mehrotra To: dev Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org Hi, I need some guidance around how to version packages which are exported from embedded depedency. In case of Commons Log we are embedding Logback jars. So far we were using version 1.0.13 and now we need to switch to 1.1.0. However Logback (like most thirdparty jars) does not follow OSGi semantic versioning guidelines and versions the packages as per release number. In most cases client of Commons Log would not have any API dependency on the Logback unless they are providing custom Appenders So far there has been no release of common log jar so we can safely export the Logback packages at 1.1.0 version. But what should we do in future Some of the options I can think of 1. Do not export package with versions i.e. let it default to 0.0.0. 2. OR Keep a watch on changes and release it at versions which confirm to OSGi Semantic Versioning guidelines 3. Similar to #2 above but we then export packages twice. One as per version stated in Logback jar and another at version which confirms to #2 4. OR Let it export at release version and expect the client bundles to have a more relaxed import range for versions Similar issue exist with Slf4j also Chetan Mehrotra