Skip to content

Commit

Permalink
Update buildscript
Browse files Browse the repository at this point in the history
  • Loading branch information
ryoii committed Sep 9, 2021
1 parent 3a3f1c4 commit b4ef494
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
10 changes: 4 additions & 6 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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()
}
}
11 changes: 6 additions & 5 deletions mirai-api-http/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -76,6 +72,11 @@ tasks.create("buildCiJar", Jar::class) {
}
}

mavenCentralPublish {
githubProject("project-mirai", "mirai-api-http")
licenseFromGitHubProject("licenseAgplv3", "master")
}

dependencies {
implementation(kotlin("stdlib-jdk8"))
}
Expand Down

0 comments on commit b4ef494

Please sign in to comment.