Skip to content

Commit

Permalink
Remove UI dependencies from org.eclipse.birt.osgi.runtime
Browse files Browse the repository at this point in the history
- Remove org.eclipse.birt.report.viewer and
org.eclipse.birt.data.oda.mongodb.ui from org.eclipse.birt.osgi.runtime
 feature.
- Simplify test dependency configuration.
- The org.junit dependencies aren't optional and non-test bundles should
not have such a dependency, even an optional one.
  • Loading branch information
merks committed Aug 4, 2024
1 parent 1a304ce commit b1c417f
Show file tree
Hide file tree
Showing 21 changed files with 15 additions and 130 deletions.
16 changes: 0 additions & 16 deletions chart/org.eclipse.birt.chart.tests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,22 +35,6 @@
<argLine>-Duser.country=us -Duser.language=en</argLine>
</configuration>
</plugin>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>target-platform-configuration</artifactId>
<version>${tycho.version}</version>
<configuration>
<dependency-resolution>
<extraRequirements>
<requirement>
<type>eclipse-feature</type>
<id>org.eclipse.birt</id>
<versionRange>0.0.0</versionRange>
</requirement>
</extraRequirements>
</dependency-resolution>
</configuration>
</plugin>
</plugins>
</build>
</project>
2 changes: 1 addition & 1 deletion core/org.eclipse.birt.core.testhelper/META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Bundle-SymbolicName: org.eclipse.birt.core.testhelper
Bundle-Version: 4.17.0.qualifier
Fragment-Host: org.eclipse.birt.core;bundle-version="2.2.0"
Bundle-RequiredExecutionEnvironment: JavaSE-11
Require-Bundle: org.junit;bundle-version="4.7.0";resolution:=optional;visibility:=reexport
Require-Bundle: org.junit
Bundle-ClassPath: .
Export-Package: org.eclipse.birt.core.archive.compound,
org.eclipse.birt.core.archive.cache
Expand Down
4 changes: 3 additions & 1 deletion core/org.eclipse.birt.core.tests/META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ Bundle-Activator: org.eclipse.birt.core.Activator
Import-Package: org.osgi.framework;version="1.3.0"
Bundle-ActivationPolicy: lazy
Require-Bundle: org.eclipse.birt.core;bundle-version="4.13.0",
org.junit;bundle-version="4.13.0";resolution:=optional;visibility:=reexport
org.junit;bundle-version="4.13.0";resolution:=optional;visibility:=reexport,
org.eclipse.birt.core.script.function;bundle-version="4.17.0",
org.eclipse.birt.report.engine.script.javascript;bundle-version="4.17.0"
Bundle-RequiredExecutionEnvironment: JavaSE-11
Bundle-Vendor: %Bundle-Vendor
Automatic-Module-Name: org.eclipse.birt.core.tests
Expand Down
10 changes: 0 additions & 10 deletions core/org.eclipse.birt.core.tests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,6 @@
<id>org.eclipse.birt.core.testhelper</id>
<versionRange>0.0.0</versionRange>
</requirement>
<requirement>
<type>eclipse-plugin</type>
<id>org.eclipse.birt.core.script.function</id>
<versionRange>0.0.0</versionRange>
</requirement>
<requirement>
<type>eclipse-plugin</type>
<id>org.eclipse.birt.report.engine.script.javascript</id>
<versionRange>0.0.0</versionRange>
</requirement>
</extraRequirements>
</dependency-resolution>
</configuration>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ Bundle-Activator: org.eclipse.birt.report.data.adapter.Activator
Require-Bundle: org.eclipse.birt.core;bundle-version="[2.1.0,5.0.0)",
org.eclipse.birt.data;bundle-version="[2.1.0,5.0.0)",
org.eclipse.birt.report.model;bundle-version="[2.1.0,5.0.0)",
org.eclipse.birt.data.aggregation;bundle-version="[1.0.0,5.0.0)",
org.junit;bundle-version="[4.8.1,5.0.0)";resolution:=optional
org.eclipse.birt.data.aggregation;bundle-version="[1.0.0,5.0.0)"
Bundle-ActivationPolicy: lazy
Eclipse-ExtensibleAPI: true
Export-Package: org.eclipse.birt.report.data.adapter,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ Bundle-ClassPath: .
Bundle-Vendor: %Bundle-Vendor
Bundle-Localization: plugin
Require-Bundle: org.eclipse.datatools.connectivity.oda;bundle-version="[3.0.1,4.0.0)",
org.junit;bundle-version="3.8.1";resolution:=optional,
org.eclipse.datatools.enablement.oda.xml;bundle-version="[1.0.0,2.0.0)"
Bundle-ActivationPolicy: lazy
Export-Package: org.eclipse.birt.report.data.oda.xml; x-internal:=false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Bundle-SymbolicName: org.eclipse.birt.report.engine.dataextraction.csv.tests
Bundle-Version: 4.17.0.qualifier
Fragment-Host: org.eclipse.birt.report.engine.dataextraction.csv
Bundle-RequiredExecutionEnvironment: JavaSE-11
Require-Bundle: org.junit;bundle-version="4.13.0";resolution:=optional;visibility:=reexport
Require-Bundle: org.junit
Export-Package: org.eclipse.birt.report.engine.dataextraction.csv,
org.eclipse.birt.report.engine.dataextraction.csv.mock
Import-Package: org.eclipse.birt.data.engine.api
Expand Down
20 changes: 0 additions & 20 deletions engine/org.eclipse.birt.report.engine.emitter.pdf.tests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,24 +23,4 @@
</parent>
<artifactId>org.eclipse.birt.report.engine.emitter.pdf.tests</artifactId>
<packaging>eclipse-test-plugin</packaging>
<!-- <build>
<plugins>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>target-platform-configuration</artifactId>
<version>${tycho.version}</version>
<configuration>
<dependency-resolution>
<extraRequirements>
<requirement>
<type>eclipse-feature</type>
<id>org.eclipse.birt.osgi.runtime</id>
<versionRange>0.0.0</versionRange>
</requirement>
</extraRequirements>
</dependency-resolution>
</configuration>
</plugin>
</plugins>
</build> -->
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Import-Package: org.osgi.framework;version="1.3.0"
Require-Bundle: org.eclipse.birt.core;bundle-version="4.13.0",
org.eclipse.birt.report.engine;bundle-version="4.13.0",
org.eclipse.birt.report.engine.emitter.postscript;bundle-version="4.13.0",
org.junit;bundle-version="4.7.0";resolution:=optional;visibility:=reexport
org.junit
Bundle-Vendor: %Bundle-Vendor
Bundle-ClassPath: .
Bundle-RequiredExecutionEnvironment: JavaSE-11
Expand Down
20 changes: 0 additions & 20 deletions engine/uk.co.spudsoft.birt.emitters.excel.tests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,24 +23,4 @@
</parent>
<artifactId>uk.co.spudsoft.birt.emitters.excel.tests</artifactId>
<packaging>eclipse-test-plugin</packaging>
<!-- <build>
<plugins>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>target-platform-configuration</artifactId>
<version>${tycho.version}</version>
<configuration>
<dependency-resolution>
<extraRequirements>
<requirement>
<type>eclipse-feature</type>
<id>org.eclipse.birt.osgi.runtime</id>
<versionRange>0.0.0</versionRange>
</requirement>
</extraRequirements>
</dependency-resolution>
</configuration>
</plugin>
</plugins>
</build> -->
</project>
8 changes: 0 additions & 8 deletions features/org.eclipse.birt.osgi.runtime/feature.xml
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,6 @@
id="org.eclipse.birt.resources"
version="0.0.0"/>

