diff --git a/plugin-build/plugin/src/main/java/ru/kode/android/build/publish/plugin/BuildPublishPlugin.kt b/plugin-build/plugin/src/main/java/ru/kode/android/build/publish/plugin/BuildPublishPlugin.kt index 532d39d..fde22fc 100644 --- a/plugin-build/plugin/src/main/java/ru/kode/android/build/publish/plugin/BuildPublishPlugin.kt +++ b/plugin-build/plugin/src/main/java/ru/kode/android/build/publish/plugin/BuildPublishPlugin.kt @@ -47,7 +47,7 @@ import ru.kode.android.build.publish.plugin.task.slack.changelog.SendSlackChange import ru.kode.android.build.publish.plugin.task.slack.distribution.SlackDistributionTask import ru.kode.android.build.publish.plugin.task.tag.GetLastTagTask import ru.kode.android.build.publish.plugin.task.tag.PrintLastIncreasedTag -import ru.kode.android.build.publish.plugin.task.telegram.SendTelegramChangelogTask +import ru.kode.android.build.publish.plugin.task.telegram.changelog.SendTelegramChangelogTask import ru.kode.android.build.publish.plugin.util.capitalizedName import java.io.File import java.time.LocalDate diff --git a/plugin-build/plugin/src/main/java/ru/kode/android/build/publish/plugin/task/telegram/SendTelegramChangelogTask.kt b/plugin-build/plugin/src/main/java/ru/kode/android/build/publish/plugin/task/telegram/changelog/SendTelegramChangelogTask.kt similarity index 94% rename from plugin-build/plugin/src/main/java/ru/kode/android/build/publish/plugin/task/telegram/SendTelegramChangelogTask.kt rename to plugin-build/plugin/src/main/java/ru/kode/android/build/publish/plugin/task/telegram/changelog/SendTelegramChangelogTask.kt index a5adc2b..9acf46e 100644 --- a/plugin-build/plugin/src/main/java/ru/kode/android/build/publish/plugin/task/telegram/SendTelegramChangelogTask.kt +++ b/plugin-build/plugin/src/main/java/ru/kode/android/build/publish/plugin/task/telegram/changelog/SendTelegramChangelogTask.kt @@ -1,4 +1,4 @@ -package ru.kode.android.build.publish.plugin.task.telegram +package ru.kode.android.build.publish.plugin.task.telegram.changelog import org.gradle.api.DefaultTask import org.gradle.api.file.RegularFileProperty @@ -15,6 +15,14 @@ import org.gradle.workers.WorkerExecutor import ru.kode.android.build.publish.plugin.enity.mapper.fromJson import ru.kode.android.build.publish.plugin.task.telegram.work.SendTelegramChangelogWork import javax.inject.Inject +import kotlin.collections.joinToString +import kotlin.collections.orEmpty +import kotlin.io.readText +import kotlin.jvm.java +import kotlin.sequences.forEach +import kotlin.text.isNullOrEmpty +import kotlin.text.replace +import kotlin.text.toRegex abstract class SendTelegramChangelogTask @Inject diff --git a/plugin-build/plugin/src/main/java/ru/kode/android/build/publish/plugin/task/telegram/sender/TelegramWebhookSender.kt b/plugin-build/plugin/src/main/java/ru/kode/android/build/publish/plugin/task/telegram/changelog/sender/TelegramWebhookSender.kt similarity index 95% rename from plugin-build/plugin/src/main/java/ru/kode/android/build/publish/plugin/task/telegram/sender/TelegramWebhookSender.kt rename to plugin-build/plugin/src/main/java/ru/kode/android/build/publish/plugin/task/telegram/changelog/sender/TelegramWebhookSender.kt index 7ab3daa..16d4f6e 100644 --- a/plugin-build/plugin/src/main/java/ru/kode/android/build/publish/plugin/task/telegram/sender/TelegramWebhookSender.kt +++ b/plugin-build/plugin/src/main/java/ru/kode/android/build/publish/plugin/task/telegram/changelog/sender/TelegramWebhookSender.kt @@ -1,4 +1,4 @@ -package ru.kode.android.build.publish.plugin.task.telegram.sender +package ru.kode.android.build.publish.plugin.task.telegram.changelog.sender import com.squareup.moshi.Moshi import okhttp3.OkHttpClient diff --git a/plugin-build/plugin/src/main/java/ru/kode/android/build/publish/plugin/task/telegram/sender/api/TelegramWebhookSenderApi.kt b/plugin-build/plugin/src/main/java/ru/kode/android/build/publish/plugin/task/telegram/changelog/sender/api/TelegramWebhookSenderApi.kt similarity index 100% rename from plugin-build/plugin/src/main/java/ru/kode/android/build/publish/plugin/task/telegram/sender/api/TelegramWebhookSenderApi.kt rename to plugin-build/plugin/src/main/java/ru/kode/android/build/publish/plugin/task/telegram/changelog/sender/api/TelegramWebhookSenderApi.kt diff --git a/plugin-build/plugin/src/main/java/ru/kode/android/build/publish/plugin/task/telegram/work/SendTelegramChangelogWork.kt b/plugin-build/plugin/src/main/java/ru/kode/android/build/publish/plugin/task/telegram/changelog/work/SendTelegramChangelogWork.kt similarity index 100% rename from plugin-build/plugin/src/main/java/ru/kode/android/build/publish/plugin/task/telegram/work/SendTelegramChangelogWork.kt rename to plugin-build/plugin/src/main/java/ru/kode/android/build/publish/plugin/task/telegram/changelog/work/SendTelegramChangelogWork.kt