Skip to content

Commit c22aada

Browse files
committed
1st draft bndtools on Eclipse-2024-12 4.34
Still some startup issues m2e, but bndtools starts Signed-off-by: Christoph Rueger <chrisrueger@gmail.com>
1 parent b4e09a2 commit c22aada

File tree

10 files changed

+41
-72
lines changed

10 files changed

+41
-72
lines changed

biz.aQute.bnd/bnd.bnd

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -30,18 +30,18 @@
3030
@${repo;biz.aQute.bnd.exporters;latest}!/!META-INF/*, \
3131
@${repo;biz.aQute.bnd.reporter;latest}!/!META-INF/*, \
3232
@${repo;biz.aQute.launchpad;latest}!/!META-INF/*, \
33-
@${repo;slf4j.api;latest}!/!META-INF/*, \
34-
@${repo;slf4j.simple;latest}!/!META-INF/*, \
33+
@${repo;slf4j.api;1.7.25}!/!META-INF/*, \
34+
@${repo;slf4j.simple;1.7.25}!/!META-INF/*, \
3535
@${repo;jline}!/!META-INF/*, \
3636
@${repo;jline}!/META-INF/native/*, \
3737

3838

3939
Import-Package: \
40-
org.slf4j,\
41-
!com.google.appengine.*,\
42-
!com.google.apphosting.*,\
43-
!com.cloudius.util.*,\
44-
*
40+
org.slf4j;version='[1.0.0,2)',\
41+
!com.google.appengine.*,\
42+
!com.google.apphosting.*,\
43+
!com.cloudius.util.*,\
44+
*
4545
# About the aQute.library.bndrepo dep. Needed to add them here
4646
# by hand even though they are in bndlib. However, they are added
4747
# and we can unfortunately not see those packages ...
@@ -90,8 +90,8 @@ Bundle-Description: This command line utility is the Swiss army knife of OSGi. I
9090
biz.aQute.bnd.annotation;version=project,\
9191
biz.aQute.remote.api;version=latest,\
9292
org.yaml.snakeyaml;version=latest,\
93-
slf4j.api;version=latest,\
94-
slf4j.simple;version=latest,\
93+
slf4j.api;version='1.7.25',\
94+
slf4j.simple;version='1.7.25',\
9595
jline
9696

9797
-testpath: \

bndtools.builder/bnd.bnd

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@
3636
org.eclipse.equinox.common,\
3737
org.eclipse.equinox.registry,\
3838
org.eclipse.equinox.preferences,\
39-
slf4j.api
39+
slf4j.api,\
40+
org.eclipse.jdt.core.compiler.batch
4041

4142
-testpath: \
4243
${junit},\

bndtools.core.services/bnd.bnd

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,13 @@ Import-Package: \
3535
org.eclipse.text,\
3636
org.eclipse.swt,\
3737
org.eclipse.swt.cocoa.macosx.x86_64,\
38-
org.eclipse.jface.text,\
3938
org.osgi.service.component.annotations;version='1.3.0',\
4039
slf4j.api,\
4140
org.eclipse.jface,\
4241
org.eclipse.core.commands,\
4342
org.eclipse.ui.ide,\
4443
org.eclipse.ui.workbench,\
4544
biz.aQute.bnd.pde,\
46-
osgi.annotation
45+
osgi.annotation,\
46+
org.eclipse.jdt.core.manipulation,\
47+
org.eclipse.jdt.core.compiler.batch

bndtools.core.test/bnd.bnd

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
bndtools.core.services;version=snapshot,\
5151
assertj-core,\
5252
net.bytebuddy.byte-buddy,\
53-
javax.inject,\
53+
jakarta.inject.jakarta.inject-api;version=latest,\
5454
org.apiguardian:apiguardian-api,\
5555
org.opentest4j,\
5656
org.apache.servicemix.bundles.junit,\
@@ -85,7 +85,8 @@
8585
org.osgi.service.event,\
8686
org.osgi.service.repository;version=latest,\
8787
osgi.annotation,\
88-
org.eclipse.jdt.core.manipulation
88+
org.eclipse.jdt.core.manipulation,\
89+
org.eclipse.jdt.core.compiler.batch
8990

9091
# Don't run testOSGi in parallel with other tasks claiming launchpad
9192
-noparallel: launchpad;task="testOSGi"

bndtools.core.test/src/bndtools/core/test/launch/NullContextPresentationEngine.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
package bndtools.core.test.launch;
22

3-
import javax.inject.Inject;
4-
53
import org.eclipse.e4.core.contexts.IEclipseContext;
64
import org.eclipse.e4.core.services.events.IEventBroker;
75
import org.eclipse.e4.ui.internal.workbench.swt.IEventLoopAdvisor;
@@ -14,6 +12,8 @@
1412
import org.eclipse.equinox.app.IApplicationContext;
1513
import org.eclipse.swt.widgets.Display;
1614

15+
import jakarta.inject.Inject;
16+
1717
/**
1818
* IPresentationEngine implementation that doesn't render anything or store any
1919
* state. All it does is spin the event loop. This engine is useful for testing

bndtools.core/bnd.bnd

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,8 @@ Export-Package: org.osgi.service.metatype.annotations
118118
org.eclipse.jdt.annotation,\
119119
org.apache.felix.gogo.runtime;version='1.1.6',\
120120
org.eclipse.jgit,\
121-
org.eclipse.egit.core
121+
org.eclipse.egit.core,\
122+
org.eclipse.jdt.core.compiler.batch;version='3.40'
122123

123124
-testpath: \
124125
slf4j.api,\

bndtools.core/bndtools.shared.bndrun

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@
3838
bnd.identity;id='bndtools.pde',\
3939
bnd.identity;id='bndtools.release',\
4040
bnd.identity;id='com.google.guava',\
41-
bnd.identity;id='javax.annotation',\
4241
bnd.identity;id='org.apache.ant',\
4342
bnd.identity;id='org.apache.felix.gogo.command',\
4443
bnd.identity;id='org.apache.felix.gogo.runtime',\
@@ -78,6 +77,7 @@
7877
bnd.identity;id='org.eclipse.m2e.discovery',\
7978
bnd.identity;id='org.eclipse.m2e.editor',\
8079
bnd.identity;id='org.eclipse.m2e.jdt.ui',\
80+
bnd.identity;id='org.eclipse.m2e.maven.runtime',\
8181
bnd.identity;id='org.eclipse.m2e.profiles.core',\
8282
bnd.identity;id='org.eclipse.m2e.profiles.ui',\
8383
bnd.identity;id='org.eclipse.m2e.refactoring',\
@@ -97,23 +97,25 @@
9797
bnd.identity;id='org.eclipse.ui.console',\
9898
bnd.identity;id='org.eclipse.ui.ide',\
9999
bnd.identity;id='org.eclipse.ui.ide.application',\
100-
bnd.identity;id='junit-platform-commons';version='${range;[===,==+);${junit.platform.eclipse.version}}',\
101-
bnd.identity;id='junit-platform-engine';version='${range;[===,==+);${junit.platform.eclipse.version}}',\
102-
bnd.identity;id='junit-platform-launcher';version='${range;[===,==+);${junit.platform.eclipse.version}}',\
100+
bnd.identity;id=junit-platform-commons;version='${range;[===,==+);${junit.platform.eclipse.version}}',\
101+
bnd.identity;id=junit-platform-engine;version='${range;[===,==+);${junit.platform.eclipse.version}}',\
102+
bnd.identity;id=junit-platform-launcher;version='${range;[===,==+);${junit.platform.eclipse.version}}',\
103103
bnd.identity;id='org.eclipse.ui.intro',\
104104
bnd.identity;id='org.eclipse.ui.intro.quicklinks',\
105105
bnd.identity;id='org.eclipse.ui.intro.quicklinks.source',\
106106
bnd.identity;id='org.eclipse.ui.intro.source',\
107107
bnd.identity;id='org.eclipse.ui.intro.universal',\
108-
bnd.identity;id='org.eclipse.ui.intro.universal.source'
109-
108+
bnd.identity;id='org.eclipse.ui.intro.universal.source',\
109+
bnd.identity;id='jakarta.inject.jakarta.inject-api'
110+
110111
-runblacklist: \
111112
bnd.identity;id='biz.aQute.bnd.annotation',\
112113
bnd.identity;id='biz.aQute.bnd.transform',\
113114
bnd.identity;id='biz.aQute.junit',\
114115
bnd.identity;id='org.apache.felix.scr';version='[0,2.1.16)',\
115116
bnd.identity;id='osgi.*',\
116-
bnd.identity;id='org.osgi.*.annotations'
117+
bnd.identity;id='org.osgi.*.annotations',\
118+
bnd.identity;id='biz.aQute.bndlib';version='[7.0.0,7.0.1)'
117119

118120

119121
-runee: JavaSE-17

cnf/ext/junit.bnd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ junit3.version=3.8.3
88
junit4.version=4.13.2
99
junit4.eclipse.version=4.13.2
1010
junit.jupiter.eclipse.version=5.9.0
11-
junit.platform.eclipse.version=1.9.0
11+
junit.platform.eclipse.version=1.9.2
1212
junit.jupiter.version=5.9.2
1313
junit.platform.version=1.9.2
1414
assertj.version=3.24.2

cnf/ext/repositories.bnd

Lines changed: 4 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -27,53 +27,10 @@ ossrh: https://oss.sonatype.org/content/repositories/snapshots
2727
snapshotUrl="https://bndtools.jfrog.io/bndtools/libs-snapshot-local/";\
2828
noupdateOnRelease=true
2929

30-
# Eclipse Platform 4.35 / 2025-03 Release repository
31-
#eclipse.platform.version = 4.35
32-
#eclipse.platform.reltag = R-4.35-202502280140
33-
34-
# Eclipse Platform 4.25 / 2022-09 Release repository
35-
eclipse.platform.version = 4.25
36-
eclipse.platform.reltag = R-4.25-202208311800/
37-
38-
eclipse.platform.baseurl = http://download.eclipse.org/eclipse/updates
39-
eclipse.platform.name = "Eclipse-${eclipse.platform.version}"
40-
eclipse.platform.url = "${eclipse.platform.baseurl}/${eclipse.platform.version}/${eclipse.platform.reltag}"
41-
42-
-plugin.1.Eclipse: \
43-
aQute.bnd.repository.p2.provider.P2Repository; \
44-
tags = 'resolve'; \
45-
name = ${eclipse.platform.name}; \
46-
url = ${eclipse.platform.url}
47-
48-
#-plugin.1.EclipseFullRelease:\
49-
# aQute.bnd.repository.p2.provider.P2Repository; \
50-
# url = https://download.eclipse.org/releases/2022-09/; \
51-
# name = "Eclipse-4_25-2022-09 FullRelease"
52-
53-
-plugin.1.Eclipse_m2e: \
54-
aQute.bnd.repository.p2.provider.P2Repository; \
55-
tags = 'resolve'; \
56-
name = Eclipse_m2e; \
57-
url = https://archive.eclipse.org/technology/m2e/releases/2.0.2/
58-
59-
-plugin.1.Eclipse_jgit: \
60-
aQute.bnd.repository.p2.provider.P2Repository; \
61-
tags = 'resolve'; \
62-
name = Eclipse_jgit; \
63-
url = https://archive.eclipse.org/egit/updates-6.3/
64-
65-
-plugin.1.Eclipse_emf: \
66-
aQute.bnd.repository.p2.provider.P2Repository; \
67-
tags = 'resolve'; \
68-
name = Eclipse_emf; \
69-
url = https://download.eclipse.org/modeling/emf/emf/builds/release/2.26
70-
71-
-plugin.1.Eclipse_wst: \
72-
aQute.bnd.repository.p2.provider.P2Repository; \
73-
tags = 'resolve'; \
74-
name = Eclipse_wst; \
75-
url = https://download.eclipse.org/webtools/repository/2022-09/
76-
30+
-plugin.1.Eclipse:\
31+
aQute.bnd.repository.p2.provider.P2Repository; \
32+
url = https://download.eclipse.org/releases/2024-12/; \
33+
name = "Eclipse 4.34 (2024-12)"
7734

7835
-plugin.9.Baseline:\
7936
aQute.bnd.repository.maven.provider.MavenBndRepository;\

org.bndtools.templating.gitrepo/src/org/bndtools/templating/jgit/EclipseGitProgressTransformer.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,4 +103,10 @@ public boolean isCancelled() {
103103
return task.isCanceled();
104104
return root.isCanceled();
105105
}
106+
107+
@Override
108+
public void showDuration(boolean enabled) {
109+
// not implemented
110+
111+
}
106112
}

0 commit comments

Comments
 (0)