Hmm... now you lost me :(
Currently I am not able to do a
$./gradlew -p sdks/java build
It fails with error
Project directory '/Users/michel/GitHub/adude3141/beam/sdks/java' is not
part of the build defined by settings file
on my machine, which - again - should be expected.
Regarding the display, it would look like this if we would be able to switch
\--- Project ':sdks'
+--- Project ':sdks:java'
| +--- Project ':sdks:java:core' - Apache Beam :: SDKs :: Java ::
Core
| \--- Project ':sdks:java:extensions'
| \--- Project ':sdks:java:extensions:sql' - Apache Beam ::
SDKs :: Java :: Extensions :: SQL
\--- Project ':sdks:python'
On Mon, Apr 1, 2019 at 7:36 PM Jean-Baptiste Onofré <[email protected]> wrote:
> By the way, another reason is to have this clearly displayed in
> ./gradlew projects ;)
>
> On 01/04/2019 18:49, Michael Luckey wrote:
> > Hi,
> >
> > although I did not yet manage to get deeper involved into actual
> > development, I think this ability would be a useful addition.
> >
> > But I would also like to point out, that this is kind of implicit, as
> > soon we get https://issues.apache.org/jira/browse/BEAM-4046 included.
> >
> > For instance, we would change the current setup from
> >
> > include "beam-sdks-java-core"
> > project(":beam-sdks-java-core").dir = file("sdks/java/core")
> >
> > to something like
> >
> > include(":sdks:java:core")
> > include(":sdks:java:extensions:sql")
> > include(":sdks:python")
> >
> >
> > With this in place a plain
> >
> > $ ./gradlew -p sdks/java build
> >
> >
> > would exactly do what you want. And, of course, this will also work for
> > 'sdks/java/io', 'runners/' etc. Hope, you get the point.
> >
> > Currently, we deviate from gradle default convention and therefore have
> > to implement some quirks to restore default behaviour. And I somehow
> > dislike the structure introduced by parent/child folders, which will be
> > destroyed by our current project definitions.
> >
> > But, to be honest, although I have some clear understanding on how to
> > proceed here - especially regarding the requirement to keep the change
> > backwards compatible - we might decide not to switch. Because deeper
> > investigation might reveal issues, which I am currently not aware of.
> >
> > Best,
> >
> > michel
> >
> > On Mon, Apr 1, 2019 at 5:52 PM Jean-Baptiste Onofré <[email protected]
> > <mailto:[email protected]>> wrote:
> >
> > Hi guys,
> >
> > I would like to introduce a Gradle "meta" project for the build:
> > beam-sdks-java.
> >
> > The idea is to simply build all Java SDK related resources (core,
> > IO, ...).
> >
> > The purpose is also to be aligned with the other SDKs which provide
> > beam-sdks-go and beam-sdks-python.
> >
> > Thoughts ?
> >
> > Regards
> > JB
> > --
> > Jean-Baptiste Onofré
> > [email protected] <mailto:[email protected]>
> > http://blog.nanthrax.net
> > Talend - http://www.talend.com
> >
>
> --
> Jean-Baptiste Onofré
> [email protected]
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>