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 projectsimport 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"
}
build.gradle
files when you’re trying to open them in the IDE or whateverursus
06/15/2020, 10:06 PMsubprojects/payment-api
subprojects/payment-impl
subprojects/payment-ui
etc?
payment-ui-app1
?payment/api
, however im forced to name it payment/payment-api
if there are more like say user/api
, so user/user-api
project1/app
, project2/app
-- it automagically displays it at project1-app etc, but only on those which are duplicated, inconsitency maddens me