diff --git a/Makefile b/Makefile index 7f771909..9849c9a9 100644 --- a/Makefile +++ b/Makefile @@ -49,9 +49,8 @@ lintfix: ## Applies the lint changes. $(GRADLE) spotlessApply .PHONY: release -release: ## Upload artifacts to Sonatype Nexus. - $(GRADLE) --info publish --stacktrace --no-daemon --no-parallel - $(GRADLE) --info releaseRepository +release: ## Upload artifacts to Maven Central. + $(GRADLE) --info publishAndReleaseToMavenCentral --stacktrace --no-daemon --no-parallel --no-configuration-cache .PHONY: releaselocal releaselocal: ## Release artifacts to local maven repository. diff --git a/build.gradle.kts b/build.gradle.kts index fa0304ec..f865d311 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -219,7 +219,7 @@ allprojects { mavenPublishing { val isAutoReleased = project.hasProperty("signingInMemoryKey") - publishToMavenCentral(SonatypeHost.CENTRAL_PORTAL) + publishToMavenCentral(SonatypeHost.CENTRAL_PORTAL, automaticRelease = true) if (isAutoReleased) { signAllPublications() }