Hi all, A question I am creating an Android projec...
# android
g
Hi all, A question I am creating an Android project using Android Studio IDE, I get the build system configured for the new project (great). I wonder how to change the
Copy code
org.gradle.api.initialization.Settings.DEFAULT_SETTINGS_FILE
It’s a final value which I understand to an extent why , however if I want the settings of the root project to use settings of a buildSrc module I write how can I change it ? I would like to set in my root settings.gradle.kts the name of the DEFAULT_SETTINGS_FILE to “buildSrc/settings.gradle.kts”. Any help appreciated 🙂 also thought on this appreciated more 🙂
😶 3
c
Better ask in #gradle
v
You cannot change the settings file except for with using a command-line parameter. But what you ask for also does not make any sense at all. The settings script defines the build, what subproject it has, which other builds it includes and so on. You cannot really share that between builds. If you want to share settings script code, then write a settings convention plugin that you include from both builds and apply to both settings scripts.