Skip to content

Commit

Permalink
#52 Fixed conditional problem in gradle script for SDK header
Browse files Browse the repository at this point in the history
  • Loading branch information
aweigold committed Feb 5, 2018
1 parent 818b9dc commit e605d66
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .idea/modules/delivery-sdk-java_main.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ plugins {

group 'com.kenticocloud'
version '1.0.6-SNAPSHOT'
ext.isContinuousIntegrationBuild = System.getenv('CONTINUOUS_INTEGRATION') != null
ext.isContinuousIntegrationBuild = System.getenv('CONTINUOUS_INTEGRATION') != null ? System.getenv('CONTINUOUS_INTEGRATION').toBoolean() : false
ext.repositoryHost = isContinuousIntegrationBuild ? "maven.org" : "localBuild"

apply plugin: 'java'
Expand Down Expand Up @@ -43,14 +43,14 @@ dependencies {

}

processResources {
if (isContinuousIntegrationBuild) {
filesMatching('build.properties') {
if (isContinuousIntegrationBuild) {
processResources {
filesMatching('com/kenticocloud/delivery/build.properties') {
filter { String line ->
line.replace "0.0.0", project.version
}
filter { String line ->
line.replace "localBuild", "$project.group:$project.name"
line.replace "localBuild", repositoryHost
}
}
}
Expand Down

0 comments on commit e605d66

Please sign in to comment.