<plugin
id="org.eclipse.birt.report.viewer"
version="0.0.0"/>

<plugin
id="org.eclipse.birt.report.engine.dataextraction"
version="0.0.0"/>
Expand Down Expand Up @@ -122,10 +118,6 @@
id="org.eclipse.birt.data.oda.mongodb"
version="0.0.0"/>

<plugin
id="org.eclipse.birt.data.oda.mongodb.ui"
version="0.0.0"/>

<plugin
id="org.eclipse.birt.report.engine.emitter.config"
version="0.0.0"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Require-Bundle: org.eclipse.birt.core;bundle-version="4.13.0",
org.eclipse.birt.report.model.adapter.oda;bundle-version="4.13.0",
org.eclipse.birt.report.model;bundle-version="4.13.0",
org.eclipse.datatools.connectivity.oda.design;bundle-version="3.5.101",
org.junit;bundle-version="4.8.1";resolution:=optional;visibility:=reexport
org.junit
Bundle-Vendor: %Bundle-Vendor
Bundle-ClassPath: .
Bundle-RequiredExecutionEnvironment: JavaSE-11
Expand Down
5 changes: 0 additions & 5 deletions model/org.eclipse.birt.report.model.tests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,6 @@
<id>org.eclipse.birt.report.modelextension.tests</id>
<versionRange>0.0.0</versionRange>
</requirement>
<requirement>
<type>eclipse-feature</type>
<id>org.eclipse.birt.osgi.runtime</id>
<versionRange>0.0.0</versionRange>
</requirement>
</extraRequirements>
</dependency-resolution>
</configuration>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Bundle-ClassPath: .
Bundle-Version: 4.17.0.qualifier
Bundle-Activator: org.eclipse.birt.report.tests.chart.plugin.ChartPlugin
Bundle-ActivationPolicy: lazy
Require-Bundle: org.junit;resolution:=optional,
Require-Bundle: org.junit,
org.eclipse.birt.chart.device.extension,
org.eclipse.birt.chart.device.svg,
org.eclipse.birt.chart.engine,
Expand Down
16 changes: 0 additions & 16 deletions testsuites/org.eclipse.birt.report.tests.chart/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,22 +28,6 @@
</properties>
<build>
<plugins>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>target-platform-configuration</artifactId>
<version>${tycho.version}</version>
<configuration>
<dependency-resolution>
<extraRequirements>
<requirement>
<type>eclipse-feature</type>
<id>org.eclipse.birt.osgi.runtime</id>
<versionRange>0.0.0</versionRange>
</requirement>
</extraRequirements>
</dependency-resolution>
</configuration>
</plugin>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-surefire-plugin</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Bundle-ClassPath: .
Bundle-Version: 4.17.0.qualifier
Bundle-Activator: org.eclipse.birt.report.tests.engine.plugin.EnginePlugin
Bundle-ActivationPolicy: lazy
Require-Bundle: org.junit;bundle-version="4.13.0";resolution:=optional,
Require-Bundle: org.junit,
org.eclipse.birt.core;bundle-version="4.13.0",
org.eclipse.birt.tests.core;bundle-version="4.13.0",
org.eclipse.birt.chart.engine;bundle-version="4.13.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Bundle-Version: 4.17.0.qualifier
Bundle-Activator: org.eclipse.birt.report.tests.model.plugin.ModelPlugin
Bundle-ClassPath: .
Bundle-ActivationPolicy: lazy
Require-Bundle: org.junit;bundle-version="4.13.0";resolution:=optional,
Require-Bundle: org.junit,
org.eclipse.birt.report.model;bundle-version="4.13.0",
org.eclipse.birt.core;bundle-version="4.13.0",
org.eclipse.birt.tests.core;bundle-version="4.13.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Bundle-SymbolicName: org.eclipse.birt.tests.data;singleton:=true
Bundle-ClassPath: .
Bundle-Version: 4.17.0.qualifier
Bundle-Activator: org.eclipse.birt.tests.data.engine.plugin.DataPlugin
Require-Bundle: org.junit;bundle-version="4.13.0";resolution:=optional,
Require-Bundle: org.junit,
org.eclipse.birt.core;bundle-version="4.13.0",
org.eclipse.datatools.connectivity.oda;bundle-version="3.6.101",
org.eclipse.datatools.connectivity.oda.flatfile;bundle-version="3.3.101",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Bundle-Version: 4.17.0.qualifier
Fragment-Host: org.eclipse.birt.report.viewer;bundle-version="2.3.1"
Bundle-RequiredExecutionEnvironment: JavaSE-11
Export-Package: org.eclipse.birt.report.viewer
Require-Bundle: org.junit;bundle-version="3.8.1";resolution:=optional;visibility:=reexport,
Require-Bundle: org.junit,
javax.servlet-api;bundle-version="3.1.0"
Bundle-Vendor: %Bundle-Vendor
Automatic-Module-Name: org.eclipse.birt.report.viewer.tests
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ Bundle-Name: %Bundle-Name
Bundle-SymbolicName: org.eclipse.birt.report.item.crosstab.core.tests;singleton:=true
Bundle-Version: 4.17.0.qualifier
Fragment-Host: org.eclipse.birt.report.item.crosstab.core;bundle-version="1.0.0"
Require-Bundle: org.junit;bundle-version="4.13.0"
Require-Bundle: org.junit;bundle-version="4.13.0",
org.eclipse.birt.report.modelextension.tests;bundle-version="4.17.0"
Bundle-Vendor: %Bundle-Vendor
Bundle-RequiredExecutionEnvironment: JavaSE-11
Automatic-Module-Name: org.eclipse.birt.report.item.crosstab.core.tests
Expand Down
21 changes: 0 additions & 21 deletions xtab/org.eclipse.birt.report.item.crosstab.core.tests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,27 +25,6 @@
<packaging>eclipse-test-plugin</packaging>
<build>
<plugins>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>target-platform-configuration</artifactId>
<version>${tycho.version}</version>
<configuration>
<dependency-resolution>
<extraRequirements>
<requirement>
<type>eclipse-feature</type>
<id>org.eclipse.birt.osgi.runtime</id>
<versionRange>0.0.0</versionRange>
</requirement>
<requirement>
<type>eclipse-plugin</type>
<id>org.eclipse.birt.report.modelextension.tests</id>
<versionRange>0.0.0</versionRange>
</requirement>
</extraRequirements>
</dependency-resolution>
</configuration>
</plugin>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-surefire-plugin</artifactId>
Expand Down

0 comments on commit b1c417f

Please sign in to comment.