core/extensions.gradle

26 lines
990 B
Groovy
Raw Normal View History

2020-11-25 12:40:45 +00:00
allprojects {
ext {
2021-11-24 07:52:27 +00:00
projectByName = { String name ->
for (subproject in rootProject.subprojects) {
if (subproject.name == name) {
return subproject
}
}
return null
}
2020-11-25 12:40:45 +00:00
2021-11-24 07:52:27 +00:00
internalProject = { String name ->
projectByName(name)
}
2020-11-25 12:40:45 +00:00
2021-11-24 07:52:27 +00:00
mppProjectWithSerializationPresetPath = "${rootProject.projectDir.absolutePath}/mppProjectWithSerialization.gradle"
mppJavaProjectPresetPath = "${rootProject.projectDir.absolutePath}/mppJavaProject.gradle"
mppJsProjectPresetPath = "${rootProject.projectDir.absolutePath}/mppJsProject.gradle"
mppAndroidProjectPresetPath = "${rootProject.projectDir.absolutePath}/mppAndroidProject.gradle"
defaultAndroidSettingsPresetPath = "${rootProject.projectDir.absolutePath}/defaultAndroidSettings.gradle"
publishGradlePath = "${rootProject.projectDir.absolutePath}/publish.gradle"
2020-11-25 12:40:45 +00:00
}
}