diff --git a/build.gradle.kts b/build.gradle.kts index b76c09c2..bd17e4d6 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -2,10 +2,9 @@ buildscript { repositories { mavenLocal() - maven(url = "https://maven.aliyun.com/repository/public") - maven(url = "https://dl.bintray.com/kotlin/kotlin-eap") mavenCentral() - jcenter() + gradlePluginPortal() + google() } val kotlinVersion: String by project.extra @@ -21,9 +20,8 @@ allprojects { repositories { mavenLocal() - maven(url = "https://maven.aliyun.com/repository/public") - maven(url = "https://dl.bintray.com/kotlin/kotlin-eap") mavenCentral() - jcenter() + gradlePluginPortal() + google() } } diff --git a/mirai-api-http/build.gradle.kts b/mirai-api-http/build.gradle.kts index df2e4089..478e2bc9 100644 --- a/mirai-api-http/build.gradle.kts +++ b/mirai-api-http/build.gradle.kts @@ -57,12 +57,8 @@ mirai { excluded.any { it.matches(elm.path) } } } - publishing { - repo = "mirai" - packageName = "mirai-api-http" - override = true - } } + tasks.create("buildCiJar", Jar::class) { dependsOn("buildPlugin") doLast { @@ -76,6 +72,11 @@ tasks.create("buildCiJar", Jar::class) { } } +mavenCentralPublish { + githubProject("project-mirai", "mirai-api-http") + licenseFromGitHubProject("licenseAgplv3", "master") +} + dependencies { implementation(kotlin("stdlib-jdk8")) }