mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-27 08:50:15 +08:00
Auto release to maven central
This commit is contained in:
parent
9d8781d27c
commit
fb2632073b
5
.github/workflows/release.yml
vendored
5
.github/workflows/release.yml
vendored
@ -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
|
||||
|
@ -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) }
|
||||
}
|
||||
}
|
||||
|
||||
|
22
ci-release-helper/build.gradle.kts
Normal file
22
ci-release-helper/build.gradle.kts
Normal 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
|
||||
}
|
@ -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
|
||||
|
@ -29,6 +29,7 @@ include(":mirai-core")
|
||||
include(":mirai-core-all")
|
||||
|
||||
include(":binary-compatibility-validator")
|
||||
include(":ci-release-helper")
|
||||
|
||||
|
||||
fun includeConsoleProjects() {
|
||||
|
Loading…
Reference in New Issue
Block a user