Skip to content

Commit 2305c97

Browse files
committed
Added credentials section - publishing works now.
1 parent 9f89ae8 commit 2305c97

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

annotations/build.gradle

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,11 @@ publishing {
5050
def releasesRepoUrl = "https://oss.sonatype.org/service/local/staging/deploy/maven2/"
5151
def snapshotsRepoUrl = "https://oss.sonatype.org/content/repositories/snapshots/"
5252
url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl
53+
54+
credentials {
55+
username = "${ossrhUsername}"
56+
password = "${ossrhPassword}"
57+
}
5358
}
5459
}
5560
}

extensions/build.gradle

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,11 @@ publishing {
5858
def releasesRepoUrl = "https://oss.sonatype.org/service/local/staging/deploy/maven2/"
5959
def snapshotsRepoUrl = "https://oss.sonatype.org/content/repositories/snapshots/"
6060
url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl
61+
62+
credentials {
63+
username = "${ossrhUsername}"
64+
password = "${ossrhPassword}"
65+
}
6166
}
6267
}
6368
}

0 commit comments

Comments
 (0)