Skip to content

Commit d71d6bc

Browse files
authored
Enable auto release to Maven Central (#282)
1 parent bf50d4b commit d71d6bc

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

Makefile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,8 @@ lintfix: ## Applies the lint changes.
4949
$(GRADLE) spotlessApply
5050

5151
.PHONY: release
52-
release: ## Upload artifacts to Sonatype Nexus.
53-
$(GRADLE) --info publish --stacktrace --no-daemon --no-parallel
54-
$(GRADLE) --info releaseRepository
52+
release: ## Upload artifacts to Maven Central.
53+
$(GRADLE) --info publishAndReleaseToMavenCentral --stacktrace --no-daemon --no-parallel --no-configuration-cache
5554

5655
.PHONY: releaselocal
5756
releaselocal: ## Release artifacts to local maven repository.

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ allprojects {
219219

220220
mavenPublishing {
221221
val isAutoReleased = project.hasProperty("signingInMemoryKey")
222-
publishToMavenCentral(SonatypeHost.CENTRAL_PORTAL)
222+
publishToMavenCentral(SonatypeHost.CENTRAL_PORTAL, automaticRelease = true)
223223
if (isAutoReleased) {
224224
signAllPublications()
225225
}

0 commit comments

Comments
 (0)