diff --git a/CHANGELOG.md b/CHANGELOG.md index 735dec1..ab11260 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,10 @@ Changes of the Bitrepository.org protocol specification. The change log covers changes in the protocol from protocol version 23 and newer. Changes prior to version 23 have never been documented in a change log form. For references of changes prior to that look at the version control history. +## [33] - 2026-07-14 +### +- Updated to use Java 17 and Jakarta + ## [32] - 2022-09-07 ### Changed - Project `groupId` updated from `org.bitrepository` to `org.bitrepository.message-xml` diff --git a/Jenkinsfile b/Jenkinsfile index 8b007a8..745742f 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,59 +1,8 @@ -#!/usr/bin/env groovy - -openshift.withCluster() { - - podTemplate( - inheritFrom: 'maven', - cloud: 'openshift', //cloud must be openshift - envVars: [ //This fixes the error with en_US.utf8 not being found - envVar(key:"LC_ALL", value:"C.utf8") - ], - volumes: [ //mount the settings.xml - secretVolume(mountPath: '/etc/m2', secretName: 'maven-settings') - ]) { - - try { - //GO to a node with maven and settings.xml - node(POD_LABEL) { - //Do not use concurrent builds - properties([disableConcurrentBuilds()]) - - def mvnCmd = "mvn -s /etc/m2/settings.xml --batch-mode" - - stage('checkout') { - checkout scm - } - - stage('Mvn clean package') { - sh "${mvnCmd} -PallTests clean package" - } - - stage('Analyze build results') { - recordIssues aggregatingResults: true, - tools: [java(), - javaDoc(), - mavenConsole(), - taskScanner(highTags:'FIXME', normalTags:'TODO', includePattern: '**/*.java', excludePattern: 'target/**/*')] - } - - stage('Push to Nexus (if Master)') { - echo "Branch name ${env.BRANCH_NAME}" - if (env.BRANCH_NAME == 'master') { - sh "${mvnCmd} clean deploy -DskipTests=true" - } else { - echo "Branch ${env.BRANCH_NAME} is not master, so no mvn deploy" - } - } - } - } catch (e) { - currentBuild.result = 'FAILURE' - throw e - } finally { - configFileProvider([configFile(fileId: "notifier", variable: 'notifier')]) { - def notifier = load notifier - notifier.notifyInCaseOfFailureOrImprovement(true, "#playground") - } - } - } -} - +library identifier: 'StandardBuild@master', retriever: modernSCM(scm: [$class: 'GitSCMSource', remote: 'https://sbprojects.statsbiblioteket.dk/stash/scm/ist/jenkins-shared.git', credentialsId: 'crowd'],libraryPath: "Kuana") _ + +StandardBuild { + agent="maven" + maven="3.9.11" + jdk="21" + mavenLocalRepo='${WORKSPACE}/.repository/' +} \ No newline at end of file diff --git a/message-xml-java/pom.xml b/message-xml-java/pom.xml index 8bfd21c..3feb865 100644 --- a/message-xml-java/pom.xml +++ b/message-xml-java/pom.xml @@ -13,27 +13,26 @@ - org.jvnet.jaxb2_commons - jaxb2-basics-runtime - 0.11.1 + org.jvnet.jaxb + jaxb-plugins-runtime + 4.0.12 - - + jakarta.xml.bind jakarta.xml.bind-api - 2.3.3 + 4.0.5 - + jakarta.activation jakarta.activation-api - 1.2.2 + 2.1.4 org.glassfish.jaxb jaxb-runtime - 2.3.6 + 4.0.9 runtime @@ -108,72 +107,54 @@ - org.codehaus.mojo - jaxb2-maven-plugin - 2.5.0 + org.jvnet.jaxb + jaxb-maven-plugin + 4.0.12 - - - - - \.xjb - \.xml - - - + ${project.basedir}/src/main/resources/xsd/ true - - -XtoString - -Xequals - -XhashCode - -Xannotate - + + -XtoString + -XsimpleEquals + -XsimpleHashCode + + + + org.jvnet.jaxb + jaxb-plugins + 4.0.12 + + generate-message-classes - xjc + generate process-sources - ${project.build.directory}/generated-sources/messages - - ${project.build.directory}/message-xml/xsd - - - ${project.build.directory}/message-xml/xsd/bindings.xjb - + ${project.build.directory}/generated-sources/messages + ${project.build.directory}/message-xml/xsd + bindings.xjb generate-message-versioning-classes - xjc + generate process-sources - ${project.build.directory}/generated-sources/versioning - - ${project.build.directory}/message-xml/versioning - + ${project.build.directory}/generated-sources/versioning + ${project.build.directory}/message-xml/versioning - - - org.jvnet.jaxb2_commons - jaxb2-basics - 0.11.1 - - - org.jvnet.jaxb2_commons - jaxb2-basics-annotate - 1.1.0 - - + + + diff --git a/pom.xml b/pom.xml index f4aec88..ef7ee19 100644 --- a/pom.xml +++ b/pom.xml @@ -1,4 +1,5 @@ - + 4.0.0 @@ -58,4 +59,15 @@ -Xdoclint:none + + + + org.apache.maven.plugins + maven-compiler-plugin + + 21 + + + +