Hello, I recently started contributing to the AUR and I have some questions on JDK naming. I submitted a package called “jdk17-azul-prime-bin” yesterday, but then I realized that other Zulu jdk packages follow a different naming convention, such as “zulu-8-bin”, “zulu-17-bin”, “zulu-20-bin”... For consistency, I requested a merge to rename my package as “zulu-prime-17-bin”. Was that a good decision? In general, what is the best way to name JDK and JRE packages? For instance, how should I name the JDK and JRE Zulu Prime packages for Java 8 to differentiate them? Thank you
Hello, I believe the correct naming scheme would be the following: For JRE: jre<version>-<identifier> the version being the java version, and the identifier is the project/fork, such as openjdk, adoptium etc. For JDK: jdk<version>-<identifier> Using the same convention as above. This is how it works within the official repositories and therefore I believe is the best indication of a standard: ❯ pacman -Qs jdk local/jdk-openjdk 20.0.1.u9-3 OpenJDK Java 20 development kit local/jdk11-graalvm-bin 22.3.2-1 Universal virtual machine for running applications written in a variety of languages (JVM-based, LLVM-based, or other), Java 11 version local/jdk11-openjdk 11.0.19.u7-1 OpenJDK Java 11 development kit local/jre-openjdk 20.0.1.u9-3 OpenJDK Java 20 full runtime environment local/jre-openjdk-headless 20.0.1.u9-3 OpenJDK Java 20 headless runtime environment local/jre11-openjdk 11.0.19.u7-1 OpenJDK Java 11 full runtime environment local/jre11-openjdk-headless 11.0.19.u7-1 OpenJDK Java 11 headless runtime environment local/jre17-openjdk 17.0.7.u7-1 OpenJDK Java 17 full runtime environment local/jre17-openjdk-headless 17.0.7.u7-1 OpenJDK Java 17 headless runtime environment local/native-image-jdk11-bin 22.3.2-1 Plugin to turn GraalVM-based applications into native binary images (Java 11 version) ~ on ☁ ❯ pacman -Qs jre local/jre-openjdk 20.0.1.u9-3 OpenJDK Java 20 full runtime environment local/jre-openjdk-headless 20.0.1.u9-3 OpenJDK Java 20 headless runtime environment local/jre11-openjdk 11.0.19.u7-1 OpenJDK Java 11 full runtime environment local/jre11-openjdk-headless 11.0.19.u7-1 OpenJDK Java 11 headless runtime environment local/jre17-openjdk 17.0.7.u7-1 OpenJDK Java 17 full runtime environment local/jre17-openjdk-headless 17.0.7.u7-1 OpenJDK Java 17 headless runtime environment Hope this helps, -- Polarian GPG signature: 0770E5312238C760 Website: https://polarian.dev JID/XMPP: polarian@polarian.dev
participants (2)
-
Polarian
-
Tommaso Dordoni