Skip to content

Support for Eclipse 2022-06 #190

Closed

Description

@jmini

Some notes about supporting Eclipse release 2022-06

Addition of the new update site

Currently if you try to use 2022-06 (a.k.a 4.24.0) you get the expected error:

* What went wrong:
A problem occurred evaluating root project 'jdt-gradle-example'.
> 4.24.0 is not supported.  We only support 3.5.0 through 4.23.0

We need the same work as in: #183

The URL of the update site is:

https://download.eclipse.org/eclipse/updates/4.24/R-4.24-202206070700/

Mapping rule for "org.osgi.service.prefs"

Introduced with eclipse-platform/eclipse.platform.releng#48 there is a new mapping:

<mavenMappings namePattern="(org.osgi)(.*)" groupId="$1" artifactId="$1$2"/>

See line 70 of SDK4Mvn.aggr

Similar to the work done in #157, we need to make sure that org.osgi.service.prefs is mapped to the correct coordinates in Maven Central:

org.osgi:org.osgi.service.prefs

Buggy org.eclipse.equinox.preferences pom

See eclipse-equinox/equinox.bundles#54 for more details.

The pom for org.eclipse.platform:org.eclipse.equinox.preferences:3.10.0 (see org.eclipse.equinox.preferences-3.10.0.pom on maven central) is broken.

It lists a dependency that does not exists (wrong groupId):

<dependency>
    <groupId>org.osgi.service</groupId>
    <artifactId>org.osgi.service.prefs</artifactId>
    <version>[1.1.0,1.2.0)</version>
</dependency>

The "solution" was to publish a new version 3.10.1 where the dependency is fixed (see org.eclipse.equinox.preferences-3.10.1.pom on maven central):

<dependency>
    <groupId>org.osgi</groupId>
    <artifactId>org.osgi.service.prefs</artifactId>
    <version>[1.1.0,1.2.0)</version>
</dependency>

I am not sure about the impact for something like:

apply plugin: 'com.diffplug.eclipse.mavencentral'

eclipseMavenCentral {
    release '4.24.0', {
        implementation 'org.eclipse.equinox.preferences'
    }
}

The P2 Update site will tell to map to:
org.eclipse.platform:org.eclipse.equinox.preferences:3.10.0

But since this is broken, should is map to:
org.eclipse.platform:org.eclipse.equinox.preferences:3.10.1

This would means hard-coding this information somewhere…

Activity

  1. changed the title [-]Mapping rule for "org.osgi.service.prefs"[/-] [+]Support for Eclipse 2022-06[/+] on Jun 16, 2022
  2. jmini commented on Jun 16, 2022

    @jmini
    ContributorAuthor

    Those are the org.osgi.* bundles in the https://download.eclipse.org/eclipse/updates/4.24/ update site:

    org.osgi.service.coordinator             [1.0.2.201505202024]
    org.osgi.service.log.stream              [1.0.0.202109301733]
    org.osgi.service.prefs                   [1.1.2.202109301733]
    org.osgi.util.function                   [1.2.0.202109301733]
    org.osgi.util.measurement                [1.0.2.201802012109]
    org.osgi.util.position                   [1.0.1.201505202026]
    org.osgi.util.promise                    [1.2.0.202109301733]
    org.osgi.util.pushstream                 [1.0.2.202109301733]
    org.osgi.util.xml                        [1.0.2.202109301733]
    

    So I think it makes sense to add the mapping described in point 2.

  3. jmini commented on Jun 16, 2022

    @jmini
    ContributorAuthor

    I started to work on this on my branch issue-190

    I am wondering what the good solution is for the mapping of:

    org.eclipse.equinox.preferences          [3.10.0.v20220503-1634]
    

    Hard-code somewhere that it should be converted to 3.10.1?

    @nedtwigg any opinion?

  4. nedtwigg commented on Jun 16, 2022

    @nedtwigg
    Member

    I'm okay with hardcoding.

  5. jmini commented on Jun 16, 2022

    @jmini
    ContributorAuthor

    There is an other case that needs to be hard coded:
    eclipse-platform/eclipse.platform.releng#52

  6. nedtwigg commented on Jun 16, 2022

    @nedtwigg
    Member

    If you open a PR with whatever you have, I'll finish it and publish it today. Thanks for getting it started and collating all the hiccups!

  7. jmini commented on Jun 16, 2022

    @jmini
    ContributorAuthor

    PR is open: #191.

    Sorry for the delay, it stays a side project for me

  8. nedtwigg commented on Jun 16, 2022

    @nedtwigg
    Member

    No apologies for the delay, thanks very much for the PR! Shipped in 3.37.0.

  9. added a commit that references this issue on Jun 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions