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 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 November 14, 2019

I solved this by adding system.properties file:

 

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

rigo_campo February 18, 2020

How would that configuration be with gradle?

Comment

Log in or Sign up to comment
TAGS
AUG Leaders

Atlassian Community Events