TrigonicSolutions / gradle-rpm-plugin

Gradle plugin for constructing RPM packages.
Apache License 2.0
38 stars 19 forks source link

Version 1.4 no longer supports user and group settings for files #49

Open gruberrolandfiducia opened 10 years ago

gruberrolandfiducia commented 10 years ago

Example:

from('content') {
    into '/usr/share/mypackage/content'
    user 'myuser'
    group 'mygroup'
}

This will result in an exception:

FAILURE: Build failed with an exception.

Maybe this was lost with the Gradle 1.7 compatibility changes?

merscwog commented 10 years ago

This was broken with the 1.7 changes, although user = 'myuser' and group = 'mygroup' will work.

The opposite problem is occurring with some changes being worked on to have the rpm plugin work with Gradle 1.8 (and ideally 1.9+). It supports user 'myuser' and group 'mygroup', but using = results in undesired behavior using Gradle 1.8.

Unfortunately, for Gradle 1.9-rc-3, none of the plugin variants currently work either way for per-copyspec user or group assignment due to internal changes made to Gradle that haven't been worked around yet. Well, technically the current plugin doesn't work with anything newer than Gradle 1.7.

-Spencer