Skip to content

Commit d3fd99a

Browse files
vwfoxMarkus Hochstein
authored and
Markus Hochstein
committed
change min java version to 17
Signed-off-by: Markus Hochstein <[email protected]>
1 parent d15c08a commit d3fd99a

File tree

17 files changed

+37
-24
lines changed

17 files changed

+37
-24
lines changed

archetypes/application/src/main/resources/archetype-resources/__artifactId__.bndrun

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ index: target/index.xml;name="${artifactId}"
55
-runrequires: osgi.identity;filter:='(osgi.identity=${impl-groupId}.${impl-artifactId})'
66
-runfw: org.eclipse.osgi
77
#if ($target-java-version == '8')
8-
-runee: JavaSE-1.8
8+
-runee: JavaSE-17
99
#elseif ($target-java-version == '9')
1010
-runee: JavaSE-9
1111
#elseif ($target-java-version == '10')

archetypes/application/src/test/resources/projects/check-8/reference/standalone-app-module.bndrun

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ index: target/index.xml;name="standalone-app-module"
44

55
-runrequires: osgi.identity;filter:='(osgi.identity=archetype.it.impl-bundle)'
66
-runfw: org.eclipse.osgi
7-
-runee: JavaSE-1.8
7+
-runee: JavaSE-17
88

99
-resolve.effective: active

archetypes/bundle-test/src/main/resources/archetype-resources/integration-test.bndrun

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Import-Package: org.osgi.framework.*;version="[1.8,2)",*
1313
-runsystempackages: sun.reflect
1414

1515
-runfw: org.eclipse.osgi
16-
-runee: JavaSE-1.8
16+
-runee: JavaSE-17
1717

1818
-runrequires: \
1919
osgi.identity;filter:='(osgi.identity=${groupId}.${artifactId})'

archetypes/bundle-test/src/test/resources/projects/check/reference/integration-test.bndrun

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Import-Package: org.osgi.framework.*;version="[1.8,2)",*
1313
-runsystempackages: sun.reflect
1414

1515
-runfw: org.eclipse.osgi
16-
-runee: JavaSE-1.8
16+
-runee: JavaSE-17
1717

1818
-runrequires: \
1919
osgi.identity;filter:='(osgi.identity=archetype.it.bundle-testing)'

archetypes/project-bare/src/main/resources/archetype-resources/pom.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
<description>The ${artifactId} application - built using OSGi enRoute R7</description>
1212

1313
<properties>
14-
<maven.compiler.source>1.8</maven.compiler.source>
15-
<maven.compiler.target>1.8</maven.compiler.target>
14+
<maven.compiler.source>17</maven.compiler.source>
15+
<maven.compiler.target>17</maven.compiler.target>
1616
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
1717
<bnd.version>6.1.0</bnd.version>
1818
</properties>

archetypes/project-bare/src/test/resources/projects/basic/reference/pom.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
<description>The basic application - built using OSGi enRoute R7</description>
1212

1313
<properties>
14-
<maven.compiler.source>1.8</maven.compiler.source>
15-
<maven.compiler.target>1.8</maven.compiler.target>
14+
<maven.compiler.source>17</maven.compiler.source>
15+
<maven.compiler.target>17</maven.compiler.target>
1616
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
1717
<bnd.version>6.1.0</bnd.version>
1818
</properties>

archetypes/project/src/main/resources/archetype-resources/__app-artifactId__/__app-artifactId__.bndrun

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ index: target/index.xml;name="${app-artifactId}"
55
-runrequires: osgi.identity;filter:='(osgi.identity=${groupId}.${impl-artifactId})'
66
-runfw: org.eclipse.osgi
77
#if ($app-target-java-version == '8')
8-
-runee: JavaSE-1.8
8+
-runee: JavaSE-17
99
#elseif ($app-target-java-version == '9')
1010
-runee: JavaSE-9
1111
#elseif ($app-target-java-version == '10')

archetypes/project/src/main/resources/archetype-resources/pom.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212

1313
<properties>
1414
#if ($app-target-java-version == '8')
15-
<maven.compiler.source>1.8</maven.compiler.source>
16-
<maven.compiler.target>1.8</maven.compiler.target>
15+
<maven.compiler.source>17</maven.compiler.source>
16+
<maven.compiler.target>17</maven.compiler.target>
1717
#elseif ($app-target-java-version == '9')
1818
<maven.compiler.source>9</maven.compiler.source>
1919
<maven.compiler.target>9</maven.compiler.target>

archetypes/project/src/test/resources/projects/basic-8/reference/app-module/app-module.bndrun

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ index: target/index.xml;name="app-module"
44

55
-runrequires: osgi.identity;filter:='(osgi.identity=archetype.it.impl-bundle)'
66
-runfw: org.eclipse.osgi
7-
-runee: JavaSE-1.8
7+
-runee: JavaSE-17
88

99
-resolve.effective: active

archetypes/project/src/test/resources/projects/basic-8/reference/pom.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
<description>The basic application - built using OSGi enRoute R7</description>
1212

