Skip to content

Commit 1eb88b3

Browse files
committed
Update to new maven deployment (fixup)
See #887 for more details
1 parent cb17527 commit 1eb88b3

File tree

1 file changed

+20
-13
lines changed

1 file changed

+20
-13
lines changed

releng/release-eclipse.sh

Lines changed: 20 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ $ECHO $SSH "cd $DOWNLOAD_MOUNT && \
3737
mv p2-repository/* . && \
3838
rm -r p2-repository p2-repository.zip"
3939

40+
# Stop here because of https://github.com/eclipse-lsp4j/lsp4j/issues/887#issuecomment-3874528594 on EF Jenkins
41+
# The below can be run semi-manually on dev machine to deploy what we built
42+
exit 0
43+
4044
### GPG Sign and Deploy to Maven Central
4145
# - this wget/unzip is not $ECHO so that the find/loop does something
4246
wget -q $ARTIFACTS_REPO_TARGET/maven-repository/*zip*/maven-repository.zip
@@ -46,24 +50,27 @@ do
4650
base="${i%.*}"
4751
$ECHO cp releng/gpgparameters.pom gpgparameters.pom
4852
$ECHO mvn -f gpgparameters.pom \
49-
org.apache.maven.plugins:maven-gpg-plugin:3.2.8:sign \
50-
-DpomFile=${base}.pom \
51-
-Dfile=${base}.jar \
52-
-Dsources=${base}-sources.jar \
53-
-Djavadoc=${base}-javadoc.jar
54-
$ECHO mvn -f gpgparameters.pom \
55-
deploy:deploy-file \
53+
org.apache.maven.plugins:maven-gpg-plugin:3.2.8:sign-and-deploy-file \
5654
-DpomFile=${base}.pom \
5755
-Dfile=${base}.jar \
58-
-Dsources=${base}-sources.jar \
59-
-Djavadoc=${base}-javadoc.jar \
60-
-Dfiles=${base}.jar.asc,${base}-sources.jar.asc,${base}-javadoc.jar.asc \
61-
-Dclassifiers=,sources,javadoc \
62-
-Dtypes=jar,jar,jar \
56+
-Dfiles=${base}-sources.jar,${base}-javadoc.jar \
57+
-Dclassifiers=sources,javadoc \
58+
-Dtypes=jar,jar \
6359
-DrepositoryId=central \
64-
-Durl=https://central.sonatype.com/repository/maven-releases
60+
-Durl=https://ossrh-staging-api.central.sonatype.com/service/local/staging/deploy/maven2/
6561
done
6662

63+
# After upload, automatically deploy https://central.sonatype.org/publish/publish-portal-ossrh-staging-api/
64+
# We can't get username/password on EF Jenkins here because it is maven encrypted
65+
CENTRAL_USER=$(echo username)
66+
CENTRAL_PASS=$(echo password)
67+
68+
wget --method=POST \
69+
--user="$CENTRAL_USER" \
70+
--password="$CENTRAL_PASS" \
71+
--header="Content-Length: 0" \
72+
"https://ossrh-staging-api.central.sonatype.com/manual/upload/defaultRepository/org.eclipse.lsp4j"
73+
6774
if [ "$DRY_RUN" == "false" ]; then
6875
echo Release uploaded to "https://$DOWNLOAD"
6976
else

0 commit comments

Comments
 (0)