mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-22 14:22:05 +01:00
Fix OSGi Bundle-Version
Bundle-Version's forth field, the qualifier, must be separated from the 'micro' version with a dot.
This commit is contained in:
parent
656b1c70be
commit
858492b177
1 changed files with 6 additions and 1 deletions
|
@ -31,7 +31,12 @@ allprojects {
|
|||
ext.sharedManifest = manifest {
|
||||
attributes('Implementation-Version': version,
|
||||
'Implementation-GitRevision': ext.gitCommit,
|
||||
'Bundle-Version': version)
|
||||
// According to OSGi core 5.0 section 3.2.5 the qualifier (the fourth
|
||||
// version element) must begin with a dot. So we replace only the
|
||||
// first occurence of an dash with a dot.
|
||||
// For example 4.0.0-rc1 becomes 4.0.0.rc1, but
|
||||
// 4.0.0-SNAPSHOT-2014-05-01 becomes 4.0.0.SNAPSHOT-2014-05-01
|
||||
'Bundle-Version': version.replaceFirst("-", "."))
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue