From 4723359d26a71a8e9d7039fa50323f4bee3b9fa6 Mon Sep 17 00:00:00 2001 From: cssxsh <32539286+cssxsh@users.noreply.github.com> Date: Thu, 22 Jul 2021 10:57:06 +0800 Subject: [PATCH] fix: remove BINTRAY_REPOSITORY (#387) * fix: builtins config use ReadOnlyPluginConfig * fix: remove BINTRAY_REPOSITORY * merge: mamoe * use: mavenCentral --- .../src/main/kotlin/MiraiConsoleGradlePlugin.kt | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/tools/gradle-plugin/src/main/kotlin/MiraiConsoleGradlePlugin.kt b/tools/gradle-plugin/src/main/kotlin/MiraiConsoleGradlePlugin.kt index 64f972b0d..54684391c 100644 --- a/tools/gradle-plugin/src/main/kotlin/MiraiConsoleGradlePlugin.kt +++ b/tools/gradle-plugin/src/main/kotlin/MiraiConsoleGradlePlugin.kt @@ -30,10 +30,6 @@ import org.jetbrains.kotlin.gradle.plugin.KotlinSourceSet import org.jetbrains.kotlin.gradle.plugin.KotlinTarget public class MiraiConsoleGradlePlugin : Plugin { - public companion object { - internal const val BINTRAY_REPOSITORY_URL = "https://dl.bintray.com/him188moe/mirai" - } - private fun KotlinSourceSet.configureSourceSet(project: Project, target: KotlinTarget) { languageSettings.useExperimentalAnnotation("kotlin.RequiresOptIn") dependencies { configureDependencies(project, this@configureSourceSet, target) } @@ -158,7 +154,7 @@ public class MiraiConsoleGradlePlugin : Plugin { // plugins.apply("org.gradle.maven") plugins.apply(ShadowPlugin::class.java) plugins.apply(BintrayPlugin::class.java) - repositories.maven { it.setUrl(BINTRAY_REPOSITORY_URL) } + repositories.mavenCentral() afterEvaluate { configureCompileTarget()