File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ plugins {
7
7
`java- library`
8
8
`maven- publish`
9
9
signing
10
+ id(" io.codearte.nexus-staging" ) version " 0.30.0"
10
11
kotlin(" jvm" ) version " 1.7.20-RC"
11
12
id(" org.jetbrains.dokka" ) version " 1.8.10" // KDoc Documentation Builder
12
13
id(" com.github.breadmoirai.github-release" ) version " 2.4.1"
@@ -53,6 +54,15 @@ val sourcesJar by tasks.registering(Jar::class) {
53
54
from(sourceSets.main.get().allSource)
54
55
}
55
56
57
+ nexusStaging {
58
+ packageGroup = " com.cjcrafter"
59
+ stagingProfileId = findProperty(" OSSRH_ID" ).toString()
60
+ username = findProperty(" OSSRH_USERNAME" ).toString()
61
+ password = findProperty(" OSSRH_PASSWORD" ).toString()
62
+ numberOfRetries = 30
63
+ delayBetweenRetriesInMillis = 3000
64
+ }
65
+
56
66
// Signing artifacts
57
67
signing {
58
68
isRequired = true
@@ -116,6 +126,11 @@ publishing {
116
126
}
117
127
}
118
128
129
+ // After publishing, the nexus plugin will automatically close and release
130
+ tasks.named(" publish" ) {
131
+ finalizedBy(" closeAndReleaseRepository" )
132
+ }
133
+
119
134
tasks.register<GithubReleaseTask >(" createGithubRelease" ).configure {
120
135
// https://github.com/BreadMoirai/github-release-gradle-plugin
121
136
owner.set(" CJCrafter" )
You can’t perform that action at this time.
0 commit comments