Skip to content

Commit

Permalink
Update the Eclipse SDK TP's slf4j-api to 2.0.7 and remove 1.7 version
Browse files Browse the repository at this point in the history
Since version 2.0.7 the slf4j.api bundle exports the user-api package
'org.slf4j' in version 2.x.y and 1.7.36.
This allows to also use libraries, which are programmed against slf4j-1
and import the package 'org.slf4j' with an exclusive upper bound of 2
like '[1.7,2)', with the slf4-api version 2 in OSGi environments.

According to SLF4J the client/user facing API is compatible with
slf4j-1:
- https://www.slf4j.org/faq.html#changesInVersion200
- https://www.slf4j.org/faq.html#compatibility

Only the logging-backends/bindings/providers have match the requirements
of the specific slf4j-api version in use.
Since version 2 the slf4j-api uses the ServiceLoader mechanism and
requires a 'Service Loader Mediator' implementation in an OSGi runtime.
Therefore the Apache Aries SPI Fly Dynamic Weaving Bundle is added with
this change.

The corresponding SLF4J issue and change is
- https://jira.qos.ch/browse/SLF4J-579
- qos-ch/slf4j#331

Fixes eclipse-platform#588
Fixes eclipse-platform#682
  • Loading branch information
HannesWell committed Apr 7, 2023
1 parent 151c78e commit 69b4e8a
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions eclipse.platform.releng.prereqs.sdk/eclipse-sdk-prereqs.target
Expand Up @@ -35,7 +35,7 @@
<unit id="org.apache.lucene.core.source" version="9.4.2.v20221211-0752"/>
<unit id="org.apache.lucene.analysis-smartcn.source" version="9.4.2.v20221211-0752"/>
<unit id="org.apache.lucene.analysis-common.source" version="9.4.2.v20221211-0752"/>

<unit id="org.hamcrest.core" version="1.3.0.v20180420-1519"/>
<unit id="org.hamcrest.core.source" version="1.3.0.v20180420-1519"/>
<unit id="javax.xml" version="1.4.1.v20220503-2331"/>
Expand Down Expand Up @@ -195,16 +195,21 @@
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>1.7.36</version>
<version>2.0.7</version>
<type>jar</type>
</dependency>
<!-- slf4j-api requires 1 impl, providing a dummy one... -->
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-nop</artifactId>
<version>1.7.36</version>
<version>2.0.7</version>
<type>jar</type>
</dependency>
<dependency>
<groupId>org.apache.aries.spifly</groupId>
<artifactId>org.apache.aries.spifly.dynamic.bundle</artifactId>
<version>1.3.6</version>
</dependency>
<dependency>
<groupId>org.tukaani</groupId>
<artifactId>xz</artifactId>
Expand Down Expand Up @@ -237,11 +242,6 @@
<artifactId>commons-io</artifactId>
<version>2.11.0</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>2.0.6</version>
</dependency>
</dependencies>
</location>
<location includeDependencyDepth="none" includeDependencyScopes="compile" includeSource="true" label="Jetty and servlet API" missingManifest="error" type="Maven">
Expand Down

0 comments on commit 69b4e8a

Please sign in to comment.