mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-24 06:50:08 +08:00
fix: remove BINTRAY_REPOSITORY (#387)
* fix: builtins config use ReadOnlyPluginConfig * fix: remove BINTRAY_REPOSITORY * merge: mamoe * use: mavenCentral
This commit is contained in:
parent
90d09c429c
commit
4723359d26
@ -30,10 +30,6 @@ import org.jetbrains.kotlin.gradle.plugin.KotlinSourceSet
|
|||||||
import org.jetbrains.kotlin.gradle.plugin.KotlinTarget
|
import org.jetbrains.kotlin.gradle.plugin.KotlinTarget
|
||||||
|
|
||||||
public class MiraiConsoleGradlePlugin : Plugin<Project> {
|
public class MiraiConsoleGradlePlugin : Plugin<Project> {
|
||||||
public companion object {
|
|
||||||
internal const val BINTRAY_REPOSITORY_URL = "https://dl.bintray.com/him188moe/mirai"
|
|
||||||
}
|
|
||||||
|
|
||||||
private fun KotlinSourceSet.configureSourceSet(project: Project, target: KotlinTarget) {
|
private fun KotlinSourceSet.configureSourceSet(project: Project, target: KotlinTarget) {
|
||||||
languageSettings.useExperimentalAnnotation("kotlin.RequiresOptIn")
|
languageSettings.useExperimentalAnnotation("kotlin.RequiresOptIn")
|
||||||
dependencies { configureDependencies(project, this@configureSourceSet, target) }
|
dependencies { configureDependencies(project, this@configureSourceSet, target) }
|
||||||
@ -158,7 +154,7 @@ public class MiraiConsoleGradlePlugin : Plugin<Project> {
|
|||||||
// plugins.apply("org.gradle.maven")
|
// plugins.apply("org.gradle.maven")
|
||||||
plugins.apply(ShadowPlugin::class.java)
|
plugins.apply(ShadowPlugin::class.java)
|
||||||
plugins.apply(BintrayPlugin::class.java)
|
plugins.apply(BintrayPlugin::class.java)
|
||||||
repositories.maven { it.setUrl(BINTRAY_REPOSITORY_URL) }
|
repositories.mavenCentral()
|
||||||
|
|
||||||
afterEvaluate {
|
afterEvaluate {
|
||||||
configureCompileTarget()
|
configureCompileTarget()
|
||||||
|
Loading…
Reference in New Issue
Block a user