Skip to content

Commit

Permalink
fix(gradle): project.rootProject.findProject('local.properties') == n…
Browse files Browse the repository at this point in the history
…ull [ci skip]
  • Loading branch information
nukc committed Feb 20, 2017
1 parent 284c2ae commit 7c7a183
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README-en.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ it will be added to the layout.
add the dependency to your build.gradle:

```groovy
compile 'com.github.nukc.stateview:library:1.0.0'
compile 'com.github.nukc.stateview:library:1.0.1'
```

##Usage
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ StateView 一个轻量级的控件, 继承自 `View`, 吸收了 `ViewStub` 的


```groovy
compile 'com.github.nukc.stateview:library:1.0.0'
compile 'com.github.nukc.stateview:library:1.0.1'
```

## 使用方法
Expand Down
8 changes: 3 additions & 5 deletions bintray.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ apply plugin: 'com.jfrog.bintray'
def siteUrl = 'https://github.com/nukc/StateView' // 项目的主页
def gitUrl = 'https://github.com/nukc/StateView.git' // Git仓库的url

group = "com.github.nukc.stateview" // Maven Group ID for the artifact,一般填你唯一的包名
group = "com.github.nukc.stateview"
version = "1.0.1"

install {
repositories.mavenInstaller {
Expand Down Expand Up @@ -39,9 +40,6 @@ install {
}
}

// This is the library version used when deploying the artifact
version = "1.0.1"

task sourcesJar(type: Jar) {
from android.sourceSets.main.java.srcDirs
classifier = 'sources'
Expand All @@ -65,7 +63,7 @@ artifacts {

Properties properties = new Properties()
boolean isHasFile = false
if (project.rootProject.findProject('local.properties') != null){
if (project.rootProject.file("local.properties") != null){
isHasFile = true
properties.load(project.rootProject.file('local.properties').newDataInputStream())
}
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ buildscript {
}
dependencies {
classpath 'com.android.tools.build:gradle:2.2.3'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.2'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.3'
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
Expand Down

0 comments on commit 7c7a183

Please sign in to comment.