You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@netbeans.apache.org by Daniel Platz <da...@me.com.INVALID> on 2019/10/24 10:04:49 UTC
grade multi project support?
Hi,
I have been coming back to Netbeans now after some time and was positively surprised that there is out-of-the-box support for Gradle. :-)
I am wondering if also multi-projects are supported? I have a project with two sub-projects but Netbeans does not seem to recognise it as one project. I can only try to open the sub-projects but it will fail after trying.
Cheers,
Daniel
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
For additional commands, e-mail: users-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: grade multi project support?
Posted by Daniel Platz <da...@me.com.INVALID>.
Maybe it was in some corrupted stage from when i imported the subproject directly into netbeans initially. after deleting and cleaning the repo i was able to import the project successfully on the second try. First try still did not work. Now, it works always. Rather strange…
During my whole testing i did not restart netbeans; only closed the projects and opened again. Maybe there is some metadata keep about the projects that caused problems.
Anyway, I am now happily using my multi grade project in netbeans.
Thanks for the support.
Cheers,
Daniel
> On 24 Oct 2019, at 14:59, Laszlo Kishalmi <la...@gmail.com> wrote:
>
> Hi,
>
> It would be really good to see your project structure with the build scripts. Fortunately for the users Gradle is really flexible which is a bit unfortunate for the tooling support to try to cover all the cases.
>
> I'm guessing that your settings.gradle is not in the root folder of your root project, that could be one reason for your symptoms as we do not support that scenario right now. The build.gradle is tested for the root project only, subprojects are allowed to be "scriptless" (unless I made a bug in somewhere against that).
> On 10/24/19 4:39 AM, Daniel Platz wrote:
>> Having another issue now. When i open a subproject now by going to the “Sub Projects”, the subproject for whatever reason seems to be opened/recognized as a root project.
>> First it was using the default grade version instead of using the version from the wrapper. I “Fixed” that by going to the Preferences and setting the correct grade version for the project. The error i am seeing now is that on open it complains that “Project with path ‘:subproject2’ could not be found in root project ‘subproject1’.”
>> I am trying to reproduce this in a minimal example that i can share but still unsuccessful. Will try some more and let you know.
>> Maybe someone can share how the mechanism works or point me to the source-code-file that is doing the recognition if something is a project or subproject?
>>
>> Cheers
>> Daniel
>>
>>
>>> On 24 Oct 2019, at 12:51, Geertjan Wielenga <geertjan@apache.org <ma...@apache.org>> wrote:
>>>
>>> Good to hear, thanks. And a small enhancement potential for Laszlo.
>>>
>>> Gj
>>>
>>> On Thu, Oct 24, 2019 at 12:50 PM Daniel Platz <daniel.platz@me.com <ma...@me.com>> wrote:
>>> Figured out the problem.
>>> My project did not have a build.gradle in the root project. Only a settings.gradle.
>>> I added an empty build.gradle now and it is recognised and imported. Looks awesome.
>>> I guess it would make sense to not require a build.gradle and maybe test for the presence of the settings.gradle as well/instead; at least a build.gradle is not required/mandatory.
>>>
>>> Cheers,
>>> Daniel
>>>
>>>> On 24 Oct 2019, at 12:15, Geertjan Wielenga <geertjan@apache.org <ma...@apache.org>> wrote:
>>>>
>>>> Is it available somewhere or can be reproduced somehow, yes multi module projects are supported, Laszlo, the creator of all the amazing Gradle support, is probably sleeping in the US right now, and if you can provide a way for him to reproduce this, he'll be able to do so when he wakes up in the morning. :-)
>>>>
>>>> Gj
>>>>
>>>> On Thu, Oct 24, 2019 at 12:06 PM Daniel Platz <daniel.platz@me.com.invalid <ma...@me.com.invalid>> wrote:
>>>> Hi,
>>>> I have been coming back to Netbeans now after some time and was positively surprised that there is out-of-the-box support for Gradle. :-)
>>>> I am wondering if also multi-projects are supported? I have a project with two sub-projects but Netbeans does not seem to recognise it as one project. I can only try to open the sub-projects but it will fail after trying.
>>>>
>>>> Cheers,
>>>> Daniel
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org <ma...@netbeans.apache.org>
>>>> For additional commands, e-mail: users-help@netbeans.apache.org <ma...@netbeans.apache.org>
>>>>
>>>> For further information about the NetBeans mailing lists, visit:
>>>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists <https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists>
>>>>
>>>
>>
Re: grade multi project support?
Posted by Laszlo Kishalmi <la...@gmail.com>.
Hi,
It would be really good to see your project structure with the build
scripts. Fortunately for the users Gradle is really flexible which is a
bit unfortunate for the tooling support to try to cover all the cases.
I'm guessing that your settings.gradle is not in the root folder of your
root project, that could be one reason for your symptoms as we do not
support that scenario right now. The build.gradle is tested for the root
project only, subprojects are allowed to be "scriptless" (unless I made
a bug in somewhere against that).
On 10/24/19 4:39 AM, Daniel Platz wrote:
> Having another issue now. When i open a subproject now by going to the
> “Sub Projects”, the subproject for whatever reason seems to be
> opened/recognized as a root project.
> First it was using the default grade version instead of using the
> version from the wrapper. I “Fixed” that by going to the Preferences
> and setting the correct grade version for the project. The error i am
> seeing now is that on open it complains that “Project with path
> ‘:subproject2’ could not be found in root project ‘subproject1’.”
> I am trying to reproduce this in a minimal example that i can share
> but still unsuccessful. Will try some more and let you know.
> Maybe someone can share how the mechanism works or point me to the
> source-code-file that is doing the recognition if something is a
> project or subproject?
>
> Cheers
> Daniel
>
>
>> On 24 Oct 2019, at 12:51, Geertjan Wielenga <geertjan@apache.org
>> <ma...@apache.org>> wrote:
>>
>> Good to hear, thanks. And a small enhancement potential for Laszlo.
>>
>> Gj
>>
>> On Thu, Oct 24, 2019 at 12:50 PM Daniel Platz <daniel.platz@me.com
>> <ma...@me.com>> wrote:
>>
>> Figured out the problem.
>> My project did not have a build.gradle in the root project. Only
>> a settings.gradle.
>> I added an empty build.gradle now and it is recognised and
>> imported. Looks awesome.
>> I guess it would make sense to not require a build.gradle and
>> maybe test for the presence of the settings.gradle as
>> well/instead; at least a build.gradle is not required/mandatory.
>>
>> Cheers,
>> Daniel
>>
>>> On 24 Oct 2019, at 12:15, Geertjan Wielenga <geertjan@apache.org
>>> <ma...@apache.org>> wrote:
>>>
>>> Is it available somewhere or can be reproduced somehow, yes
>>> multi module projects are supported, Laszlo, the creator of all
>>> the amazing Gradle support, is probably sleeping in the US right
>>> now, and if you can provide a way for him to reproduce this,
>>> he'll be able to do so when he wakes up in the morning. :-)
>>>
>>> Gj
>>>
>>> On Thu, Oct 24, 2019 at 12:06 PM Daniel Platz
>>> <daniel.platz@me.com.invalid
>>> <ma...@me.com.invalid>> wrote:
>>>
>>> Hi,
>>> I have been coming back to Netbeans now after some time and
>>> was positively surprised that there is out-of-the-box
>>> support for Gradle. :-)
>>> I am wondering if also multi-projects are supported? I have
>>> a project with two sub-projects but Netbeans does not seem
>>> to recognise it as one project. I can only try to open the
>>> sub-projects but it will fail after trying.
>>>
>>> Cheers,
>>> Daniel
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail:
>>> users-unsubscribe@netbeans.apache.org
>>> <ma...@netbeans.apache.org>
>>> For additional commands, e-mail:
>>> users-help@netbeans.apache.org
>>> <ma...@netbeans.apache.org>
>>>
>>> For further information about the NetBeans mailing lists, visit:
>>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>>>
>>
>
Re: grade multi project support?
Posted by Daniel Platz <da...@me.com.INVALID>.
Having another issue now. When i open a subproject now by going to the “Sub Projects”, the subproject for whatever reason seems to be opened/recognized as a root project.
First it was using the default grade version instead of using the version from the wrapper. I “Fixed” that by going to the Preferences and setting the correct grade version for the project. The error i am seeing now is that on open it complains that “Project with path ‘:subproject2’ could not be found in root project ‘subproject1’.”
I am trying to reproduce this in a minimal example that i can share but still unsuccessful. Will try some more and let you know.
Maybe someone can share how the mechanism works or point me to the source-code-file that is doing the recognition if something is a project or subproject?
Cheers
Daniel
> On 24 Oct 2019, at 12:51, Geertjan Wielenga <ge...@apache.org> wrote:
>
> Good to hear, thanks. And a small enhancement potential for Laszlo.
>
> Gj
>
> On Thu, Oct 24, 2019 at 12:50 PM Daniel Platz <daniel.platz@me.com <ma...@me.com>> wrote:
> Figured out the problem.
> My project did not have a build.gradle in the root project. Only a settings.gradle.
> I added an empty build.gradle now and it is recognised and imported. Looks awesome.
> I guess it would make sense to not require a build.gradle and maybe test for the presence of the settings.gradle as well/instead; at least a build.gradle is not required/mandatory.
>
> Cheers,
> Daniel
>
>> On 24 Oct 2019, at 12:15, Geertjan Wielenga <geertjan@apache.org <ma...@apache.org>> wrote:
>>
>> Is it available somewhere or can be reproduced somehow, yes multi module projects are supported, Laszlo, the creator of all the amazing Gradle support, is probably sleeping in the US right now, and if you can provide a way for him to reproduce this, he'll be able to do so when he wakes up in the morning. :-)
>>
>> Gj
>>
>> On Thu, Oct 24, 2019 at 12:06 PM Daniel Platz <daniel.platz@me.com.invalid <ma...@me.com.invalid>> wrote:
>> Hi,
>> I have been coming back to Netbeans now after some time and was positively surprised that there is out-of-the-box support for Gradle. :-)
>> I am wondering if also multi-projects are supported? I have a project with two sub-projects but Netbeans does not seem to recognise it as one project. I can only try to open the sub-projects but it will fail after trying.
>>
>> Cheers,
>> Daniel
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org <ma...@netbeans.apache.org>
>> For additional commands, e-mail: users-help@netbeans.apache.org <ma...@netbeans.apache.org>
>>
>> For further information about the NetBeans mailing lists, visit:
>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists <https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists>
>>
>
Re: grade multi project support?
Posted by Geertjan Wielenga <ge...@apache.org>.
Good to hear, thanks. And a small enhancement potential for Laszlo.
Gj
On Thu, Oct 24, 2019 at 12:50 PM Daniel Platz <da...@me.com> wrote:
> Figured out the problem.
> My project did not have a build.gradle in the root project. Only a
> settings.gradle.
> I added an empty build.gradle now and it is recognised and imported. Looks
> awesome.
> I guess it would make sense to not require a build.gradle and maybe test
> for the presence of the settings.gradle as well/instead; at least a
> build.gradle is not required/mandatory.
>
> Cheers,
> Daniel
>
> On 24 Oct 2019, at 12:15, Geertjan Wielenga <ge...@apache.org> wrote:
>
> Is it available somewhere or can be reproduced somehow, yes multi module
> projects are supported, Laszlo, the creator of all the amazing Gradle
> support, is probably sleeping in the US right now, and if you can provide a
> way for him to reproduce this, he'll be able to do so when he wakes up in
> the morning. :-)
>
> Gj
>
> On Thu, Oct 24, 2019 at 12:06 PM Daniel Platz <da...@me.com.invalid>
> wrote:
>
>> Hi,
>> I have been coming back to Netbeans now after some time and was
>> positively surprised that there is out-of-the-box support for Gradle. :-)
>> I am wondering if also multi-projects are supported? I have a project
>> with two sub-projects but Netbeans does not seem to recognise it as one
>> project. I can only try to open the sub-projects but it will fail after
>> trying.
>>
>> Cheers,
>> Daniel
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
>> For additional commands, e-mail: users-help@netbeans.apache.org
>>
>> For further information about the NetBeans mailing lists, visit:
>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>>
>>
>
Re: grade multi project support?
Posted by Geertjan Wielenga <ge...@apache.org>.
Is it available somewhere or can be reproduced somehow, yes multi module
projects are supported, Laszlo, the creator of all the amazing Gradle
support, is probably sleeping in the US right now, and if you can provide a
way for him to reproduce this, he'll be able to do so when he wakes up in
the morning. :-)
Gj
On Thu, Oct 24, 2019 at 12:06 PM Daniel Platz <da...@me.com.invalid>
wrote:
> Hi,
> I have been coming back to Netbeans now after some time and was positively
> surprised that there is out-of-the-box support for Gradle. :-)
> I am wondering if also multi-projects are supported? I have a project with
> two sub-projects but Netbeans does not seem to recognise it as one project.
> I can only try to open the sub-projects but it will fail after trying.
>
> Cheers,
> Daniel
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
> For additional commands, e-mail: users-help@netbeans.apache.org
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
>