Skip to content

Commit

Permalink
change min java version to 17
Browse files Browse the repository at this point in the history
Signed-off-by: Markus Hochstein <markus.hochstein@software-hochstein.de>
  • Loading branch information
vwfox authored and Markus Hochstein committed Jan 3, 2024
1 parent d15c08a commit d3fd99a
Show file tree
Hide file tree
Showing 17 changed files with 37 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ index: target/index.xml;name="${artifactId}"
-runrequires: osgi.identity;filter:='(osgi.identity=${impl-groupId}.${impl-artifactId})'
-runfw: org.eclipse.osgi
#if ($target-java-version == '8')
-runee: JavaSE-1.8
-runee: JavaSE-17
#elseif ($target-java-version == '9')
-runee: JavaSE-9
#elseif ($target-java-version == '10')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ index: target/index.xml;name="standalone-app-module"

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

-resolve.effective: active
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Import-Package: org.osgi.framework.*;version="[1.8,2)",*
-runsystempackages: sun.reflect

-runfw: org.eclipse.osgi
-runee: JavaSE-1.8
-runee: JavaSE-17

-runrequires: \
osgi.identity;filter:='(osgi.identity=${groupId}.${artifactId})'
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Import-Package: org.osgi.framework.*;version="[1.8,2)",*
-runsystempackages: sun.reflect

-runfw: org.eclipse.osgi
-runee: JavaSE-1.8
-runee: JavaSE-17

-runrequires: \
osgi.identity;filter:='(osgi.identity=archetype.it.bundle-testing)'
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
<description>The ${artifactId} application - built using OSGi enRoute R7</description>

<properties>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<bnd.version>6.1.0</bnd.version>
</properties>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
<description>The basic application - built using OSGi enRoute R7</description>

<properties>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<bnd.version>6.1.0</bnd.version>
</properties>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ index: target/index.xml;name="${app-artifactId}"
-runrequires: osgi.identity;filter:='(osgi.identity=${groupId}.${impl-artifactId})'
-runfw: org.eclipse.osgi
#if ($app-target-java-version == '8')
-runee: JavaSE-1.8
-runee: JavaSE-17
#elseif ($app-target-java-version == '9')
-runee: JavaSE-9
#elseif ($app-target-java-version == '10')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@

<properties>
#if ($app-target-java-version == '8')
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
#elseif ($app-target-java-version == '9')
<maven.compiler.source>9</maven.compiler.source>
<maven.compiler.target>9</maven.compiler.target>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ index: target/index.xml;name="app-module"

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

-resolve.effective: active
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
<description>The basic application - built using OSGi enRoute R7</description>

<properties>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<bnd.version>6.1.0</bnd.version>
</properties>
Expand Down
2 changes: 1 addition & 1 deletion examples/gogo/app/app.bndrun
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ index: target/index.xml;name="app"
-runrequires: osgi.identity;filter:='(osgi.identity=org.osgi.enroute.examples.gogo.command)'

-runfw: org.eclipse.osgi
-runee: JavaSE-1.8
-runee: JavaSE-17

-resolve.effective: active
2 changes: 1 addition & 1 deletion examples/microservice/rest-app-jpa/rest-app-jpa.bndrun
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ index: target/index.xml;name="rest-app-jpa"
osgi.identity;filter:='(osgi.identity=org.apache.johnzon.core)',\
osgi.identity;filter:='(osgi.identity=org.h2)'
-runfw: org.eclipse.osgi
-runee: JavaSE-1.8
-runee: JavaSE-17
-runbundles: \
ch.qos.logback.classic;version='[1.2.3,1.2.4)',\
ch.qos.logback.core;version='[1.2.3,1.2.4)',\
Expand Down
2 changes: 1 addition & 1 deletion examples/microservice/rest-app/rest-app.bndrun
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ index: target/index.xml;name="rest-app"
osgi.identity;filter:='(osgi.identity=org.apache.johnzon.core)',\
osgi.identity;filter:='(osgi.identity=org.h2)'
-runfw: org.eclipse.osgi
-runee: JavaSE-1.8
-runee: JavaSE-17
-runbundles: \
ch.qos.logback.classic;version='[1.2.3,1.2.4)',\
ch.qos.logback.core;version='[1.2.3,1.2.4)',\
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Import-Package: org.osgi.framework.*;version="[1.8,2)",*
-runsystempackages: sun.reflect

-runfw: org.eclipse.osgi
-runee: JavaSE-1.8
-runee: JavaSE-17

-runrequires: \
bnd.identity;id='org.osgi.enroute.examples.microservice.rest-service',\
Expand Down
4 changes: 2 additions & 2 deletions examples/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@
</distributionManagement>

<properties>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<bnd.version>6.1.0</bnd.version>
</properties>
Expand Down
14 changes: 10 additions & 4 deletions examples/quickstart/app/app.bndrun
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ index: target/index.xml;name="app"

-standalone: ${index}

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

-resolve.effective: active

Expand All @@ -22,4 +23,9 @@ index: target/index.xml;name="app"
org.apache.felix.configadmin;version='[1.9.16,1.9.17)',\
org.apache.felix.http.jetty;version='[4.0.14,4.0.15)',\
org.apache.felix.scr;version='[2.1.16,2.1.17)',\
org.osgi.enroute.examples.quickstart.rest;version='[0.0.2,0.0.3)'
org.osgi.enroute.examples.quickstart.rest;version='[0.0.2,0.0.3)',\
jaxb-api;version='[2.3.1,2.3.2)',\
org.apache.servicemix.specs.activation-api-1.1;version='[2.9.0,2.9.1)',\
org.apache.servicemix.specs.jaxws-api-2.2;version='[2.9.0,2.9.1)',\
org.apache.servicemix.specs.saaj-api-1.3;version='[2.9.0,2.9.1)'
-resolve: manual
7 changes: 7 additions & 0 deletions examples/quickstart/app/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,13 @@
<artifactId>debug-bundles</artifactId>
<type>pom</type>
</dependency>
<!-- https://mvnrepository.com/artifact/javax.xml.bind/jaxb-api -->
<dependency>
<groupId>javax.xml.bind</groupId>
<artifactId>jaxb-api</artifactId>
<version>2.3.1</version>
</dependency>

</dependencies>

<build>
Expand Down

0 comments on commit d3fd99a

Please sign in to comment.