Adam
02/06/2025, 1:44 PMincludeBuild("../core") {
name = "core"
dependencySubstitution {
substitute(module("se.vermiculus.veriprimer:veriprimer-platform-common"))
.using(project(":platform:common"))
substitute(module("se.vermiculus.veriprimer:veriprimer-testing-infrastructure-test-execution"))
.using(project(":testing:infrastructure:test-execution"))
substitute(module("se.vermiculus.veriprimer:veriprimer-testing-utilities-request-execution"))
.using(project(":testing:utilities:request-execution"))
}
}
It is not possible to not have to specify each module like this? With the plugins this was not needed.Vampire
02/06/2025, 2:10 PMVampire
02/06/2025, 2:11 PMVampire
02/06/2025, 2:11 PMincludeBuild
is also outside pluginManagement { ... }
additionally.Adam
02/06/2025, 3:11 PMThomas Broyer
02/06/2025, 4:10 PMAdam
02/10/2025, 7:38 AMrootProject.name = "..."
But if I have a multiproject, each subproject gets different names, and as default the name is the directory name (if I do not mistaken).
So if I have two directories on different paths but with the same name they will clash.
Can I not set the artifactId for a subproject in its build.gradle.kts script?
@Thomas BroyerVampire
02/10/2025, 8:00 AMinclude
call and then set the project's project directory in the next line.Adam
02/10/2025, 9:12 AM// Add this in the bottom of your settings.file
fun renameRecursively(p: ProjectDescriptor) {
if (p != rootProject) {
p.name = p.path
.removePrefix(":")
.replace(":", "-")
}
// Recurse on child descriptors
p.children.forEach { renameRecursively(it) }
}
renameRecursively(rootProject)
(Might be useful for anyone else that runs into this issue in the future)Adam
02/10/2025, 9:24 AM./gradlew build
If I execute this command in a wrapping directory "root" and the idea is to execute the build task for all composite builds within the root folder?Vampire
02/10/2025, 1:20 PMVampire
02/10/2025, 1:20 PMAdam
02/13/2025, 8:55 AM// Before
implementation(project(":platform:messagebus:common"))
// With the name change
implementation(project(":platform:platform-messagebus:platform-messagebus-common"))
It would have been great if it was possible to distinguish between these configurations.
The path remains the same but the subproject name could be changed - I realize that the data model might not allow for it but it seems like a few changes would make this more "generic". 🙂Vampire
02/13/2025, 9:03 AMplatform
and platform-messagebus
are just an empty projects like I assume and you don't need them as a matter of organization, just leave them out and have :platform-messagebus-common
. Already in the settings script of course, not only in the dependency declaration.Adam
02/13/2025, 9:20 AMVampire
02/13/2025, 10:56 AM:p:m:platform-messagebus-common
if it is just for the organization 😄