allprojects {
    ext {
        projectByName = { String name ->
            for (subproject in rootProject.subprojects) {
                if (subproject.name == name) {
                    return subproject
                }
            }
            return null
        }

        internalProject = { String name ->
            projectByName(name)
        }

        mppJavaWithJsProjectPath = "${rootProject.projectDir.absolutePath}/mppJavaWithJsProject.gradle"

        publishGradlePath = "${rootProject.projectDir.absolutePath}/publish.gradle"
    }
}