From dd0fd03ea37554d79a02a8c6bcfd5f081dc6a1e1 Mon Sep 17 00:00:00 2001 From: Goooler Date: Tue, 22 Mar 2022 22:17:13 +0800 Subject: Remove bintray publish plugins (#2364) * Bump binary-compatibility-validator to 0.8.0 --- .../main/kotlin/org/jetbrains/DokkaPublicationChannel.kt | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'buildSrc/src/main/kotlin/org/jetbrains/DokkaPublicationChannel.kt') diff --git a/buildSrc/src/main/kotlin/org/jetbrains/DokkaPublicationChannel.kt b/buildSrc/src/main/kotlin/org/jetbrains/DokkaPublicationChannel.kt index c4f22a90..6b78edba 100644 --- a/buildSrc/src/main/kotlin/org/jetbrains/DokkaPublicationChannel.kt +++ b/buildSrc/src/main/kotlin/org/jetbrains/DokkaPublicationChannel.kt @@ -6,20 +6,11 @@ import org.gradle.api.Project enum class DokkaPublicationChannel { SpaceDokkaDev, - BintrayKotlinDev, - BintrayKotlinEap, - BintrayKotlinDokka, MavenCentral, MavenCentralSnapshot; val isSpaceRepository get() = this == SpaceDokkaDev - val isBintrayRepository - get() = when (this) { - BintrayKotlinDev, BintrayKotlinEap, BintrayKotlinDokka -> true - else -> false - } - val isMavenRepository get() = when (this) { MavenCentral, MavenCentralSnapshot -> true @@ -31,17 +22,11 @@ enum class DokkaPublicationChannel { MavenCentral -> listOf(DokkaVersionType.Release) MavenCentralSnapshot -> listOf(DokkaVersionType.Snapshot) SpaceDokkaDev -> listOf(DokkaVersionType.Release, DokkaVersionType.Dev, DokkaVersionType.MC, DokkaVersionType.Snapshot) - BintrayKotlinDev -> listOf(DokkaVersionType.Dev, DokkaVersionType.MC, DokkaVersionType.Snapshot) - BintrayKotlinEap -> listOf(DokkaVersionType.MC) - BintrayKotlinDokka -> listOf(DokkaVersionType.Release) } companion object { fun fromPropertyString(value: String): DokkaPublicationChannel = when (value) { "space-dokka-dev" -> SpaceDokkaDev - "bintray-kotlin-dev" -> BintrayKotlinDev - "bintray-kotlin-eap" -> BintrayKotlinEap - "bintray-kotlin-dokka" -> BintrayKotlinDokka "maven-central-release" -> MavenCentral "maven-central-snapshot" -> MavenCentralSnapshot else -> throw IllegalArgumentException("Unknown dokka_publication_channel=$value") -- cgit