Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How to setup java 11 for the heroku pipline

Valentyn Kolesnikov
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 13, 2019

Hey you guys,

 

Anyone know how to setup jdk 11 for the heroku deployment?

I tried this configuration:

```

pipelines:
default:
- step:
name: Build and test
image: maven:3-jdk-11
caches:
- maven
script:
- mvn -B clean verify -DskipTests
- step:
name: Create artifact
script:
- tar czfv application.tgz pom.xml src/ lib/
artifacts:
- application.tgz
- step:
name: Deploy to production
deployment: production
script:
- pipe: atlassian/heroku-deploy:0.1.1
variables:
HEROKU_API_KEY: $HEROKU_API_KEY
HEROKU_APP_NAME: $HEROKU_APP_NAME
ZIP_FILE: "application.tgz"
```

2 comments

Valentyn Kolesnikov
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 14, 2019

I solved this by adding system.properties file:

 

tar czfv application.tgz pom.xml system.properties src/ lib/

rigo_campo
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 18, 2020

How would that configuration be with gradle?

Comment

Log in or Sign up to comment
TAGS
AUG Leaders

Atlassian Community Events