Skip to content

Commit d2a76e2

Browse files
committed
avoid build failure when gradle.properties file is missing
1 parent 5d683f6 commit d2a76e2

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

WordPressUtils/build.gradle

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,11 @@ android {
3636
uploadArchives {
3737
repositories {
3838
mavenDeployer {
39-
repository(url: project.repository)
39+
def repo_url = ""
40+
if (project.hasProperty("repository")) {
41+
repo_url = project.repository
42+
}
43+
repository(url: repo_url)
4044
pom.version = android.defaultConfig.versionName
4145
pom.groupId = "org.wordpress"
4246
pom.artifactId = "wordpress-utils"

0 commit comments

Comments
 (0)