Skip to content

Commit

Permalink
Update to latest Spring dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
ibmmqmet committed Jan 20, 2023
1 parent f381836 commit e4c2df2
Show file tree
Hide file tree
Showing 13 changed files with 51 additions and 29 deletions.
4 changes: 4 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# Changelog
Newest updates are at the top of this file

## 2.7.8 and 3.0.2 (2023-01-20)
- Update dependencies to Spring Boot 2.7.8/3.0.2
- Add script to create JKS file for sample t2.tls

## 2.7.6 and 3.0.0 (2022-11-24)
- Update dependencies to Spring Boot 2.7.6/3.0.0
- Add "ibm.mq.jks.*" attributes to set keystore/truststore
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ The preferred approach for using this package in other projects will be to use t

### License

Copyright © 2018, 2022 IBM Corp. All rights reserved.
Copyright © 2018, 2023 IBM Corp. All rights reserved.

Licensed under the apache license, version 2.0 (the "license"); you may not use this file except in compliance with the license.
You may obtain a copy of the license at
Expand Down
6 changes: 3 additions & 3 deletions jms2.properties
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
// This file contains the versions of Spring etc to work with a javax.jms-based system
ext {
// Our shipped version - should usually match the Spring Boot Version
mqStarterVersion = '2.7.6'
mqStarterVersion = '2.7.8'

// Direct Dependencies - give versions here
springVersion = '5.3.24'
springBootVersion = '2.7.6'
springVersion = '5.3.25'
springBootVersion = '2.7.8'

// The pooledJms v2.x level is built against Java 11 so we can't move there
pooledJmsVersion = '1.2.4'
Expand Down
8 changes: 4 additions & 4 deletions jms3.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
ext {
// Our shipped version - should usually match the Spring Boot Version but
// we keep it different during the pre-GA releases
mqStarterVersion = '3.0.0'
mqStarterVersion = '3.0.2'

// Direct Dependencies - give versions here
springVersion = '6.0.1'
springBootVersion = '3.0.0'
springVersion = '6.0.4'
springBootVersion = '3.0.2'

pooledJmsVersion = '3.0.0'
pooledJmsVersion = '3.1.0'
jUnitVersion = '4.13.2'

// MQ client has a 'jakarta' name
Expand Down
2 changes: 1 addition & 1 deletion samples/s1/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ apply plugin: 'java'
apply plugin: 'org.springframework.boot'

// The designated version should match the current version in the root of the repo
ext.starterVersion = '2.7.6'
ext.starterVersion = '2.7.8'

// The local, flatDir configuration lets us use a modified version from
// this repository without needing it released via maven
Expand Down
4 changes: 2 additions & 2 deletions samples/s2.tls/RUNME.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
# connect to your queue manager.
#
# For the simple requirement of one-way authentication here, we have extracted
# the queue manager's public certificate into qm1.arm. And then imported it (I used
# strmqikm but command line tools could have been instead) into key.jks.
# the queue manager's public certificate into qm1.arm. And then imported it. The
# buildJks script can be used as an example of doing that.

###### Cleanup from previous runs
# Kill any old instances of the application
Expand Down
2 changes: 1 addition & 1 deletion samples/s2.tls/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ apply plugin: 'java'
apply plugin: 'org.springframework.boot'

// The designated version should match the current version in the root of the repo
ext.starterVersion = '2.7.6'
ext.starterVersion = '2.7.8'

// The local, flatDir configuration lets us use a modified version from
// this repository without needing it released via maven
Expand Down
18 changes: 18 additions & 0 deletions samples/s2.tls/buildJks
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# A very simple script to extract the QMgr's certificate from its kdb file
# and then add it back into a local JKS file (assuming it exists). This
# could be made a lot more bulletproof and get parameterised. But it's enough
# for my environment.

# Password used for both the qmgr's keystore, and the new truststore that this
# program refers to
pw="passw0rd"

set -x # So you can see what it's doing
# Default label for the qmgr certificate. Keystore given in qmgr attributes.
rm -f qm1.arm
runmqckm -cert -extract -db /var/mqm/ssl/key.kdb -pw $pw -label ibmwebspheremqqm1 -target qm1.arm

# Now import that cert into a new keystore/truststore
rm -f key.jks
runmqckm -keydb -create -db key.jks -pw $pw -type jks
runmqckm -cert -add -db key.jks -pw $pw -file qm1.arm -label ibmwebspheremqqm1
Binary file modified samples/s2.tls/key.jks
Binary file not shown.
28 changes: 14 additions & 14 deletions samples/s2.tls/qm1.arm
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
-----BEGIN CERTIFICATE-----
MIIDKTCCAhGgAwIBAgIIc4omnV2OD6wwDQYJKoZIhvcNAQENBQAwKjEMMAoGA1UECxMDSUJNMRow
GAYDVQQDExFpYm13ZWJzcGhlcmVtcXFtMTAeFw0yMjA3MDUwODU5MzVaFw0yMzA3MDYwODU5MzVa
MIIDKTCCAhGgAwIBAgIILSEHWRO8KC8wDQYJKoZIhvcNAQENBQAwKjEMMAoGA1UECxMDSUJNMRow
GAYDVQQDExFpYm13ZWJzcGhlcmVtcXFtMTAeFw0yMjExMjkxMzIyMjBaFw0yMzExMzAxMzIyMjBa
MCoxDDAKBgNVBAsTA0lCTTEaMBgGA1UEAxMRaWJtd2Vic3BoZXJlbXFxbTEwggEiMA0GCSqGSIb3
DQEBAQUAA4IBDwAwggEKAoIBAQCbHyyOPAE7olEnh5+PY5qAx865gmP8VRwlAVWAhh3PMbbpDgNj
8/AEX76MrTZlKD0a7sbHh7EDgIpmbRtu1x4hK930qInFeBRjvECh7/dFD9YTMfI501cgk1snAze7
5d4AXOUJRq54HvwHWCMWNpcetBtc0wmRZtMPE+hLFgli3FX8ZZ5vBWSb2XViGvldm18LZWPPrRLA
3ytGoluW2X1+ZlMJo9EJComL1EgbxZifBdyKT2rFSyXnhW4a5zF4tkHJ7LEd9pFJhgEZHdJQrKe/
UtHZl8pOlLuYq4TkalLsv9W1eJMKO/K7irqnsCkA58A3zN+r7F4Ge4mjWG3NqK1nAgMBAAGjUzBR
MA8GA1UdEwEB/wQFMAMBAf8wHQYDVR0OBBYEFHDnp4R/w1RJ0VddCQS12SGIerpOMB8GA1UdIwQY
MBaAFHDnp4R/w1RJ0VddCQS12SGIerpOMA0GCSqG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Hx7goFHgWLnkIqZjBKZab0YAg7Xp9unYYtoHz/39DE9ZU7HySpVthcyGwbomEyQx1
twtkxdjwmlnH0vvMlK6u+AF55sJlxIKkOWscZ+Whrueb+bRSzQvISEzqnEwyu9lxvHGY7IIflEC5
2CPSmg7/LtRJwCJrZKzp
-----END CERTIFICATE-----
2 changes: 1 addition & 1 deletion samples/s2/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ apply plugin: 'java'
apply plugin: 'org.springframework.boot'

// The designated version should match the current version in the root of the repo
ext.starterVersion = '2.7.6'
ext.starterVersion = '2.7.8'

// The local, flatDir configuration lets us use a modified version from
// this repository without needing it released via maven
Expand Down
2 changes: 1 addition & 1 deletion samples/s3.jms3/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ apply plugin: 'java'
apply plugin: 'org.springframework.boot'

// The designated version should match the current version in the root of the repo
ext.starterVersion = '3.0.0'
ext.starterVersion = '3.0.2'


// The local, flatDir configuration lets us use a modified version from
Expand Down
2 changes: 1 addition & 1 deletion samples/s3/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ apply plugin: 'java'
apply plugin: 'org.springframework.boot'

// The designated version should match the current version in the root of the repo
ext.starterVersion = '2.7.6'
ext.starterVersion = '2.7.8'

// The local, flatDir configuration lets us use a modified version from
// this repository without needing it released via maven
Expand Down

0 comments on commit e4c2df2

Please sign in to comment.