Groovy Documentation

org.standardout.gradle.plugin.platform.internal.util
[Groovy] Class VersionUtil

java.lang.Object
  org.standardout.gradle.plugin.platform.internal.util.VersionUtil

class VersionUtil

Method Summary
static java.lang.String addQualifier(java.lang.String version, BndConfig bndConfig, org.gradle.api.Project project)

Add a qualifier to the bundle version.

static org.osgi.framework.Version toOsgiVersion(java.lang.String version, groovy.lang.Closure onInvalid = null)

Convert a version string to a valid OSGi version.

 
Methods inherited from class java.lang.Object
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll()
 

Method Detail

addQualifier

static java.lang.String addQualifier(java.lang.String version, BndConfig bndConfig, org.gradle.api.Project project)
Add a qualifier to the bundle version.
Parameters:
version - the current bundle version
bndConfig - the bnd configuration, may be null
project - the Gradle project
Returns:
the modified or the given version, depending on the configuration


toOsgiVersion

static org.osgi.framework.Version toOsgiVersion(java.lang.String version, groovy.lang.Closure onInvalid = null)
Convert a version string to a valid OSGi version.
Parameters:
version - the version string
onInvalid - closure that is called with the OSGi version if the original version string yielded no valid OSGi version
Returns:
the OSGi version, the string representation may differ from the original version string


 

Groovy Documentation