Skip to content

Commit 3850c83

Browse files
authored
Merge pull request #411 from mockito/mockitoguy-patch-2
Enabled releases to Maven Central
2 parents a146ed7 + 6c7aeaf commit 3850c83

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ jobs:
9797
java-version: 8
9898

9999
- name: Build and release
100-
run: ./gradlew githubRelease publishToSonatype # closeAndReleaseStagingRepository
100+
run: ./gradlew githubRelease publishToSonatype closeAndReleaseStagingRepository
101101
env:
102102
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
103103
NEXUS_TOKEN_USER: ${{secrets.NEXUS_TOKEN_USER}}

build.gradle

+5-1
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,16 @@ tasks.named("githubRelease") {
3434
githubToken = System.getenv("GITHUB_TOKEN")
3535
newTagRevision = System.getenv("GITHUB_SHA")
3636
releaseTag = project.version
37+
releaseName = project.version
3738
}
3839

3940
nexusPublishing {
4041
repositories {
4142
if (System.getenv("NEXUS_TOKEN_PWD")) {
42-
sonatype {
43+
sonatype { // Publishing to: https://s01.oss.sonatype.org (faster instance)
44+
nexusUrl = uri("https://s01.oss.sonatype.org/service/local/")
45+
snapshotRepositoryUrl = uri("https://s01.oss.sonatype.org/content/repositories/snapshots/")
46+
4347
username = System.getenv("NEXUS_TOKEN_USER")
4448
password = System.getenv("NEXUS_TOKEN_PWD")
4549
}

0 commit comments

Comments
 (0)