Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 12F5C200B67 for ; Tue, 16 Aug 2016 13:55:51 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 11839160AA8; Tue, 16 Aug 2016 11:55:51 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 58550160A76 for ; Tue, 16 Aug 2016 13:55:50 +0200 (CEST) Received: (qmail 6084 invoked by uid 500); 16 Aug 2016 11:55:49 -0000 Mailing-List: contact dev-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Developers List" Delivered-To: mailing list dev@commons.apache.org Received: (qmail 6064 invoked by uid 99); 16 Aug 2016 11:55:48 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Aug 2016 11:55:48 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id F3BD7C2ECF for ; Tue, 16 Aug 2016 11:55:47 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.7 X-Spam-Level: X-Spam-Status: No, score=-0.7 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (1024-bit key) header.d=scarlet.be Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id uhoUqyDx99ff for ; Tue, 16 Aug 2016 11:55:47 +0000 (UTC) Received: from sif.is.scarlet.be (sif.is.scarlet.be [193.74.71.28]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id DCA0F60D5C for ; Tue, 16 Aug 2016 11:55:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=scarlet.be; s=scarlet; t=1471348546; bh=I+2r1cxDSdzVuUUb4ZMCpI9uAUvt0louUwnRnybzsMM=; h=MIME-Version:Content-Type:Content-Transfer-Encoding:Date:From:To: Subject:In-Reply-To:References:Message-ID; b=FTrUhNohxb/snL5DR3UeCtnsG40EHwMpic/eSLCFyCnPSUpDKBpzmi+aXaEqX1oo6 MVUSPKKC5woIswqAyTT1mvO9znmfsiczaFr1/5HI7dzL/lHaRh9v0r8ZHN/NObBJe2 vn3zuBVNwKe+KAM+eRUBfe/zsdQv+Hfyd5L18Ce4= Received: from webmail.scarlet.be (gresham.is.scarlet.be [193.74.71.215]) by sif.is.scarlet.be (8.14.9/8.14.9) with ESMTP id u7GBtk5b019059 for ; Tue, 16 Aug 2016 13:55:46 +0200 X-Scarlet: d=1471348546 c=193.74.71.215 Received: from ip-83-134-185-87.dsl.scarlet.be ([83.134.185.87]) via ip-83-134-185-87.dsl.scarlet.be ([83.134.185.87]) by webmail.scarlet.be with HTTP (HTTP/1.1 POST); Tue, 16 Aug 2016 14:00:04 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Date: Tue, 16 Aug 2016 14:00:04 +0200 From: Gilles To: Subject: Re: [rng] JARs with different dependencies within the same =?UTF-8?Q?component=3F?= In-Reply-To: References: <640c32953c445b231a83d5f0b80ddd1e@scarlet.be> Message-ID: <684649034e90dc2e101beabd291eec2c@scarlet.be> X-Sender: gilles@harfang.homelinux.org User-Agent: Scarlet Webmail X-DCC-scarlet.be-Metrics: sif; whitelist X-Virus-Scanned: clamav-milter 0.98.1-exp at sif X-Virus-Status: Clean archived-at: Tue, 16 Aug 2016 11:55:51 -0000 On Tue, 16 Aug 2016 13:42:53 +0200, Jörg Schaible wrote: > Gilles wrote: > >> On Tue, 16 Aug 2016 09:10:06 +0200, Jörg Schaible wrote: >>> Hi Gilles, >>> >>> Gilles wrote: >>> >>>> Hi. >>>> >>>> Suppose that >>>> commons-rng-core-1.0.jar >>>> depends on JDK 1.6. >>>> >>>> And that we wish to offer utilities (e.g. random strings) and >>>> other >>>> syntactic sugar (such as Java 8 streams) in >>>> commons-rng-utils-1.0.jar >>>> that would depend on JDK 1.8. >>>> >>>> Is it possible? >>> >>> Yes. Have a look at XStream >>> (https://github.com/x-stream/xstream/blob/master/xstream/pom.xml), >>> it >>> already does this (since >>> years), currently to support lambda expressions. It declarers >>> simply >>> a >>> second compiler execution. Note, there's a bug in Maven that forces >>> you to >>> define as many excludes in the second execution as in the first >>> one. >> >> IIUC, it is not exactly what I had in mind, which would amount to >> having two separate JARs: "core" and "utils". >> "core" is anticipated to be stable (hopefully) while "utils" could >> evolve faster and possibly in a non-compatible way. >> >> I.e. we could have >> >> core-1.0 >> >> utils-1.0 >> depends on core-1.0 >> >> utils-1.1 >> depends on core-1.0 >> >> utils-2.0 >> depends on core-1.0 >> >> core-1.1 (e.g. after adding a new RNG implementation) >> >> utils-2.1 >> depends on core-1.1 > > Well, a commons component has *one* version. You can introduce > another > artifact (just like Artem proposed), but there's no independent > release > cycle. That's what I was afraid of; in this case, it would defeat the purpose: We shouldn't have to release "core-2.0" (thus a with change of the top-level package name), just because we want to fix something in the "utils" code. Given this situation, would it be possible to consider a separate component: "commons-rng-utils"? Regards, Gilles > Cheers, > Jörg > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org For additional commands, e-mail: dev-help@commons.apache.org