Skip to content

Commit f264930

Browse files
authored
chore: Allow building project without ossrh credentials (#68)
1 parent e9500af commit f264930

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
@@ -113,8 +113,8 @@ publishing {
113113
def snapshotsRepoUrl = "https://s01.oss.sonatype.org/content/repositories/snapshots/"
114114
url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl
115115
credentials {
116-
username = ossrhUsername
117-
password = ossrhPassword
116+
username = project.properties.containsKey("ossrhUsername") ? project.properties["ossrhUsername"] : ""
117+
password = project.properties.containsKey("ossrhPassword") ? project.properties["ossrhPassword"] : ""
118118
}
119119
}
120120
}

0 commit comments

Comments
 (0)