mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-25 16:07:12 -07:00
Make local.properties optional.
This commit is contained in:
parent
233492c237
commit
2239272235
2 changed files with 3 additions and 4 deletions
|
@ -3,9 +3,6 @@ language: java
|
||||||
jdk:
|
jdk:
|
||||||
- oraclejdk8
|
- oraclejdk8
|
||||||
|
|
||||||
before_install:
|
|
||||||
- touch local.properties
|
|
||||||
|
|
||||||
install: true
|
install: true
|
||||||
|
|
||||||
script: exec ./kobaltw assemble test
|
script: exec ./kobaltw assemble test
|
||||||
|
|
|
@ -38,7 +38,9 @@ publishing {
|
||||||
task install(dependsOn: publishToMavenLocal)
|
task install(dependsOn: publishToMavenLocal)
|
||||||
|
|
||||||
Properties properties = new Properties()
|
Properties properties = new Properties()
|
||||||
properties.load(project.rootProject.file('local.properties').newDataInputStream())
|
if (new File('local.properties').exists()) {
|
||||||
|
properties.load(project.rootProject.file('local.properties').newDataInputStream())
|
||||||
|
}
|
||||||
|
|
||||||
bintray {
|
bintray {
|
||||||
user = properties.getProperty("bintray.user")
|
user = properties.getProperty("bintray.user")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue