Move configuration out of sonatype-oss-release
to enable it by default (except for maven-gpg-plugin
), and update related configuration as necessary.
#503
+0
−0
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.
Move configuration out of
sonatype-oss-release
to enable it by default (except formaven-gpg-plugin
), and update related configuration as necessary....as contemplated in cl/788538710 and elsewhere.
(Background: We carried much or all of the
sonatype-oss-release
configuration over from the oldoss-parent
in changes like cl/492304151.)This (I hope) accomplished two classes of goals:
central-publishing-maven-plugin
by default, we enable it even for snapshot deployment. Advantages:maven-deploy-plugin
. (Compare cl/805973207 for Truth.) And that allows us to remove the configuration of https://central.sonatype.com/repository/maven-snapshots, which isn't needed bycentral-publishing-maven-plugin
but which has been required bymaven-deploy-plugin
, which has no default. (Compare cl/805870501 for Truth.)server-id
tocentral
, notsonatype-central-staging
, sincecentral-publishing-maven-plugin
uses a different ID than we hadmaven-deploy-plugin
set up to use. (Compare cl/807814773 for Truth.) Sincecentral
is also what is used for non-snapshot releases, we could view this is a baby step toward performing non-snapshot releases on GitHub CI someday.dependencyManagement
or other explicit versions.) Advantages and fallout:--add-exports
configuration conditional.mvn source:jar javadoc:jar deploy
). With this CL's changes, Maven would try to build Javadoc and sources twice—once for the command-line request and once for the new configuration we have. The fix for that is to stop making the explicit request. (Compare cl/807772725 for Truth, somewhat cl/572327204 for Guava, and maybe sorta kinda cl/536746714 for jimfs.)[*] "Enabling" may or may not be the right word. The
central-publishing-maven-plugin
plugin still doesn't run unless someone actually runsmvn deploy
. The only difference in output that that plugin change causes for a typical build is this, which I assume is related to its usage of<extensions>true</extensions>
:I left
maven-gpg-plugin
alone because we don't want to request that users enter their signing keys during snapshot deployment, let alone during normal builds. Another option would be to move it out of the profile but to disable it by default, with the profile becoming responsible for undoing the disablement. (Or we could stop using a profile entirely in favor of passing a flag to set a property to do the same.) That would theoretically be nice because it helps with the "same version number" goal discussed above. But given that I never recall having runmaven-gpg-plugin
outside a release setting, I doubt that that matters in practice.(If we're lucky, this CL's changes to Auto specifically might be enough to deal with google/auto#1965.)
Plus: I removed some redundant declarations of
<groupId>org.apache.maven.plugins</groupId>
, which is the default for plugins. (We had been including it inconsistently.) Compare cl/793718324.Finally: In Guava, I removed a "Guava Documentation Site" entry. This was added back in cl/29254221, but I can't immediately figure out why, and I see no other references to its
guava-site
in either the main orgh-pages
branch of our repo, nor anywhere internal to Google. I'm hoping that it's at least become unnecessary in the past decade-plus. (The changes in this CL at least have no effect on the jars that we produce as output.)Bonus Maven curiosity: I noticed that we have been getting a Javadoc warning:
This appears to be a known issue.
RELNOTES=n/a