Skip to content
openjavaformatPublic

About

apt repository for open-java-format

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

apt repository for open-java-format

The native binary of the latest open-java-format release, packaged for Ubuntu and Debian on amd64 and arm64. It needs no JDK.

sudo install -d -m 0755 /etc/apt/keyrings
curl -fsSL https://apt.openjavaformat.dev/key.asc | sudo tee /etc/apt/keyrings/open-java-format.asc > /dev/null
echo "deb [signed-by=/etc/apt/keyrings/open-java-format.asc] https://apt.openjavaformat.dev stable main" \
  | sudo tee /etc/apt/sources.list.d/open-java-format.list
sudo apt update
sudo apt install open-java-format
open-java-format --version

The package installs /usr/bin/open-java-format. It needs glibc 2.34 or later, which is Ubuntu 22.04 or Debian 12 and newer; it is tested on Ubuntu 22.04, 24.04 and 26.04 and on Debian 12 and 13.

sudo apt upgrade takes each new release. A new minor version can change the output (see Versions); sudo apt-mark hold open-java-format holds the installed one. The repository carries the latest version only: older versions are on the release page as plain binaries.

The repository is signed by a key of its own, not by the release key. Its fingerprint is 5098 A90C 44ED 5129 8CB5 C476 D8F1 EFB5 9EE1 EB3C.

How it keeps up

Publish runs once an hour. When the newest release is not the version that the repository serves, it downloads the release's two Linux binaries, checks them against its checksums_sha256.txt, builds the packages and the signed indexes with build-repository.sh, installs from the result on every system above, on amd64 and arm64, and deploys it to GitHub Pages. The packages go up as a Pages artifact, so no binary lands in Git history. A push to main and a pull request do the same, except that a pull request deploys nothing.

About

apt repository for open-java-format

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages