ursus
06/15/2020, 3:48 PMdanny
06/15/2020, 5:31 PMsubprojects directory - makes working with the project easier I find, and IIRC parent directories are implicit parent projectsdanny
06/15/2020, 5:35 PMimport groovy.io.FileType
rootProject.name = "myproject"
file('subprojects').eachFile(FileType.DIRECTORIES) {
def dirName = it.name
def projectName = "${rootProject.name}-$dirName"
include projectName
def project = project(":$projectName")
project.projectDir = new File(rootProject.projectDir, "subprojects/$dirName")
project.buildFileName = "${dirName}.gradle"
}danny
06/15/2020, 5:36 PMbuild.gradle files when you’re trying to open them in the IDE or whateverdanny
06/15/2020, 5:38 PMdanny
06/15/2020, 5:39 PMursus
06/15/2020, 10:06 PMsubprojects/payment-api
subprojects/payment-impl
subprojects/payment-ui
etc?ursus
06/15/2020, 10:08 PMpayment-ui-app1 ?ursus
06/15/2020, 10:08 PMursus
06/15/2020, 10:15 PMpayment/api, however im forced to name it payment/payment-api if there are more like say user/api , so user/user-apiursus
06/30/2020, 11:41 PMursus
06/30/2020, 11:42 PMursus
06/30/2020, 11:43 PMursus
06/30/2020, 11:46 PMproject1/app , project2/app -- it automagically displays it at project1-app etc, but only on those which are duplicated, inconsitency maddens me