heroku-gradle | Gradle plugin for deploying JAR | Platform As A Service library
kandi X-RAY | heroku-gradle Summary
kandi X-RAY | heroku-gradle Summary
This plugin is used to deploy Gradle based JVM applications directly to Heroku without pushing to a Git repository. This can be useful when deploying from a CI server.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Deploys JVM application directly to Heroku
- Get plugin version
- Log a message object at debug level
- Log an error
- Logs a message at the INFO level
- Logs the upload progress
- Log a warning message
- Returns an unmodifiable list of the buildpacks
- Returns an unmodifiable map of config variables
- Returns an unmodifiable list of the includes
- Get the process types
heroku-gradle Key Features
heroku-gradle Examples and Code Snippets
heroku {
appName = "sushi"
}
heroku {
includes = ["README.md"]
}
heroku {
includes = ["build/libs/my-app.jar"]
includeBuildDir = false
}
heroku {
includeRootDir = project.buildDir
}
heroku {
jdkVersion = 11
}
heroku {
processTypes(
plugins {
id "com.heroku.sdk.heroku-gradle" version "2.0.0"
}
$ heroku create
$ ./gradlew build deployHeroku
$ git clone https://github.com/heroku/heroku-maven-plugin
$ cd heroku-maven-plugin/heroku-deploy
# make your changes
$ mvn clean install
Community Discussions
Trending Discussions on heroku-gradle
QUESTION
I am trying to configure the build.gradle file so that it supports both Junit 5 and Jacoco. I was using useJunitPlatform before, but it generates another errors. I also tried some other ways, but none can successfully generate Jacoco report. This configuration however, sucessfully generated Jacoco report for me, but it also gave me an exception. Below is my build.gradle file.
...ANSWER
Answered 2020-Nov-13 at 08:48Based on your error message
Caused by: java.lang.IllegalArgumentException: Unsupported class file major version 59
and according to https://en.wikipedia.org/wiki/Java_class_file you're using Java 15.
According to https://www.jacoco.org/jacoco/trunk/doc/changes.html support for Java 15 was added in JaCoCo version 0.8.6
So either you don't need Java 15 and can use earlier version such as 11 (LTS), or you need to change
QUESTION
currently I'm struggling with Neo4j/GrapheneDB (Dev free plan) on Heroku platform. Launching my app locally via "heroku local" works fine, it connects (Neo4j Java Driver 4) to a Neo4j 3.5.18 (running from Docker image "neo4j:3.5").
My app is built using Micronaut framework, using its Neo4j support. Launching my app on Heroku platform succeeds, I'm using Gradle Heroku plugin for this task.
But accessing the database with business operations (and health checks) fails with exception like this:
...ANSWER
Answered 2020-Jun-13 at 07:16I had a closer look at this and it seems that you need the driver encryption turned on for the Graphene db instances. This can be configured in application.yml
as below:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install heroku-gradle
You can use heroku-gradle like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the heroku-gradle component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page