Revert "Publish source and javadoc"
This reverts commit e5c547f4d59f54b14da0786d33394eece9de70f9.
This commit is contained in:
parent
e5c547f4d5
commit
13eef21a3a
15
.github/workflows/maven-publish.yml
vendored
15
.github/workflows/maven-publish.yml
vendored
@ -103,7 +103,7 @@ jobs:
|
|||||||
then
|
then
|
||||||
echo "Version $VERSION is snapshot version, proceeding with upload to local-nexus snapshots"
|
echo "Version $VERSION is snapshot version, proceeding with upload to local-nexus snapshots"
|
||||||
PACKAGING=$(mvn help:evaluate -Dexpression="project.packaging" -q -DforceStdout)
|
PACKAGING=$(mvn help:evaluate -Dexpression="project.packaging" -q -DforceStdout)
|
||||||
echo "Uploading artifact(s) for $GROUP_ID:$ARTIFACT_ID:$VERSION"
|
echo "Uploading artifact for $GROUP_ID:$ARTIFACT_ID:$VERSION"
|
||||||
if [ $PACKAGING == "pom" ];
|
if [ $PACKAGING == "pom" ];
|
||||||
then
|
then
|
||||||
echo "Packaging is pom, uploading pom.xml"
|
echo "Packaging is pom, uploading pom.xml"
|
||||||
@ -113,17 +113,12 @@ jobs:
|
|||||||
-Dversion=$VERSION -DrepositoryId=local-nexus \
|
-Dversion=$VERSION -DrepositoryId=local-nexus \
|
||||||
-Dfile=pom.xml
|
-Dfile=pom.xml
|
||||||
else
|
else
|
||||||
echo "Packaging is $PACKAGING, building sources and javadoc jars"
|
echo "Packaging is $PACKAGING, uploading target/$ARTIFACT_ID-$VERSION.$PACKAGING"
|
||||||
mvn -B -DskipTests=true source:jar javadoc:jar
|
|
||||||
echo "Deploying main, sources and javadoc to Nexus snapshots"
|
|
||||||
mvn deploy:deploy-file \
|
mvn deploy:deploy-file \
|
||||||
-Durl=https://devops.pravilanovait.hr/nexus/repository/maven-snapshots \
|
-Durl=https://devops.pravilanovait.hr/nexus/repository/maven-snapshots \
|
||||||
-DrepositoryId=local-nexus \
|
-Dpackaging=$PACKAGING -DgroupId=$GROUP_ID -DartifactId=$ARTIFACT_ID \
|
||||||
-DgroupId=$GROUP_ID -DartifactId=$ARTIFACT_ID -Dversion=$VERSION \
|
-Dversion=$VERSION -DrepositoryId=local-nexus \
|
||||||
-Dpackaging=$PACKAGING -DpomFile=pom.xml -DgeneratePom=false \
|
-Dfile=target/$FINAL_NAME.$PACKAGING -DpomFile=pom.xml -DgeneratePom=false
|
||||||
-Dfiles=target/$FINAL_NAME.$PACKAGING,target/${ARTIFACT_ID}-${VERSION}-sources.jar,target/${ARTIFACT_ID}-${VERSION}-javadoc.jar \
|
|
||||||
-Dclassifiers=,sources,javadoc \
|
|
||||||
-Dtypes=${PACKAGING},jar,jar
|
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
echo "Version $VERSION is not snapshot version, not uploading to local-nexus snapshots"
|
echo "Version $VERSION is not snapshot version, not uploading to local-nexus snapshots"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user