Skip to content

Commit ed22c74

Browse files
committed
Build without local.properties
1 parent 28bed81 commit ed22c74

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

librootjava/build.gradle

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,9 @@ group = publishedGroupId
8383

8484
bintray {
8585
Properties properties = new Properties()
86-
properties.load(project.rootProject.file('local.properties').newDataInputStream())
86+
if (project.rootProject.file('local.properties').exists()) {
87+
properties.load(project.rootProject.file('local.properties').newDataInputStream())
88+
}
8789
user = properties.getProperty('bintray.user')
8890
key = properties.getProperty('bintray.apikey')
8991

librootjavadaemon/build.gradle

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,9 @@ group = publishedGroupId
9696

9797
bintray {
9898
Properties properties = new Properties()
99-
properties.load(project.rootProject.file('local.properties').newDataInputStream())
99+
if (project.rootProject.file('local.properties').exists()) {
100+
properties.load(project.rootProject.file('local.properties').newDataInputStream())
101+
}
100102
user = properties.getProperty('bintray.user')
101103
key = properties.getProperty('bintray.apikey')
102104

0 commit comments

Comments
 (0)