Skip to content

Commit 9122bcc

Browse files
authored
sync develop branch after release 5.1.5 (#5415)
2 parents c25b19b + 3d77b67 commit 9122bcc

4 files changed

Lines changed: 62 additions & 23 deletions

File tree

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -750,7 +750,7 @@
750750
<plugin>
751751
<groupId>org.apache.maven.plugins</groupId>
752752
<artifactId>maven-javadoc-plugin</artifactId>
753-
<version>3.11.2</version>
753+
<version>3.11.3</version>
754754
<configuration>
755755
<encoding>utf8</encoding>
756756
<source>11</source>

scripts/release-notes.sh

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,47 @@ DATETIME=$(date +"%Y-%m-%dT%H:%M:%S%z")
9090

9191
echo "Datetime: ${DATETIME}"
9292

93+
echo ""
94+
echo "Collecting assigned contributors for milestone #${GITHUB_MILESTONE}..."
95+
96+
# Build a distinct, comma-separated list of assignees as Markdown links.
97+
# If a user has a GitHub 'name', use it; otherwise use the username.
98+
# Requires: gh (authenticated) and jq (already listed as dependencies above).
99+
ASSIGNEE_LOGINS=$(
100+
gh api -H "Accept: application/vnd.github+json" \
101+
repos/eclipse-rdf4j/rdf4j/issues \
102+
--paginate \
103+
-f milestone="${GITHUB_MILESTONE}" \
104+
-f state=all \
105+
-f per_page=100 \
106+
| jq -r '.[].assignees[]?.login' \
107+
| sort -u
108+
)
109+
110+
CONTRIBUTORS_LIST=""
111+
if [[ -n "${ASSIGNEE_LOGINS}" ]]; then
112+
while IFS= read -r login; do
113+
[[ -z "${login}" ]] && continue
114+
# Fetch the user's profile; prefer 'name', fallback to 'login'
115+
USER_JSON=$(gh api -H "Accept: application/vnd.github+json" "/users/${login}" || echo '{}')
116+
NAME=$(echo "${USER_JSON}" | jq -r '.name // empty' 2>/dev/null)
117+
if [[ -z "${NAME}" || "${NAME}" == "null" ]]; then
118+
DISPLAY="${login}"
119+
else
120+
DISPLAY="${NAME}"
121+
fi
122+
LINK="[${DISPLAY}](https://github.com/${login})"
123+
if [[ -z "${CONTRIBUTORS_LIST}" ]]; then
124+
CONTRIBUTORS_LIST="${LINK}"
125+
else
126+
CONTRIBUTORS_LIST="${CONTRIBUTORS_LIST}, ${LINK}"
127+
fi
128+
done <<< "${ASSIGNEE_LOGINS}"
129+
fi
130+
131+
# Export so envsubst can replace ${LIST_OF_CONTRIBUTORS} in templates.
132+
export LIST_OF_CONTRIBUTORS="${CONTRIBUTORS_LIST}"
133+
93134
echo ""
94135
echo "Using envsubst to generate content from templates."
95136
RELEASE_NOTES=$(cat templates/"${RELEASE_NOTES_TEMPLATE}" | envsubst)

scripts/release.sh

Lines changed: 19 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@ if ! [[ $(git status --porcelain -u no --branch) == "## main...origin/main" ]]
7878
exit 1;
7979
fi
8080

81-
mvn clean -Dmaven.clean.failOnError=false
82-
mvn clean -Dmaven.clean.failOnError=false
81+
mvn clean -q -Dmaven.clean.failOnError=false
82+
mvn clean -q -Dmaven.clean.failOnError=false
8383
mvn clean;
8484

8585
echo "Running git pull to make sure we are up to date"
@@ -107,17 +107,17 @@ if ! git push --dry-run > /dev/null 2>&1; then
107107
exit 1;
108108
fi
109109

110-
mvn clean -Dmaven.clean.failOnError=false
111-
mvn clean -Dmaven.clean.failOnError=false
110+
mvn clean -q -Dmaven.clean.failOnError=false
111+
mvn clean -q -Dmaven.clean.failOnError=false
112112
mvn clean;
113113
git checkout develop;
114114
git pull;
115-
mvn clean -Dmaven.clean.failOnError=false
116-
mvn clean -Dmaven.clean.failOnError=false
115+
mvn clean -q -Dmaven.clean.failOnError=false
116+
mvn clean -q -Dmaven.clean.failOnError=false
117117
mvn clean;
118118
git checkout main;
119-
mvn clean -Dmaven.clean.failOnError=false
120-
mvn clean -Dmaven.clean.failOnError=false
119+
mvn clean -q -Dmaven.clean.failOnError=false
120+
mvn clean -q -Dmaven.clean.failOnError=false
121121
mvn clean;
122122

123123

@@ -148,8 +148,8 @@ echo "MVN_VERSION_DEVELOP=\"${MVN_VERSION_DEVELOP}\"" >> temp/constants.txt
148148
cd ..
149149

150150
echo "Running maven clean and install -DskipTests";
151-
mvn clean -Dmaven.clean.failOnError=false
152-
mvn clean -Dmaven.clean.failOnError=false
151+
mvn clean -q -Dmaven.clean.failOnError=false
152+
mvn clean -q -Dmaven.clean.failOnError=false
153153
mvn clean;
154154
mvn install -DskipTests;
155155

@@ -185,14 +185,13 @@ git push -u origin "${BRANCH}"
185185
git push origin "${MVN_VERSION_RELEASE}"
186186

187187
# Cleanup
188-
mvn clean -Dmaven.clean.failOnError=false
189-
mvn clean -Dmaven.clean.failOnError=false
188+
mvn clean -q -Dmaven.clean.failOnError=false
189+
mvn clean -q -Dmaven.clean.failOnError=false
190190
mvn clean
191191

192192
# Set a new SNAPSHOT version
193193
echo "";
194194
echo "Setting the next snapshot version to: ${MVN_NEXT_SNAPSHOT_VERSION}"
195-
read -n 1 -srp "Press any key to continue (ctrl+c to cancel)"; printf "\n\n";
196195

197196

198197
# set maven version
@@ -230,17 +229,16 @@ git push --set-upstream origin "merge_main_into_develop_after_release_${MVN_VERS
230229
echo "Creating pull request to merge the merge-branch into develop"
231230
gh pr create -B develop --title "sync develop branch after release ${MVN_VERSION_RELEASE}" --body "Merge using merge commit rather than rebase"
232231
echo "It's ok to merge this PR later, so wait for the CI tests to finish."
233-
read -n 1 -srp "Press any key to continue (ctrl+c to cancel)"; printf "\n\n";
234232

235-
mvn clean -Dmaven.clean.failOnError=false
236-
mvn clean -Dmaven.clean.failOnError=false
233+
mvn clean -q -Dmaven.clean.failOnError=false
234+
mvn clean -q -Dmaven.clean.failOnError=false
237235

238236
git checkout develop
239-
mvn clean -Dmaven.clean.failOnError=false
240-
mvn clean -Dmaven.clean.failOnError=false
237+
mvn clean -q -Dmaven.clean.failOnError=false
238+
mvn clean -q -Dmaven.clean.failOnError=false
241239
git checkout main
242-
mvn clean -Dmaven.clean.failOnError=false
243-
mvn clean -Dmaven.clean.failOnError=false
240+
mvn clean -q -Dmaven.clean.failOnError=false
241+
mvn clean -q -Dmaven.clean.failOnError=false
244242

245243
echo "Build javadocs"
246244

@@ -259,7 +257,7 @@ mvn package -Passembly -DskipTests -Djapicmp.skip
259257
git checkout main
260258
git checkout -b "${RELEASE_NOTES_BRANCH}"
261259

262-
tar --no-xattrs --exclude ".*" -cvzf "site/static/javadoc/${MVN_VERSION_RELEASE}.tgz" -C target/site/apidocs .
260+
tar --no-xattrs --exclude ".*" -cvzf "site/static/javadoc/${MVN_VERSION_RELEASE}.tgz" -C target/reports/apidocs .
263261
cp -f "site/static/javadoc/${MVN_VERSION_RELEASE}.tgz" "site/static/javadoc/latest.tgz"
264262
git add --all
265263
git commit -s -a -m "javadocs for ${MVN_VERSION_RELEASE}"

scripts/templates/patch-release-notes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ For a complete overview, see [all issues fixed in ${MVN_VERSION_RELEASE}](https:
88

99
### Acknowledgements
1010

11-
This release was made possible by contributions from ???
11+
This release was made possible by contributions from ${LIST_OF_CONTRIBUTORS}.

0 commit comments

Comments
 (0)