Hosthing early access · Explore the product. Public self-service deployment is not open yet. Stay in touch →
Skip to content
Buildpack language · Deploy from Git

Deploy a Java or Spring app from Git.

Deploy Java and Spring applications on Hosthing from a Git repository, built with Maven or Gradle.

JavaBuildpacks or DockerfilePriced by usage
How it works · Build and release

One delivery path, whichever runtime you bring.

Hosthing detects a supported buildpack or uses your Dockerfile, produces a revision and verifies the running application.

Illustrative product flow, not live resource status. Available operations depend on the selected provider, region, engine and configuration.

What it is

Deploying Java on Hosthing

Java is a mature, widely-used language for servers and enterprise applications. Hosthing builds it from your repository with the detected build tool.

How it is detected

Auto-detected from your repository.

When there is no Dockerfile, Hosthing selects the Java buildpack by finding these marker files in your repository:

Good to know

Honest, grounded notes

  • A Maven (pom.xml) or Gradle (build.gradle / build.gradle.kts) file triggers Java detection.
  • The buildpack produces a reproducible image; rebase lets you patch CVEs without a full rebuild.
  • Expose the HTTP port your application server binds to.
How to deploy

Deploy Java in three steps

  1. Connect your Git repository and choose the branch that holds your Java app.
  2. Review the detected build configuration, environment variables and listening port.
  3. Deploy — the build runs in the isolated Build Worker, then the image is run and health-checked.
Keep exploring

Other languages

Frequently asked

Deploying Java, answered.

Do I need a Dockerfile to deploy Java?

No. When there is no Dockerfile, Cloud Native Buildpacks (Paketo) detect Java from pom.xml and build a reproducible image with a software bill of materials. If a Dockerfile is present, it is built instead with kaniko — a daemonless builder whose safety depends on runner isolation and configuration.

How is my Java app detected?

Hosthing analyses your repository and looks for marker files — pom.xml, build.gradle, build.gradle.kts. When a marker is found, the matching buildpack is selected automatically. You review the detected configuration before the first deploy.

How much does it cost to run a Java app?

You pay for the compute and storage the app uses, drawn from prepaid credit by the hour. There is no separate per-language fee. Review the estimate in the console before deploying.

Can I connect a database to my Java app?

Yes. Add a database to the project — in-project or a dedicated managed database — and a service binding delivers the endpoint and credentials to your app at runtime. Credentials are never exposed to the browser.

Less managing. More making.

Ship your Java app on Hosthing.

Explore the product and tell us what you want to build. Public self-service deployment is not open yet.