Skip to content

Commit dbe310b

Browse files
jkutnersnicoll
authored andcommitted
Update Heroku deployment documentation
Closes gh-3000
1 parent bb877ed commit dbe310b

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

spring-boot-docs/src/main/asciidoc/cloud-deployment.adoc

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -161,14 +161,14 @@ Spring Boot makes `-D` arguments available as properties accessible from a Sprin
161161
Tomcat, Jetty or Undertow instance which then uses it when it starts up. The `$PORT`
162162
environment variable is assigned to us by the Heroku PaaS.
163163

164-
Heroku by default will use Java 1.6. This is fine as long as your Maven or Gradle build
165-
is set to use the same version (Maven users can use the `java.version` property). If you
164+
Heroku by default will use Java 1.8. This is fine as long as your Maven or Gradle build
165+
is set to use the same version (Maven users can use the java.version property). If you
166166
want to use JDK 1.7, create a new file adjacent to your `pom.xml` and `Procfile`,
167167
called `system.properties`. In this file add the following:
168168

169-
[source,java]
169+
[indent=0]
170170
----
171-
java.runtime.version=1.7
171+
java.runtime.version=1.7
172172
----
173173

174174
This should be everything you need. The most common workflow for Heroku deployments is to
@@ -186,13 +186,10 @@ This should be everything you need. The most common workflow for Heroku deployme
186186
Total 95 (delta 31), reused 0 (delta 0)
187187
188188
-----> Java app detected
189-
-----> Installing OpenJDK 1.7... *done*
190-
-----> Installing Maven 3.2.3... *done*
189+
-----> Installing OpenJDK 1.8... *done*
190+
-----> Installing Maven 3.3.1... *done*
191191
-----> Installing settings.xml... *done*
192-
-----> executing /app/tmp/cache/.maven/bin/mvn -B
193-
-Duser.home=/tmp/build_0c35a5d2-a067-4abc-a232-14b1fb7a8229
194-
-Dmaven.repo.local=/app/tmp/cache/.m2/repository
195-
-s /app/tmp/cache/.m2/settings.xml -DskipTests=true clean install
192+
-----> Executing: mvn -B -DskipTests=true clean install
196193
197194
[INFO] Scanning for projects...
198195
Downloading: http://repo.spring.io/...

0 commit comments

Comments
 (0)