PR and discussion here: https://github.com/google/gson/pull/916

On 30 August 2016 at 09:26, Ignasi Barrera <ignasi.barr...@gmail.com> wrote:
> @demobox, please correct me if I'm wrong, as I'm not an OSGi expert at all.
>
> Hmmm It looks like in Gson 2.6 the OSGi bundle configuration was
> removed by accident [1] and the exports were restored in Gson 2.6.2
> [2]. However, if you look at the comments of the pull request, you'll
> see that the "com.google.gson.internal" is now excluded from the
> exports, breaking backwards compatibility, and breaking jclouds-karaf.
>
> The build after the gson upgrade complains about that package not
> being available for the jclouds-core bundle.
>
> A quick look in GitHub shows we're using it in just a few places [3],
> but I don't really know if we can get rid of those. Perhaps after
> upgrading to 2.7 there are alternative ways to achieve what the code
> that uses internal packages is doing now (but I don't think so).
>
>
> We have several options:
>
> * Downgrade to Gson 2.5, which is the last version that exports the
> gson internal packages.
> * Try to add the exports back (I'm preparing a PR and see where the
> discussion takes us).
> * Others?
>
> I.
>
>
> [1] https://github.com/google/gson/issues/796
> [2] https://github.com/google/gson/pull/797
> [3] 
> https://github.com/jclouds/jclouds/search?utf8=%E2%9C%93&q=%22com.google.gson.internal%22&type=Code
>
> On 30 August 2016 at 08:47, Andrew Gaul <g...@apache.org> wrote:
>> I cannot resolve this issue; reverting the suspect gson commit yields
>> similar but different errors on my development machine:
>>
>> ERROR: Bundle org.apache.sshd.core [26] Error starting 
>> mvn:org.apache.sshd/sshd-core/0.12.0 (org.osgi.framework.BundleException: 
>> Unresolved constraint in bundle org.apache.sshd.core [26]: Unable to resolve 
>> 26.0: missing requirement [26.0] osgi.ee; (&(osgi.ee=JavaSE)(version=1.5)))
>> org.osgi.framework.BundleException: Unresolved constraint in bundle 
>> org.apache.sshd.core [26]: Unable to resolve 26.0: missing requirement 
>> [26.0] osgi.ee; (&(osgi.ee=JavaSE)(version=1.5))
>>
>> Can anyone help me investigate this?
>>
>> On Tue, Aug 30, 2016 at 12:44:05AM -0400, jenkins-no-re...@cloudbees.com 
>> wrote:
>>> See 
>>> <https://jclouds.ci.cloudbees.com/job/jclouds-karaf/org.apache.jclouds.karaf$itests/1904/>
>>>
>>
>> --
>> Andrew Gaul
>> http://gaul.org/

Reply via email to