2020-08-18 06:50:11 +00:00
|
|
|
buildscript {
|
|
|
|
repositories {
|
|
|
|
mavenLocal()
|
|
|
|
mavenCentral()
|
2020-09-22 12:04:10 +00:00
|
|
|
maven { url "https://plugins.gradle.org/m2/" }
|
2020-08-18 06:50:11 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2022-06-29 07:47:21 +00:00
|
|
|
classpath libs.kotlin.gradle.plugin
|
2022-08-05 10:31:39 +00:00
|
|
|
classpath libs.kotlin.ksp.plugin
|
2022-06-29 07:47:21 +00:00
|
|
|
classpath libs.kotlin.serialization.plugin
|
|
|
|
classpath libs.kotlin.dokka.plugin
|
2022-06-29 08:23:45 +00:00
|
|
|
classpath libs.github.release.plugin
|
2020-08-18 06:50:11 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-03-04 15:18:50 +00:00
|
|
|
plugins {
|
|
|
|
alias(libs.plugins.kotlin.dokka)
|
2023-11-23 06:06:46 +00:00
|
|
|
alias(libs.plugins.versions)
|
2023-03-04 15:18:50 +00:00
|
|
|
}
|
|
|
|
|
2021-04-17 08:36:23 +00:00
|
|
|
// temporal crutch until legacy tests will be stabled or legacy target will be removed
|
|
|
|
allprojects {
|
2022-06-29 07:47:21 +00:00
|
|
|
repositories {
|
|
|
|
mavenLocal()
|
|
|
|
mavenCentral()
|
|
|
|
google()
|
2023-12-09 20:18:25 +00:00
|
|
|
maven { url "https://nexus.inmo.dev/repository/maven-releases/" }
|
2022-06-29 07:47:21 +00:00
|
|
|
}
|
2021-04-17 08:36:23 +00:00
|
|
|
if (it != rootProject.findProject("docs")) {
|
|
|
|
tasks.whenTaskAdded { task ->
|
|
|
|
if(task.name == "jsLegacyBrowserTest" || task.name == "jsLegacyNodeTest") {
|
|
|
|
task.enabled = false
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2022-06-29 07:47:21 +00:00
|
|
|
apply from: "./extensions.gradle"
|
2021-04-17 08:36:23 +00:00
|
|
|
|
2020-09-22 12:04:10 +00:00
|
|
|
private String getCurrentVersionChangelog() {
|
|
|
|
OutputStream changelogDataOS = new ByteArrayOutputStream()
|
|
|
|
exec {
|
|
|
|
standardOutput = changelogDataOS
|
|
|
|
commandLine './changelog_info_retriever', "$library_version", 'CHANGELOG.md'
|
|
|
|
}
|
|
|
|
|
|
|
|
return changelogDataOS.toString().trim()
|
|
|
|
}
|
|
|
|
|
2020-09-22 12:12:48 +00:00
|
|
|
if (new File(projectDir, "secret.gradle").exists()) {
|
|
|
|
apply from: './secret.gradle'
|
|
|
|
apply plugin: "com.github.breadmoirai.github-release"
|
|
|
|
|
2020-09-22 12:04:10 +00:00
|
|
|
githubRelease {
|
|
|
|
token "${project.property('GITHUB_RELEASE_TOKEN')}"
|
|
|
|
|
2024-02-10 11:31:20 +00:00
|
|
|
owner = "InsanusMokrassar"
|
|
|
|
repo = "TelegramBotAPI"
|
2020-09-22 12:04:10 +00:00
|
|
|
|
2024-02-10 11:31:20 +00:00
|
|
|
tagName = "v$library_version"
|
|
|
|
releaseName = "$library_version"
|
|
|
|
targetCommitish = "$library_version"
|
2020-09-22 12:04:10 +00:00
|
|
|
|
2024-02-10 11:31:20 +00:00
|
|
|
body = getCurrentVersionChangelog()
|
2020-09-22 12:04:10 +00:00
|
|
|
}
|
|
|
|
}
|