1
0
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:
InsanusMokrassar 2024-08-30 00:51:03 +06:00
parent b0d8abf6df
commit e8a280c90d
13 changed files with 30 additions and 21 deletions

View File

@ -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 {

View File

@ -1,8 +1,17 @@
allprojects { File templatesFolder = new File("$rootProject.projectDir.absolutePath${File.separatorChar}gradle${File.separatorChar}templates")
ext {
mppProjectWithSerializationPresetPath = "${rootProject.projectDir.absolutePath}/mppProjectWithSerialization.gradle"
mppJsProjectPresetPath = "${rootProject.projectDir.absolutePath}/mppJsProject.gradle"
publishGradlePath = "${rootProject.projectDir.absolutePath}/publish.gradle" Map properties = new HashMap<String, String>()
if (templatesFolder.exists() && templatesFolder.isDirectory()) {
templatesFolder.listFiles().each {
properties[it.name - ".gradle"] = it.absolutePath
}
}
allprojects {
ext {
properties.forEach { k, v ->
it[k] = v
}
} }
} }

View File

@ -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) {

View File

@ -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 {

View File

@ -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 {

View File

@ -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 {

View File

@ -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 {

View File

@ -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 {

View File

@ -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 {

View File

@ -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 {