[jboss-jira] [JBoss JIRA] (DROOLS-2754) Provide public access to KJar snapshot version
Nils Meyer (JIRA)
issues at jboss.org
Wed Jul 18 10:58:00 EDT 2018
Nils Meyer created DROOLS-2754:
----------------------------------
Summary: 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: Edson Tirelli
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
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
More information about the jboss-jira
mailing list