Skip to content

Commit 2bade5f

Browse files
committed
j-rel
1 parent 92f4a2b commit 2bade5f

File tree

1 file changed

+27
-4
lines changed

1 file changed

+27
-4
lines changed

build.gradle

Lines changed: 27 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -129,11 +129,34 @@ publishing {
129129
}
130130
}
131131

132-
if (!project.gradle.startParameter.taskNames.contains('publishToMavenLocal')) {
132+
133+
jreleaser {
133134
signing {
134-
sign publishing.publications.mavenJava
135-
if (System.env['CI']) {
136-
useInMemoryPgpKeys(System.env.GPG_PRIVATE_KEY, System.env.GPG_PASSPHRASE)
135+
active = 'ALWAYS'
136+
armored = true
137+
verify = false
138+
}
139+
deploy {
140+
maven {
141+
mavenCentral {
142+
'release-deploy' {
143+
active = 'RELEASE'
144+
url = 'https://central.sonatype.com/api/v1/publisher'
145+
stagingRepository('build/staging-deploy')
146+
}
147+
}
148+
nexus2 {
149+
'snapshot-deploy' {
150+
active = 'SNAPSHOT'
151+
snapshotUrl = 'https://central.sonatype.com/repository/maven-snapshots'
152+
url = 'https://central.sonatype.com/repository/maven-snapshots'
153+
applyMavenCentralRules = true
154+
snapshotSupported = true
155+
closeRepository = true
156+
releaseRepository = true
157+
stagingRepository('build/staging-deploy')
158+
}
159+
}
137160
}
138161
}
139162
}

0 commit comments

Comments
 (0)