Skip to content

build publish maven plugin from CI to sonatype#65

Merged
octonato merged 38 commits intorgc/feature-branch-maven-javafrom
mvn-publish-to-sonatype
Jun 25, 2021
Merged

build publish maven plugin from CI to sonatype#65
octonato merged 38 commits intorgc/feature-branch-maven-javafrom
mvn-publish-to-sonatype

Conversation

@raboof
Copy link
Copy Markdown
Contributor

@raboof raboof commented Jun 24, 2021

towards #27

@raboof raboof force-pushed the mvn-publish-to-sonatype branch from 7982bd2 to cb284c5 Compare June 24, 2021 13:17
@raboof raboof requested a review from octonato June 24, 2021 14:45
Comment thread maven-java/pom.xml
<configuration>
<serverId>ossrh</serverId>
<nexusUrl>https://s01.oss.sonatype.org</nexusUrl>
<autoReleaseAfterClose>false</autoReleaseAfterClose>
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we could set this to 'true' eventually, but for the first release perhaps let's give ourselves a chance to check the artifacts?

@raboof raboof marked this pull request as ready for review June 24, 2021 14:48
Copy link
Copy Markdown
Member

@octonato octonato left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Comment thread .circleci/config.yml
command: |
cd maven-java
echo $PGP_SECRET | base64 -d | gpg --import --batch
# It seems ~/.m2 is not actually restored from the cache?
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to investigate it further. We may be doing something wrong.

When I was bringing the maven code here, I was surprised to see that I have to call sbt publishM2 more then once in the same CI build. I was planning to call only once and reuse the local artifacts on the next jobs. Didn't work as expected.

@octonato octonato merged commit 29a4297 into rgc/feature-branch-maven-java Jun 25, 2021
@octonato octonato deleted the mvn-publish-to-sonatype branch June 25, 2021 13:04
@octonato
Copy link
Copy Markdown
Member

hmm, I could have squashed before merging. 🤦

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants