diff --git a/distribution/packages/build.gradle b/distribution/packages/build.gradle index 171bc9bfa12..48251b9fe31 100644 --- a/distribution/packages/build.gradle +++ b/distribution/packages/build.gradle @@ -134,9 +134,9 @@ Closure commonPackageConfig(String type, boolean jdk, String architecture) { destinationDirectory = file("${prefix}/build/distributions") // SystemPackagingTask overrides default archive task convention mappings, but doesn't provide a setter so we have to override the convention mapping itself - // Deb convention uses a '-' for final separator before architecture, rpm uses a '.' + // Deb convention uses a '_' for final separator before architecture, rpm uses a '.' if (type == 'deb') { - conventionMapping.archiveFile = { objects.fileProperty().fileValue(file("${destinationDirectory.get()}/${packageName}-${project.version}${jdkString}-${archString}.${type}")) } + conventionMapping.archiveFile = { objects.fileProperty().fileValue(file("${destinationDirectory.get()}/${packageName}_${project.version}${jdkString}_${archString}.${type}")) } } else { conventionMapping.archiveFile = { objects.fileProperty().fileValue(file("${destinationDirectory.get()}/${packageName}-${project.version}${jdkString}.${archString}.${type}")) } }