Martin
07/22/2025, 4:33 PMsettings.gradle.kts buildscript classpath? I've tried this but it doesn't work:
pluginManagement {
includeBuild("my-build")
}
buildscript {
dependencies {
// com.example:artifact-id is built by the `my-build` included build
// I was expecting dependency substitution to happen here but it doesn't look like it's the case?
classpath("com.example:artifact-id")
}
}
Is there a way?Thomas Broyer
07/22/2025, 4:50 PMMartin
07/22/2025, 4:57 PMMartin
07/22/2025, 4:57 PMMartin
07/22/2025, 5:00 PMapply(false) but that's adding a bunch of thing I'd rather avoid.Vampire
07/23/2025, 9:31 AMFeels weird that this only works for pluginsWhy? The
includeBuild is within pluginManagement, so would feel strange if it worked for anything besides plugins 😄Martin
07/23/2025, 9:31 AMMartin
07/23/2025, 9:32 AMVampire
07/23/2025, 9:32 AMVampire
07/23/2025, 9:32 AMapply false even if it is a project plugin, as long as you do not actually apply it, there is no problem with the wrong type.Vampire
07/23/2025, 9:33 AMapply false if it anyway does to nothing.Martin
07/23/2025, 9:33 AMeven if it is a project plugin, as long as you do not actually apply it, there is no problem with the wrong typeTIL!
Martin
07/23/2025, 9:33 AMMartin
07/23/2025, 9:33 AMVampire
07/23/2025, 9:34 AMMartin
07/23/2025, 9:34 AMMartin
07/23/2025, 9:36 AMMartin
07/23/2025, 9:37 AMapply(false) the Project plugin in the Settings file and leave a nice comment