mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2024-11-23 10:38:43 +00:00
small optimization of extensions.gradle
This commit is contained in:
parent
b0d8abf6df
commit
e8a280c90d
@ -6,7 +6,7 @@ plugins {
|
|||||||
|
|
||||||
project.description = "Full collection of all built-in tgbotapi tools"
|
project.description = "Full collection of all built-in tgbotapi tools"
|
||||||
|
|
||||||
apply from: "$mppProjectWithSerializationPresetPath"
|
apply from: "$mppProjectWithSerialization"
|
||||||
|
|
||||||
kotlin {
|
kotlin {
|
||||||
sourceSets {
|
sourceSets {
|
||||||
|
@ -1,8 +1,17 @@
|
|||||||
|
File templatesFolder = new File("$rootProject.projectDir.absolutePath${File.separatorChar}gradle${File.separatorChar}templates")
|
||||||
|
|
||||||
|
Map properties = new HashMap<String, String>()
|
||||||
|
|
||||||
|
if (templatesFolder.exists() && templatesFolder.isDirectory()) {
|
||||||
|
templatesFolder.listFiles().each {
|
||||||
|
properties[it.name - ".gradle"] = it.absolutePath
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
allprojects {
|
allprojects {
|
||||||
ext {
|
ext {
|
||||||
mppProjectWithSerializationPresetPath = "${rootProject.projectDir.absolutePath}/mppProjectWithSerialization.gradle"
|
properties.forEach { k, v ->
|
||||||
mppJsProjectPresetPath = "${rootProject.projectDir.absolutePath}/mppJsProject.gradle"
|
it[k] = v
|
||||||
|
}
|
||||||
publishGradlePath = "${rootProject.projectDir.absolutePath}/publish.gradle"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
project.version = "$version"
|
project.version = "$version"
|
||||||
project.group = "$group"
|
project.group = "$group"
|
||||||
|
|
||||||
apply from: "$publishGradlePath"
|
apply from: "$mpp_publish"
|
||||||
|
|
||||||
kotlin {
|
kotlin {
|
||||||
js (IR) {
|
js (IR) {
|
@ -6,8 +6,8 @@ plugins {
|
|||||||
|
|
||||||
project.description = "API extensions with \"Telegram Bot API\"-like extensions for TelegramBot and RequestsExecutor"
|
project.description = "API extensions with \"Telegram Bot API\"-like extensions for TelegramBot and RequestsExecutor"
|
||||||
|
|
||||||
apply from: "$mppProjectWithSerializationPresetPath"
|
apply from: "$mppProjectWithSerialization"
|
||||||
apply from: "$publishGradlePath"
|
apply from: "$mpp_publish"
|
||||||
|
|
||||||
kotlin {
|
kotlin {
|
||||||
sourceSets {
|
sourceSets {
|
||||||
|
@ -6,8 +6,8 @@ plugins {
|
|||||||
|
|
||||||
project.description = "Behaviour Builder DSL"
|
project.description = "Behaviour Builder DSL"
|
||||||
|
|
||||||
apply from: "$mppProjectWithSerializationPresetPath"
|
apply from: "$mppProjectWithSerialization"
|
||||||
apply from: "$publishGradlePath"
|
apply from: "$mpp_publish"
|
||||||
|
|
||||||
kotlin {
|
kotlin {
|
||||||
sourceSets {
|
sourceSets {
|
||||||
|
@ -6,8 +6,8 @@ plugins {
|
|||||||
|
|
||||||
project.description = "Behaviour Builder DSL"
|
project.description = "Behaviour Builder DSL"
|
||||||
|
|
||||||
apply from: "$mppProjectWithSerializationPresetPath"
|
apply from: "$mppProjectWithSerialization"
|
||||||
apply from: "$publishGradlePath"
|
apply from: "$mpp_publish"
|
||||||
|
|
||||||
kotlin {
|
kotlin {
|
||||||
sourceSets {
|
sourceSets {
|
||||||
|
@ -7,8 +7,8 @@ plugins {
|
|||||||
|
|
||||||
project.description = "Core part of tgbotapi with all (and only) required functionality for working with Telegram Bot API"
|
project.description = "Core part of tgbotapi with all (and only) required functionality for working with Telegram Bot API"
|
||||||
|
|
||||||
apply from: "$mppProjectWithSerializationPresetPath"
|
apply from: "$mppProjectWithSerialization"
|
||||||
apply from: "$publishGradlePath"
|
apply from: "$mpp_publish"
|
||||||
|
|
||||||
kotlin {
|
kotlin {
|
||||||
sourceSets {
|
sourceSets {
|
||||||
|
@ -6,8 +6,8 @@ plugins {
|
|||||||
|
|
||||||
project.description = "Additional extensions for core part of tgbotapi"
|
project.description = "Additional extensions for core part of tgbotapi"
|
||||||
|
|
||||||
apply from: "$mppProjectWithSerializationPresetPath"
|
apply from: "$mppProjectWithSerialization"
|
||||||
apply from: "$publishGradlePath"
|
apply from: "$mpp_publish"
|
||||||
|
|
||||||
kotlin {
|
kotlin {
|
||||||
sourceSets {
|
sourceSets {
|
||||||
|
@ -6,8 +6,8 @@ plugins {
|
|||||||
|
|
||||||
project.description = "Web App bindings for the Telegram Web Apps API"
|
project.description = "Web App bindings for the Telegram Web Apps API"
|
||||||
|
|
||||||
apply from: "$mppProjectWithSerializationPresetPath"
|
apply from: "$mppProjectWithSerialization"
|
||||||
apply from: "$publishGradlePath"
|
apply from: "$mpp_publish"
|
||||||
|
|
||||||
kotlin {
|
kotlin {
|
||||||
sourceSets {
|
sourceSets {
|
||||||
|
@ -6,8 +6,8 @@ plugins {
|
|||||||
|
|
||||||
project.description = "Full collection of all built-in tgbotapi tools"
|
project.description = "Full collection of all built-in tgbotapi tools"
|
||||||
|
|
||||||
apply from: "$mppProjectWithSerializationPresetPath"
|
apply from: "$mppProjectWithSerialization"
|
||||||
apply from: "$publishGradlePath"
|
apply from: "$mpp_publish"
|
||||||
|
|
||||||
kotlin {
|
kotlin {
|
||||||
sourceSets {
|
sourceSets {
|
||||||
|
Loading…
Reference in New Issue
Block a user