Migrate to central-publishing-maven-plugin
and off oss-parent
.
#50
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Migrate to
central-publishing-maven-plugin
and offoss-parent
.I missed these files in cl/782079419 because I was looking for... maybe
maven-deploy-plugin
? I forget, but apparently I was looking for something that these projects don't declare as a plugin. (They haven't need to declare the plugin because they were inheriting it fromoss-parent
.)Then this seemed like a good time to finally migrate the rest of our projects off
oss-parent
. See previous changes like cl/350197931. I've made the same changes here.I've marginally improved upon both the CLs I mentioned before:
<groupId>org.apache.maven.plugins</groupId>
, since that is the default.<publishingServerId>central</publishingServerId>
, since that is the default.Also, I was careful not to copy
<failOnError>false</failOnError>
fromauto/value
andauto/factory
. We don't seem to use it in our other projects, and it wasn't part ofoss-parent
.Also, I omitted a
maven-javadoc-plugin
entry inguava_beta_checker
, which already configured that plugin.I could totally believe that some part of this CL will break a release somewhere. I'm not sure we'll notice until we try to publish a release. But that would be only a lateral move from where we likely are now, since we already can't publish a release until we perform the OSSRH->Central migration.
I could also totally believe that we could do things better here. Possible examples include:
maven-source-plugin
andmaven-javadoc-plugin
out of the release profile and into the main configuration (similar tomaven-javadoc-plugin
inguava_beta_checker
). Or, alternatively, remove them entirely. (But removing them might cause Maven to select whatever the latest release is, and that's not great. It might also use slightly different settings that we've chosen; I'm not sure.)sonatype-nexus-snapshots
configuration from projects that we don't publish snapshots for.RELNOTES=n/a