Skip to content

Commit 2ef8d7f

Browse files
committed
Use Bnd 7.5.0
Bump build time requirements to Java 17 Drop GHA Java 11 build Remove workaround for multi-release jars Prevent emitting requirements for service loader
1 parent 80df1b4 commit 2ef8d7f

3 files changed

Lines changed: 9 additions & 7 deletions

File tree

‎.github/workflows/maven.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ jobs:
1212
strategy:
1313
matrix:
1414
os: [ubuntu-latest, windows-latest, macOS-latest]
15-
jdk: [11, 17, 21, 25]
15+
jdk: [17, 21, 25]
1616
include:
17-
# lengthy build steps should only be performed on linux with Java 17 (Sonarcloud analysis, deployment)
17+
# lengthy build steps should only be performed on linux with Java 21 (Sonarcloud analysis, deployment)
1818
- os: ubuntu-latest
1919
jdk: 21
2020
isMainBuildEnv: true

‎accesscontroltool-bundle/bnd.bnd‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ org.apache.jackrabbit.oak.spi.security.authentication.external.*;resolution:=opt
2121
org.apache.jackrabbit.oak.commons.jmx;version="[1.1.0,3.0.0)",\
2222
!jakarta.servlet.jsp.el,\
2323
*
24-
25-
# snakeyaml 2.0 uses multi version jars which are not supported: https://github.com/bndtools/bnd/issues/3514
26-
-fixupmessages "Classes found in the wrong directory"; restrict:=error; is:=warning
24+
# disable processing of org.apache.el.ExpressionFactory as otherwise a requirement to serviceloader is emitted.
25+
# This is not used in ACTool as we create ExpressionFactory instances directly and not via ServiceLoader.
26+
# see also https://bnd.bndtools.org/instructions/metainf_services.html
27+
-metainf-services: none

‎pom.xml‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
8585
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
8686
<slf4j.version>1.7.25</slf4j.version>
87-
<bnd.version>6.4.0</bnd.version>
87+
<bnd.version>7.5.0</bnd.version>
8888
<bouncycastle.version>1.64</bouncycastle.version>
8989
<!-- release sets API classpath, source and target, see https://docs.oracle.com/javase/9/tools/javac.htm#GUID-AEEC9F07-CB49-4E96-8BC7-BCC2C7F725C9__GUID-D343F6B4-3FDD-43A8-AD24-43DD70214471 and http://openjdk.java.net/jeps/247 -->
9090
<maven.compiler.release>11</maven.compiler.release>
@@ -543,7 +543,8 @@
543543
<version>3.9.0</version>
544544
</requireMavenVersion>
545545
<requireJavaVersion>
546-
<version>11</version>
546+
<!-- for Bnd 7.x -->
547+
<version>17</version>
547548
</requireJavaVersion>
548549
</rules>
549550
</configuration>

0 commit comments

Comments
 (0)