@@ -220,6 +220,32 @@ then
220220 -m ' And using HTTP now generates errors in Eclipse (and probably other IDEs).'
221221fi
222222
223+ # Change forum references from forum.image.net to forum.image.sc.
224+ if grep -q ' https*://forum.imagej.net' pom.xml > /dev/null 2> /dev/null
225+ then
226+ echo " ================================================================"
227+ echo " NOTE: Your POM still references forum.imagej.net. Fixing it now."
228+ echo " ================================================================"
229+ sed ' s;https*://forum.imagej.net;https://forum.image.sc;g' pom.xml > pom.new &&
230+ mv -f pom.new pom.xml &&
231+ git commit pom.xml \
232+ -m ' POM: fix forum.image.sc tag link' \
233+ -m ' The Discourse software updated the tags path from /tags/ to /tag/.'
234+ fi
235+
236+ # Ensure that references to forum.image.sc use /tag/, not /tags/.
237+ if grep -q forum.image.sc/tags/ pom.xml > /dev/null 2> /dev/null
238+ then
239+ echo " =================================================================="
240+ echo " NOTE: Your POM has an old-style forum.image.sc tag. Fixing it now."
241+ echo " =================================================================="
242+ sed ' s;forum.image.sc/tags/;forum.image.sc/tag/;g' pom.xml > pom.new &&
243+ mv -f pom.new pom.xml &&
244+ git commit pom.xml \
245+ -m ' POM: fix forum.image.sc tag link' \
246+ -m ' The Discourse software updated the tags path from /tags/ to /tag/.'
247+ fi
248+
223249# Ensure license headers are up-to-date.
224250test " $SKIP_LICENSE_UPDATE " -o -z " $licenseName " -o " $licenseName " = " N/A" || {
225251 mvn license:update-project-license license:update-file-header &&
0 commit comments