Auto release to maven central

This commit is contained in:
Karlatemp 2021-02-06 22:28:09 +08:00
parent 9d8781d27c
commit fb2632073b
No known key found for this signature in database
GPG Key ID: 21FBDDF664FF06F8
5 changed files with 35 additions and 5 deletions

View File

@ -119,3 +119,8 @@ jobs:
# :mirai-console-gradle:publishPlugins --info --stacktrace
# -Dgradle.publish.key=${{ secrets.GRADLE_PUBLISH_KEY }} -Pgradle.publish.key=${{ secrets.GRADLE_PUBLISH_KEY }}
# -Dgradle.publish.secret=${{ secrets.GRADLE_PUBLISH_SECRET }} -Pgradle.publish.secret=${{ secrets.GRADLE_PUBLISH_SECRET }}
- name: Gradle :ci-release-helper:closeAndReleaseRepository
run: >
./gradlew
:ci-release-helper:closeAndReleaseRepository --info

View File

@ -139,9 +139,9 @@ subprojects {
tasks.register("cleanExceptIntellij") {
group = "build"
allprojects.forEach {
if (it.name != "mirai-console-intellij")
dependsOn(it.tasks.findByName("clean"))
allprojects.forEach { proj ->
if (proj.name != "mirai-console-intellij")
proj.tasks.findByName("clean")?.let { dependsOn(it) }
}
}

View File

@ -0,0 +1,22 @@
/*
* Copyright 2019-2021 Mamoe Technologies and contributors.
*
* 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version 3 许可证的约束, 可以在以下链接找到该许可证.
* Use of this source code is governed by the GNU AGPLv3 license that can be found through the following link.
*
* https://github.com/mamoe/mirai/blob/master/LICENSE
*/
import keys.SecretKeys
plugins {
id("io.codearte.nexus-staging") version "0.22.0"
}
description = "Mirai CI Methods for Releasing"
nexusStaging {
packageGroup = rootProject.group.toString()
val keys = SecretKeys.getCache(project).loadKey("sonatype")
username = keys.user
password = keys.password
}

View File

@ -1,11 +1,12 @@
#
# Copyright 2019-2020 Mamoe Technologies and contributors.
# Copyright 2019-2021 Mamoe Technologies and contributors.
#
# 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version 3 许可证的约束, 可以在以下链接找到该许可证.
# Use of this source code is governed by the GNU AGPLv3 license that can be found through the following link.
#
# https://github.com/mamoe/mirai/blob/master/LICENSE
#
# style guide
kotlin.code.style=official
# config
@ -17,4 +18,5 @@ org.gradle.vfs.watch=true
kotlin.mpp.enableGranularSourceSetsMetadata=true
kotlin.native.enableDependencyPropagation=false
#kotlin.mpp.enableGranularSourceSetsMetadata=true
systemProp.org.gradle.internal.publish.checksums.insecure=true
systemProp.org.gradle.internal.publish.checksums.insecure=true
gnsp.disableApplyOnlyOnRootProjectEnforcement=true

View File

@ -29,6 +29,7 @@ include(":mirai-core")
include(":mirai-core-all")
include(":binary-compatibility-validator")
include(":ci-release-helper")
fun includeConsoleProjects() {