melix
02/23/2024, 3:35 PM/home/cchampeau/.../build/tmp/test/work/.gradle-test-kit/test-kit-daemon/8.5/ but I need to set it to the project directoryAdam
02/23/2024, 3:44 PMGradleRunner.withTestKitDir()melix
02/23/2024, 3:58 PM-g, not the working dirVampire
02/23/2024, 5:56 PMVampire
02/23/2024, 5:57 PMmelix
02/23/2024, 9:53 PMYou are aware that it is a bug to rely on the working directory, right?I was waiting for someone to say this 🙂 Yes, I'm aware, but as always, between the theory and practice... I'm reading my catalog file, which contains a plugin version. That plugin version is shared between a settings plugin and multiple project plugins. But I need to read it in the settings file. In settings.gradle.kts, you can read the file in the
plugins { ... } block, but the code you can put in there is limited. In particular, it doesn't have access to layout or settingsDirectory, it barely has access to anything. So the only thing I can do is
plugins {
val pluginVersion = File("gradle/libs.versions.toml")......
id("...") version pluginVersion