However, this seens only to work from a groovy script, as the fileType is beeing set as a dynamic groovy property and then later on evaluated from the groovy metaclass.
Kotlin code however does cannot use this mechanism as it only "sees" the fileType property of the rpm-Task itself (which is not useful) and is therefor unable to set this per copyspec.
According to the plugin docs its possible to define the directive for a rpm copyspec by using the
fileType
property: https://github.com/nebula-plugins/gradle-ospackage-plugin/wiki/RPM-Plugin#exampleHowever, this seens only to work from a groovy script, as the
fileType
is beeing set as a dynamic groovy property and then later on evaluated from the groovy metaclass.Kotlin code however does cannot use this mechanism as it only "sees" the fileType property of the rpm-Task itself (which is not useful) and is therefor unable to set this per copyspec.