Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 14 additions & 12 deletions feature-examples/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -47,18 +47,20 @@ allprojects {
def installDir = System.getenv('GEMFIRE_HOME') ?: System.getenv('GEODE_HOME')

task checkEnv {
if (installDir==null || installDir.isEmpty()) {
throw new GradleException("Please export GEMFIRE_HOME=<the top-level directory extracted from your GemFire .tgz> (if this message persists, you may also need to ./gradlew --stop)")
} else {
println("GemFire directory is $installDir")
}

if (project.getProperty('gemfireRepositoryUrl').contains('commercial-repo.pivotal.io')) {
if (!project.hasProperty("gemfireReleaseRepoUser") || gemfireReleaseRepoUser.isEmpty()) {
throw new GradleException("Please set gemfireReleaseRepoUser in gradle.properties to the email address you registered at https://commercial-repo.pivotal.io/")
doLast {
if (installDir == null || installDir.isEmpty()) {
throw new GradleException("Please export GEMFIRE_HOME=<the top-level directory extracted from your GemFire .tgz> (if this message persists, you may also need to ./gradlew --stop)")
} else {
println("GemFire directory is $installDir")
}
if (!project.hasProperty("gemfireReleaseRepoPassword") || gemfireReleaseRepoPassword.isEmpty()) {
throw new GradleException("Please set gemfireReleaseRepoPassword in gradle.properties to the https://commercial-repo.pivotal.io/ password for $gemfireReleaseRepoUser")

if (project.getProperty('gemfireRepositoryUrl').contains('commercial-repo.pivotal.io')) {
if (!project.hasProperty("gemfireReleaseRepoUser") || gemfireReleaseRepoUser.isEmpty()) {
throw new GradleException("Please set gemfireReleaseRepoUser in gradle.properties to the email address you registered at https://commercial-repo.pivotal.io/")
}
if (!project.hasProperty("gemfireReleaseRepoPassword") || gemfireReleaseRepoPassword.isEmpty()) {
throw new GradleException("Please set gemfireReleaseRepoPassword in gradle.properties to the https://commercial-repo.pivotal.io/ password for $gemfireReleaseRepoUser")
}
}
}
}
Expand Down Expand Up @@ -184,4 +186,4 @@ subprojects {

apply from: "gradle/spotless.gradle"
apply from: "gradle/ide.gradle"
apply from: "gradle/rat.gradle"
apply from: "gradle/rat.gradle"