aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSzczepan Faber <szczepiq@gmail.com>2021-03-22 09:41:40 -0500
committerGitHub <noreply@github.com>2021-03-22 09:41:40 -0500
commit3850c83f74d270fefdc5e81f96f3f316b1bd15e5 (patch)
tree280084b9cdb5db9ff8c420b06c235ceea7786f67
parenta146ed759c4e5b282b8780ba772db810b8d84ab6 (diff)
parent6c7aeaf4e362b75a7a206e98eb051b98c2dc2933 (diff)
downloadmockito-kotlin-3850c83f74d270fefdc5e81f96f3f316b1bd15e5.tar.gz
Merge pull request #411 from mockito/mockitoguy-patch-2
Enabled releases to Maven Central
-rw-r--r--.github/workflows/ci.yml2
-rw-r--r--build.gradle6
2 files changed, 6 insertions, 2 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 3dd06af..da82e7d 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -97,7 +97,7 @@ jobs:
java-version: 8
- name: Build and release
- run: ./gradlew githubRelease publishToSonatype # closeAndReleaseStagingRepository
+ run: ./gradlew githubRelease publishToSonatype closeAndReleaseStagingRepository
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
NEXUS_TOKEN_USER: ${{secrets.NEXUS_TOKEN_USER}}
diff --git a/build.gradle b/build.gradle
index 39b0f65..4ee6ca3 100644
--- a/build.gradle
+++ b/build.gradle
@@ -34,12 +34,16 @@ tasks.named("githubRelease") {
githubToken = System.getenv("GITHUB_TOKEN")
newTagRevision = System.getenv("GITHUB_SHA")
releaseTag = project.version
+ releaseName = project.version
}
nexusPublishing {
repositories {
if (System.getenv("NEXUS_TOKEN_PWD")) {
- sonatype {
+ sonatype { // Publishing to: https://s01.oss.sonatype.org (faster instance)
+ nexusUrl = uri("https://s01.oss.sonatype.org/service/local/")
+ snapshotRepositoryUrl = uri("https://s01.oss.sonatype.org/content/repositories/snapshots/")
+
username = System.getenv("NEXUS_TOKEN_USER")
password = System.getenv("NEXUS_TOKEN_PWD")
}