Skip to content

Commit 00e7680

Browse files
authored
chore: Allow building project without ossrh credentials (#13)
1 parent 89a051a commit 00e7680

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,8 @@ publishing {
9393
def snapshotsRepoUrl = "https://s01.oss.sonatype.org/content/repositories/snapshots/"
9494
url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl
9595
credentials {
96-
username = ossrhUsername
97-
password = ossrhPassword
96+
username = project.properties.containsKey("ossrhUsername") ? project.properties["ossrhUsername"] : ""
97+
password = project.properties.containsKey("ossrhPassword") ? project.properties["ossrhPassword"] : ""
9898
}
9999
}
100100
}

0 commit comments

Comments
 (0)