Skip to content

feat: remove slf4j-api out of the p2 bundle to avoid the build failure in testng-eclipse#75

Merged
missedone merged 2 commits intomasterfrom
release/7.11
Mar 10, 2025
Merged

feat: remove slf4j-api out of the p2 bundle to avoid the build failure in testng-eclipse#75
missedone merged 2 commits intomasterfrom
release/7.11

Conversation

@missedone
Copy link
Copy Markdown
Contributor

@missedone missedone commented Mar 9, 2025

solve the build failure by exclude the slf4j-api out of the testng-p2 repo, as the slf4j-api osgi bundle is available in the eclipse installation package out of the box.

[ERROR] Failed to execute goal org.eclipse.tycho:tycho-compiler-plugin:4.0.12:validate-classpath (default-validate-classpath) on project org.testng.eclipse: Execution default-validate-classpath of goal org.eclipse.tycho:tycho-compiler-plugin:4.0.12:validate-classpath failed: org.osgi.framework.BundleException: Bundle org.testng.eclipse cannot be resolved:org.testng.eclipse [132]
[ERROR]   Unresolved requirement: Require-Bundle: org.testng; bundle-version="[6.9.12,8.0.0)"
[ERROR]     -> Bundle-SymbolicName: org.testng; bundle-version="7.11.0.r202502150124"
[ERROR]        org.testng [128]
[ERROR]          Unresolved requirement: Import-Package: org.slf4j
[ERROR]            -> Export-Package: org.slf4j; bundle-symbolic-name="slf4j.api"; bundle-version="2.0.16"; version="1.7.36"
[ERROR]               slf4j.api [3]
[ERROR]                 Unresolved requirement: Require-Capability: osgi.extender; filter:="(&(osgi.extender=osgi.serviceloader.processor)(version>=1.0.0)(!(version>=2.0.0)))"

…e in testng-eclipse

[ERROR] Failed to execute goal org.eclipse.tycho:tycho-compiler-plugin:4.0.12:validate-classpath (default-validate-classpath) on project org.testng.eclipse: Execution default-validate-classpath of goal org.eclipse.tycho:tycho-compiler-plugin:4.0.12:validate-classpath failed: org.osgi.framework.BundleException: Bundle org.testng.eclipse cannot be resolved:org.testng.eclipse [132]
[ERROR]   Unresolved requirement: Require-Bundle: org.testng; bundle-version="[6.9.12,8.0.0)"
[ERROR]     -> Bundle-SymbolicName: org.testng; bundle-version="7.11.0.r202502150124"
[ERROR]        org.testng [128]
[ERROR]          Unresolved requirement: Import-Package: org.slf4j
[ERROR]            -> Export-Package: org.slf4j; bundle-symbolic-name="slf4j.api"; bundle-version="2.0.16"; version="1.7.36"
[ERROR]               slf4j.api [3]
[ERROR]                 Unresolved requirement: Require-Capability: osgi.extender; filter:="(&(osgi.extender=osgi.serviceloader.processor)(version>=1.0.0)(!(version>=2.0.0)))"
@missedone missedone requested a review from a team March 9, 2025 18:10
# Conflicts:
#	build.gradle
@missedone missedone merged commit 45b3271 into master Mar 10, 2025
1 check passed
@missedone missedone deleted the release/7.11 branch March 10, 2025 01:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants