Re: excluding transitive module

2020-04-15 Thread Remi Forax
- Mail original - > De: "Jochen Theodorou" > À: "jigsaw-dev" > Envoyé: Mercredi 15 Avril 2020 08:55:00 > Objet: Re: excluding transitive module > On 14.04.20 20:20, Remi Forax wrote: >> Hi Jochen, >> JPMS has no notion of of API and imp

Re: excluding transitive module

2020-04-15 Thread Alex Buckley
On 4/15/2020 12:00 AM, Jochen Theodorou wrote: On 14.04.20 19:38, Alex Buckley wrote: [...] It's fine for Library1 to require SharedApi, and for Library2 to require SharedApiImpl, but if the exported packages overlap, then it's not fine for Project to require, indirectly, both SharedApi (via Lib

Re: excluding transitive module

2020-04-15 Thread Jochen Theodorou
On 14.04.20 19:38, Alex Buckley wrote: [...] It's fine for Library1 to require SharedApi, and for Library2 to require SharedApiImpl, but if the exported packages overlap, then it's not fine for Project to require, indirectly, both SharedApi (via Library1) and SharedApiImpl (via Library2). That is

Re: excluding transitive module

2020-04-14 Thread Jochen Theodorou
On 14.04.20 20:20, Remi Forax wrote: Hi Jochen, JPMS has no notion of of API and implementation of the same jar. It's a concept of your build tool and not something JPMS knows. The notion of compilation dependencies and runtime dependencies is not a concept of JPMS but a concept of your build

Re: excluding transitive module

2020-04-14 Thread Remi Forax
lass. regards, Rémi - Mail original - > De: "Jochen Theodorou" > À: "jigsaw-dev" > Envoyé: Mardi 14 Avril 2020 10:24:34 > Objet: excluding transitive module > Hi all, > > I am wondering if there is a solution purely in the module-info

Re: excluding transitive module

2020-04-14 Thread Alex Buckley
On 4/14/2020 3:12 AM, Jochen Theodorou wrote: On 14.04.20 11:09, Alan Bateman wrote: On 14/04/2020 09:24, Jochen Theodorou wrote: Hi all, I am wondering if there is a solution purely in the module-info for this: * Project requires Library1 and Library2 * SomeLibrary requires SharedApi * Oth

Re: excluding transitive module

2020-04-14 Thread Jochen Theodorou
On 14.04.20 11:09, Alan Bateman wrote: On 14/04/2020 09:24, Jochen Theodorou wrote: Hi all, I am wondering if there is a solution purely in the module-info for this: * Project requires Library1 and Library2 * SomeLibrary requires SharedApi * OtherLibrary requires SharedApiImpl The problem is,

Re: excluding transitive module

2020-04-14 Thread Alan Bateman
On 14/04/2020 09:24, Jochen Theodorou wrote: Hi all, I am wondering if there is a solution purely in the module-info for this: * Project requires Library1 and Library2 * SomeLibrary requires SharedApi * OtherLibrary requires SharedApiImpl The problem is, that it will not compile because Shared

excluding transitive module

2020-04-14 Thread Jochen Theodorou
Hi all, I am wondering if there is a solution purely in the module-info for this: * Project requires Library1 and Library2 * SomeLibrary requires SharedApi * OtherLibrary requires SharedApiImpl The problem is, that it will not compile because SharedApi and SharedApiImpl implement the same packa