]
Edson Tirelli reassigned DROOLS-2754:
-------------------------------------
Assignee: Mario Fusco (was: Edson Tirelli)
Provide public access to KJar snapshot version
----------------------------------------------
Key: DROOLS-2754
URL:
https://issues.jboss.org/browse/DROOLS-2754
Project: Drools
Issue Type: Enhancement
Affects Versions: 7.8.0.Final
Reporter: Nils Meyer
Assignee: Mario Fusco
When working with KJar SNAPSHOTS being retrieved from a Maven Repo it's often
interesting to know the exact version that is currently in use. Therefore having access to
the version in a pattern like 1.0.0-20180718.102926-4 would be interesting.
Currently org.kie.api.builder.ReleaseId returned by
org.kie.api.runtime.KieContainer.getReleaseId() does provide a method getVersion that
probably is intended to return a version in the format 1.0.0-SNAPSHOT. The underlying
implementation org.drools.compiler.kproject.ReleaseIdImpl provides a method
getSnapshotVersion that could be used to retrieve the exact version (if it was filled
correctly, see DROOLS-2753).
Solution ideas
* Enhance the ReleaseId Interface with the getSnapshotVersion method (would need
adjustments in org.kie.api.management.GAV)
* Change the toString method of ReleaseIdImpl to build the 1.0.0-20180718.102926-4
version type for SNAPSHOT versions
* Live with the current state an do ugly casts from the interface to the implementation
to retrieve the snapshot version