RPM packaging: support both java-17 and java-17-headless. jre-17 and jre-17-headless alternatives added as well. Specific requires notations differ from Debian.

This commit is contained in:
Sergey Matvienko 2025-07-21 17:03:23 +02:00
parent af889fc1fd
commit 297a79b3ad

View File

@ -92,7 +92,7 @@ buildRpm {
archiveVersion = projectVersion.replace('-', '')
archiveFileName = "${pkgName}.rpm"
requires("java-17")
requires("(java-17 or java-17-headless or jre-17 or jre-17-headless)") // .or() notation does work in RPM plugin
from("${buildDir}/conf") {
include "${pkgName}.conf"