Skip to content

Commit

Permalink
Added cloudfoundry plugin to build.gradle.
Browse files Browse the repository at this point in the history
  • Loading branch information
scottfrederick committed Oct 21, 2013
1 parent e8a105a commit 5618097
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ apply plugin: 'idea'
apply plugin: 'tomcat'
apply plugin: 'war'

apply plugin: 'cloudfoundry'

sourceCompatibility = 1.6
version = '1.0'

Expand Down Expand Up @@ -34,6 +36,7 @@ buildscript {

dependencies {
classpath 'org.gradle.api.plugins:gradle-tomcat-plugin:0.9.8'
classpath 'org.cloudfoundry:cf-gradle-plugin:1.0.0'
}
}

Expand Down Expand Up @@ -103,3 +106,23 @@ war {
tomcatRun {
outputFile = file('tomcat.log')
}

cloudfoundry {
target = "https://api.run.pivotal.io"
space = "development"
file = file("build/libs/spring-music.war")
uri = "spring-music-${randomWord}.cfapps.io"
memory = 512
instances = 1

serviceInfos {
"music-mongodb" {
label = "mongolab"
provider = "mongolab"
version = "n/a"
plan = "sandbox"
bind = true
}
}
}

0 comments on commit 5618097

Please sign in to comment.