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

Plugin sanitizes package versions but doesn't sanitize dependencies version #450

Open dant3 opened 3 weeks ago

dant3 commented 3 weeks ago

We have a package A with version 1.0.0-SNAPSHOT. Resulting RPM package gets version 1.0.0~SNAPSHOT because of sanitizeVersion call. Now, we have a package B which requires('A', A.version) but here, this version doesn't pass any changes and the resulting package has a meta with requirement of 1.0.0-SNAPSHOT, not 1.0.0~SNAPSHOT, which is obviously not working.