1313
<properties>
14-
<maven.compiler.source>1.8</maven.compiler.source>
15-
<maven.compiler.target>1.8</maven.compiler.target>
14+
<maven.compiler.source>17</maven.compiler.source>
15+
<maven.compiler.target>17</maven.compiler.target>
1616
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
1717
<bnd.version>6.1.0</bnd.version>
1818
</properties>

examples/gogo/app/app.bndrun

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ index: target/index.xml;name="app"
55
-runrequires: osgi.identity;filter:='(osgi.identity=org.osgi.enroute.examples.gogo.command)'
66

77
-runfw: org.eclipse.osgi
8-
-runee: JavaSE-1.8
8+
-runee: JavaSE-17
99

1010
-resolve.effective: active

examples/microservice/rest-app-jpa/rest-app-jpa.bndrun

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ index: target/index.xml;name="rest-app-jpa"
2727
osgi.identity;filter:='(osgi.identity=org.apache.johnzon.core)',\
2828
osgi.identity;filter:='(osgi.identity=org.h2)'
2929
-runfw: org.eclipse.osgi
30-
-runee: JavaSE-1.8
30+
-runee: JavaSE-17
3131
-runbundles: \
3232
ch.qos.logback.classic;version='[1.2.3,1.2.4)',\
3333
ch.qos.logback.core;version='[1.2.3,1.2.4)',\

examples/microservice/rest-app/rest-app.bndrun

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ index: target/index.xml;name="rest-app"
1313
osgi.identity;filter:='(osgi.identity=org.apache.johnzon.core)',\
1414
osgi.identity;filter:='(osgi.identity=org.h2)'
1515
-runfw: org.eclipse.osgi
16-
-runee: JavaSE-1.8
16+
-runee: JavaSE-17
1717
-runbundles: \
1818
ch.qos.logback.classic;version='[1.2.3,1.2.4)',\
1919
ch.qos.logback.core;version='[1.2.3,1.2.4)',\

examples/microservice/rest-service-test/integration-test.bndrun

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Import-Package: org.osgi.framework.*;version="[1.8,2)",*
1515
-runsystempackages: sun.reflect
1616

1717
-runfw: org.eclipse.osgi
18-
-runee: JavaSE-1.8
18+
-runee: JavaSE-17
1919

2020
-runrequires: \
2121
bnd.identity;id='org.osgi.enroute.examples.microservice.rest-service',\

examples/pom.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@
6969
</distributionManagement>
7070

7171
<properties>
72-
<maven.compiler.source>1.8</maven.compiler.source>
73-
<maven.compiler.target>1.8</maven.compiler.target>
72+
<maven.compiler.source>17</maven.compiler.source>
73+
<maven.compiler.target>17</maven.compiler.target>
7474
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
7575
<bnd.version>6.1.0</bnd.version>
7676
</properties>

examples/quickstart/app/app.bndrun

+10-4
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@ index: target/index.xml;name="app"
22

33
-standalone: ${index}
44

5-
-runrequires: osgi.identity;filter:='(osgi.identity=org.osgi.enroute.examples.quickstart.rest)'
6-
-runfw: org.eclipse.osgi
7-
-runee: JavaSE-1.8
5+
-runrequires: osgi.identity;filter:='(osgi.identity=org.osgi.enroute.examples.quickstart.rest)',\
6+
osgi.contract;osgi.contract=JavaJAXRS;filter:="(&(osgi.contract=JavaJAXRS)(version=2.1.0))"
7+
-runfw: org.eclipse.osgi;version='[3.15.300.v20200520-1959,3.15.300.v20200520-1959]'
8+
-runee: JavaSE-17
89

910
-resolve.effective: active
1011

@@ -22,4 +23,9 @@ index: target/index.xml;name="app"
2223
org.apache.felix.configadmin;version='[1.9.16,1.9.17)',\
2324
org.apache.felix.http.jetty;version='[4.0.14,4.0.15)',\
2425
org.apache.felix.scr;version='[2.1.16,2.1.17)',\
25-
org.osgi.enroute.examples.quickstart.rest;version='[0.0.2,0.0.3)'
26+
org.osgi.enroute.examples.quickstart.rest;version='[0.0.2,0.0.3)',\
27+
jaxb-api;version='[2.3.1,2.3.2)',\
28+
org.apache.servicemix.specs.activation-api-1.1;version='[2.9.0,2.9.1)',\
29+
org.apache.servicemix.specs.jaxws-api-2.2;version='[2.9.0,2.9.1)',\
30+
org.apache.servicemix.specs.saaj-api-1.3;version='[2.9.0,2.9.1)'
31+
-resolve: manual

examples/quickstart/app/pom.xml

+7
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,13 @@
2929
<artifactId>debug-bundles</artifactId>
3030
<type>pom</type>
3131
</dependency>
32+
<!-- https://mvnrepository.com/artifact/javax.xml.bind/jaxb-api -->
33+
<dependency>
34+
<groupId>javax.xml.bind</groupId>
35+
<artifactId>jaxb-api</artifactId>
36+
<version>2.3.1</version>
37+
</dependency>
38+
3239
</dependencies>
3340

3441
<build>

0 commit comments

Comments
 (0)