nebula-plugins / gradle-ospackage-plugin

Gradle plugin for constructing linux packages, specifically RPM and DEBs.
Apache License 2.0
368 stars 129 forks source link

RPM: defining fileType/directive for a copySpec does not work from Kotlin code #410

Open lkoe opened 2 years ago

lkoe commented 2 years ago

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#example

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.