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") setPublications("mavenJava")
setConfigurations("archives") setConfigurations("archives")
publish = true
override = true
pkg.apply { pkg.apply {
repo = bintrayRepo repo = bintrayRepo
name = bintrayPkgName name = bintrayPkgName

View File

@ -10,7 +10,7 @@
publishing { publishing {
repositories { repositories {
maven { 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 { credentials {
username = upload.Bintray.getUser(project) username = upload.Bintray.getUser(project)