It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to setup java 11 for the heroku pipline

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

I solved this by adding system.properties file:

 

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

How would that configuration be with gradle?

Comment

Log in or Sign up to comment
TAGS
Community showcase
Published in Bitbucket Pipelines

What We Learned When We Researched Open Source Vulnerabilities in 7 Popular Coding Languages

...hey are a part of us, shaping how we interact with the world around us. The same holds true for programming languages when we think about how different kinds of vulnerabilities raise their heads in t...

723 views 0 2
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you