Update target JDK to 11 and move to JakartaEE
| | |
| | | runs-on: ${{ matrix.os }} |
| | | strategy: |
| | | matrix: |
| | | java: [ '8','11','17','21','23'] |
| | | java: [ '11','17','21','23'] |
| | | os: [ 'ubuntu-latest', 'macos-latest', 'windows-latest' ] |
| | | fail-fast: false |
| | | steps: |
| | |
| | | - name: Set up Java for publishing to Maven Central Repository OSS |
| | | uses: actions/setup-java@v4 |
| | | with: |
| | | java-version: '8' |
| | | java-version: '11' |
| | | distribution: 'temurin' |
| | | server-id: ossrh |
| | | server-username: MAVEN_USERNAME |
| | |
| | | - name: Set up Java for publishing to Maven Central Repository OSS |
| | | uses: actions/setup-java@v4 |
| | | with: |
| | | java-version: '8' |
| | | java-version: '11' |
| | | distribution: 'temurin' |
| | | server-id: ossrh |
| | | server-username: MAVEN_USERNAME |
| | |
| | | |
| | | <!-- java.xml.bind (JAXB) - REMOVED --> |
| | | <dependency> |
| | | <groupId>javax.xml.bind</groupId> |
| | | <artifactId>jaxb-api</artifactId> |
| | | <groupId>jakarta.xml.bind</groupId> |
| | | <artifactId>jakarta.xml.bind-api</artifactId> |
| | | </dependency> |
| | | <dependency> |
| | | <groupId>com.sun.xml.bind</groupId> |
| | | <artifactId>jaxb-core</artifactId> |
| | | <groupId>org.glassfish.jaxb</groupId> |
| | | <artifactId>jaxb-core</artifactId> |
| | | </dependency> |
| | | <dependency> |
| | | <groupId>com.sun.xml.bind</groupId> |
| | | <artifactId>jaxb-impl</artifactId> |
| | | <groupId>org.glassfish.jaxb</groupId> |
| | | <artifactId>jaxb-runtime</artifactId> |
| | | </dependency> |
| | | |
| | | <!-- BC FIPS Provider libs --> |
| | |
| | | |
| | | <profiles> |
| | | <profile> |
| | | <id>set-compiler-release</id> |
| | | <activation> |
| | | <jdk>[9,)</jdk> |
| | | </activation> |
| | | <properties> |
| | | <maven.compiler.release>8</maven.compiler.release> |
| | | <!-- |
| | | -release 8 dont allow hidden packages |
| | | package sun.security.tools.keytool does not exist |
| | | package sun.security.x509 does not exist |
| | | --> |
| | | <maven.compiler.testRelease /> |
| | | </properties> |
| | | </profile> |
| | | <profile> |
| | | <!-- This profile provides API/ABI compatiblity checks and reports via Clirr --> |
| | | <id>clirr</id> |
| | | <activation> |
| | |
| | | * sets of three bytes with eight significant bits each to sets of four bytes |
| | | * with six significant bits each. |
| | | * <p> |
| | | * <b>NOTE:</b> the JDK class {@link javax.xml.bind.DatatypeConverter} provides |
| | | * <b>NOTE:</b> the JDK class {@link jakarta.xml.bind.DatatypeConverter} provides |
| | | * similar functionality, however the methods are better suited to the LDAP SDK. |
| | | * For example, the JDK encoder does not handle array/offset/len parameters, and |
| | | * the decoder ignores invalid Base64 data. |
| | |
| | | import java.io.ByteArrayOutputStream; |
| | | import java.util.Arrays; |
| | | |
| | | import javax.xml.bind.DatatypeConverter; |
| | | import jakarta.xml.bind.DatatypeConverter; |
| | | |
| | | import org.testng.Assert; |
| | | import org.testng.annotations.Test; |
| | |
| | | import java.nio.charset.CharsetDecoder; |
| | | import java.util.Arrays; |
| | | |
| | | import javax.xml.bind.DatatypeConverter; |
| | | import jakarta.xml.bind.DatatypeConverter; |
| | | |
| | | import org.forgerock.i18n.LocalizedIllegalArgumentException; |
| | | import org.testng.Assert; |
| | |
| | | <dependencies> |
| | | <!-- Servlet API --> |
| | | <dependency> |
| | | <groupId>javax.servlet</groupId> |
| | | <artifactId>javax.servlet-api</artifactId> |
| | | <version>3.1.0</version> |
| | | <groupId>jakarta.servlet</groupId> |
| | | <artifactId>jakarta.servlet-api</artifactId> |
| | | <version>6.0.0</version> |
| | | <scope>provided</scope> |
| | | </dependency> |
| | | |
| | |
| | | import java.util.logging.Level; |
| | | import java.util.logging.Logger; |
| | | |
| | | import javax.servlet.ServletConfig; |
| | | import javax.servlet.ServletException; |
| | | import javax.servlet.http.HttpServlet; |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import jakarta.servlet.ServletConfig; |
| | | import jakarta.servlet.ServletException; |
| | | import jakarta.servlet.http.HttpServlet; |
| | | import jakarta.servlet.http.HttpServletRequest; |
| | | import jakarta.servlet.http.HttpServletResponse; |
| | | import javax.xml.XMLConstants; |
| | | import jakarta.xml.bind.JAXBContext; |
| | | import jakarta.xml.bind.JAXBElement; |
| | |
| | | </executions> |
| | | <configuration> |
| | | <container> |
| | | <containerId>tomcat9x</containerId> |
| | | <containerId>tomcat10x</containerId> |
| | | <type>embedded</type> |
| | | <systemProperties> |
| | | <file.encoding>UTF-8</file.encoding> |
| | |
| | | */ |
| | | package org.forgerock.opendj.rest2ldap; |
| | | |
| | | import static javax.xml.bind.DatatypeConverter.parseDateTime; |
| | | import static javax.xml.bind.DatatypeConverter.printDateTime; |
| | | import static jakarta.xml.bind.DatatypeConverter.parseDateTime; |
| | | import static jakarta.xml.bind.DatatypeConverter.printDateTime; |
| | | import static org.forgerock.opendj.ldap.Filter.alwaysFalse; |
| | | import static org.forgerock.opendj.ldap.Functions.byteStringToBoolean; |
| | | import static org.forgerock.opendj.ldap.Functions.byteStringToGeneralizedTime; |
| | |
| | | <!-- mail --> |
| | | <dependency> |
| | | <groupId>com.sun.mail</groupId> |
| | | <artifactId>javax.mail</artifactId> |
| | | <artifactId>jakarta.mail</artifactId> |
| | | </dependency> |
| | | |
| | | <dependency> |
| | |
| | | import java.util.TimeZone; |
| | | import java.util.UUID; |
| | | |
| | | import javax.mail.MessagingException; |
| | | import jakarta.mail.MessagingException; |
| | | |
| | | import org.forgerock.i18n.LocalizableMessage; |
| | | import org.forgerock.i18n.LocalizableMessageDescriptor.Arg2; |
| | |
| | | import java.util.Map.Entry; |
| | | import java.util.concurrent.CopyOnWriteArrayList; |
| | | |
| | | import static javax.xml.bind.DatatypeConverter.printDateTime; |
| | | import static jakarta.xml.bind.DatatypeConverter.printDateTime; |
| | | import static org.forgerock.opendj.ldap.Functions.*; |
| | | import static org.opends.messages.ConfigMessages.*; |
| | | import static org.opends.server.protocols.internal.Requests.newSearchRequest; |
| | |
| | | import static org.opends.server.util.ServerConstants.MBEAN_BASE_DOMAIN; |
| | | import static org.opends.server.util.StaticUtils.isAlpha; |
| | | import static org.opends.server.util.StaticUtils.isDigit; |
| | | import static org.opends.server.schema.SchemaConstants.SYNTAX_INTEGER_OID; |
| | | |
| | | /** |
| | | * This class defines a JMX MBean that can be registered with the Directory |
| | |
| | | */ |
| | | package org.opends.server.replication.server.changelog.api; |
| | | |
| | | import javax.annotation.Generated; |
| | | import jakarta.annotation.Generated; |
| | | |
| | | import org.forgerock.i18n.LocalizableMessage; |
| | | |
| | |
| | | import java.util.List; |
| | | import java.util.Properties; |
| | | |
| | | import javax.activation.DataHandler; |
| | | import javax.activation.FileDataSource; |
| | | import javax.mail.MessagingException; |
| | | import javax.mail.SendFailedException; |
| | | import javax.mail.Session; |
| | | import javax.mail.Transport; |
| | | import javax.mail.internet.InternetAddress; |
| | | import javax.mail.internet.MimeBodyPart; |
| | | import javax.mail.internet.MimeMessage; |
| | | import javax.mail.internet.MimeMultipart; |
| | | import jakarta.activation.DataHandler; |
| | | import jakarta.activation.FileDataSource; |
| | | import jakarta.mail.MessagingException; |
| | | import jakarta.mail.SendFailedException; |
| | | import jakarta.mail.Session; |
| | | import jakarta.mail.Transport; |
| | | import jakarta.mail.internet.InternetAddress; |
| | | import jakarta.mail.internet.MimeBodyPart; |
| | | import jakarta.mail.internet.MimeMessage; |
| | | import jakarta.mail.internet.MimeMultipart; |
| | | |
| | | import org.forgerock.i18n.LocalizableMessage; |
| | | import org.forgerock.i18n.LocalizableMessageBuilder; |
| | |
| | | } |
| | | } |
| | | message.setRecipients( |
| | | javax.mail.Message.RecipientType.TO, |
| | | jakarta.mail.Message.RecipientType.TO, |
| | | recipientAddresses); |
| | | |
| | | |
| | |
| | | <artifactId>opendj-cli</artifactId> |
| | | </dependency> |
| | | <dependency> |
| | | <groupId>javax.annotation</groupId> |
| | | <artifactId>javax.annotation-api</artifactId> |
| | | <version>1.3.2</version> |
| | | <groupId>jakarta.annotation</groupId> |
| | | <artifactId>jakarta.annotation-api</artifactId> |
| | | <version>3.0.0</version> |
| | | </dependency> |
| | | <dependency> |
| | | <groupId>com.sun.activation</groupId> |
| | | <artifactId>javax.activation</artifactId> |
| | | <version>1.2.0</version> |
| | | <groupId>jakarta.activation</groupId> |
| | | <artifactId>jakarta.activation-api</artifactId> |
| | | <version>2.1.3</version> |
| | | </dependency> |
| | | </dependencies> |
| | | <build><finalName>${project.groupId}.${project.artifactId}</finalName> |
| | |
| | | <product.locales>ca_ES,es,de,fr,ja,ko,pl,zh_CN,zh_TW</product.locales> |
| | | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| | | <localized.jars.classifier>i18n</localized.jars.classifier> |
| | | <commons.version>2.2.3</commons.version> |
| | | <commons.version>2.2.4-SNAPSHOT</commons.version> |
| | | <freemarker.version>2.3.31</freemarker.version> |
| | | <grizzly-framework.version>2.3.35</grizzly-framework.version> |
| | | <metrics-core.version>3.1.2</metrics-core.version> |
| | | <maven.compiler.target>8</maven.compiler.target> |
| | | <maven.compiler.source>8</maven.compiler.source> |
| | | <maven.compiler.target>11</maven.compiler.target> |
| | | <maven.compiler.source>11</maven.compiler.source> |
| | | <!-- OSGi bundles properties --> |
| | | <opendj.osgi.import.additional /> |
| | | <!-- |
| | |
| | | <fork>true</fork> |
| | | <compilerArgs> |
| | | <arg>-XDignore.symbol.file</arg> |
| | | <arg>--add-exports</arg> |
| | | <arg>java.base/sun.security.x509=ALL-UNNAMED</arg> |
| | | <arg>--add-exports</arg> |
| | | <arg>java.base/sun.security.tools.keytool=ALL-UNNAMED</arg> |
| | | </compilerArgs> |
| | | </configuration> |
| | | </plugin> |
| | |
| | | <plugin> |
| | | <groupId>org.apache.felix</groupId> |
| | | <artifactId>maven-bundle-plugin</artifactId> |
| | | <version>2.3.7</version> |
| | | <version>5.1.9</version> |
| | | <extensions>true</extensions> |
| | | <configuration> |
| | | <instructions> |
| | |
| | | </modules> |
| | | </profile> |
| | | <profile> |
| | | <id>set-compiler-release</id> |
| | | <activation> |
| | | <jdk>[9,)</jdk> |
| | | </activation> |
| | | <properties> |
| | | <maven.compiler.release>8</maven.compiler.release> |
| | | </properties> |
| | | </profile> |
| | | <profile> |
| | | <id>jdk16.options</id> |
| | | <activation> |
| | | <jdk>[16,)</jdk> |