[ https://issues.apache.org/jira/browse/NETBEANS-6366?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17479010#comment-17479010 ]
Laszlo Kishalmi commented on NETBEANS-6366: ------------------------------------------- Thanks for the attached source tree. It was really useful. Well the project folder structure is a bit different from what I'd recommend. The settings.gradle shall be in the root project and all sub-project shall be in some folders under the root project folder. Usually the structure you are using encourage some code reuse of common components, while separate applications linking them inside the project through settings.gradle references. If thet would be the case, then it's better to have those common components as root projects and use a composite gradle project with includeBuild in the settings.gradle. > Gradle subproject are not shown and cannot be processed > ------------------------------------------------------- > > Key: NETBEANS-6366 > URL: https://issues.apache.org/jira/browse/NETBEANS-6366 > Project: NetBeans > Issue Type: Bug > Components: projects - Gradle > Affects Versions: 12.5, 12.6 > Environment: WINDOWS 10 > LINUX SUSE Leap 15.3 > Reporter: Karl Bönisch > Assignee: Laszlo Kishalmi > Priority: Major > Attachments: NETBEANS-6366.7z, image-2022-01-06-17-47-13-994.png, > image-2022-01-06-17-48-29-503.png > > > Open a gradle project with Netbeans 8.2 everything is fine and we can work > with. > After Netbeans 12( may be also before ) the same gradle project cannot be > opened or better can be opened, but subprojects are not shown and sources( > here swing incl. swingx screens cannot be opened) > When moving the subproject under the root project everything is working ( > also > NB 12 ) !(Before I thought it was the Nullpointer - NETBEANS-6055 > error). > The source folders are only seen in the "Files" Tab. > We have the following project structure > Settings.gradle > includeFlat "UniAccessConfig", \ > "GL/GL/GLGL031", \ > "GL/GU/GLGU050", \ > "GL/GU/GLGU055", \ > "GL/GU/GLGU060", \ > "../GLSCommon/GLSCommon", \ > "../GLSCommon/GLSGUI", \ > "../GLSCommon/GLSUtils", \ > "../GLSCommon/GLSResourceLib", \ > "../GLSCommon/GLSFonts", \ > "../GLSConstants" > project (":UniAccessConfig").name = 'UniAccessConfig' > project (":GL/GL/GLGL031").name = 'GLGL031' > project (":GL/GU/GLGU050").name = 'GLGU050' > project (":GL/GU/GLGU055").name = 'GLGU055' > project (":GL/GU/GLGU060").name = 'GLGU060' > project (":../GLSCommon/GLSCommon").name = 'GLSCommon' > project (":../GLSCommon/GLSGUI").name = 'GLSGUI' > project (":../GLSCommon/GLSUtils").name = 'GLSUtils' > project (":../GLSCommon/GLSResourceLib").name = 'GLSResourceLib' > project (":../GLSCommon/GLSFonts").name = 'GLSFonts' > project (":../GLSConstants").name = 'GLSConstants' > also does not work doing in settings.gradle > include "UniAccessConfig" > include "GLGL031" > include "GLGU050" > include "GLGU055" > include "GLGU060" > include "GLSCommon" > include "GLSGUI" > include "GLSUtils" > include "GLSResourceLib" > include "GLSFonts" > include "GLSConstants" > project(":UniAccessConfig").projectDir = new > File("$rootDir/../UniAccessConfig") > project(":GLGL031").projectDir = new File("$rootDir/../GL/GL/GLGL031") > project(":GLGU050").projectDir = new File("$rootDir/../GL/GU/GLGU050") > project(":GLGU055").projectDir = new File("$rootDir/../GL/GU/GLGU055") > project(":GLGU060").projectDir = new File("$rootDir/../GL/GU/GLGU060") > project(":GLSCommon").projectDir = new > File("$rootDir/../../GLSCommon/GLSCommon") > project(":GLSGUI").projectDir = new File("$rootDir/../../GLSCommon/GLSGUI") > project(":GLSUtils").projectDir = new > File("$rootDir/../../GLSCommon/GLSUtils") > project(":GLSResourceLib").projectDir = new > File("$rootDir/../../GLSCommon/GLSResourceLib") > project(":GLSFonts").projectDir = new > File("$rootDir/../../GLSCommon/GLSFonts") > project(":GLSConstants").projectDir = new File("$rootDir/../../GLSConstants") > I will attach some hardcopies to see the difference between NB 8.2 and 12.6 > NB 8.2: > !image-2022-01-06-17-47-13-994.png! > NB 12.6 > !image-2022-01-06-17-48-29-503.png! -- This message was sent by Atlassian Jira (v8.20.1#820001) --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists