mirror of
https://github.com/InsanusMokrassar/MicroUtils.git
synced 2024-11-22 16:23:50 +00:00
29 lines
1000 B
Groovy
29 lines
1000 B
Groovy
allprojects {
|
|
ext {
|
|
projectByName = { name ->
|
|
for (subproject in rootProject.subprojects) {
|
|
if (subproject.name == name) {
|
|
return subproject
|
|
}
|
|
}
|
|
return null
|
|
}
|
|
|
|
internalProject = { name ->
|
|
if (releaseMode) {
|
|
"$group:$name:$version"
|
|
} else {
|
|
projectByName("$name")
|
|
}
|
|
}
|
|
|
|
releaseMode = (project.hasProperty('RELEASE_MODE') && project.property('RELEASE_MODE') == "true") || System.getenv('RELEASE_MODE') == "true"
|
|
|
|
mppProjectWithSerializationPresetPath = "${rootProject.projectDir.absolutePath}/mppProjectWithSerialization"
|
|
mppJavaProjectPresetPath = "${rootProject.projectDir.absolutePath}/mppJavaProject"
|
|
|
|
publishGradlePath = "${rootProject.projectDir.absolutePath}/publish.gradle"
|
|
publishMavenPath = "${rootProject.projectDir.absolutePath}/maven.publish.gradle"
|
|
}
|
|
}
|