Auto-publish artifacts when uploaded to bintray

This commit is contained in:
Him188 2020-12-19 23:36:12 +08:00
parent a68a6f2eae
commit be6c67778e
2 changed files with 4 additions and 1 deletions

View File

@ -119,6 +119,9 @@ inline fun Project.configurePublishing(
setPublications("mavenJava")
setConfigurations("archives")
publish = true
override = true
pkg.apply {
repo = bintrayRepo
name = bintrayPkgName

View File

@ -10,7 +10,7 @@
publishing {
repositories {
maven {
url = "https://api.bintray.com/maven/him188moe/mirai/mirai-core/;publish=0"
url = "https://api.bintray.com/maven/him188moe/mirai/mirai-core/;publish=1"
credentials {
username = upload.Bintray.getUser(project)