Skip to content

Commit

Permalink
Use tokens when publishing to OSSRH
Browse files Browse the repository at this point in the history
  • Loading branch information
fmck3516 committed Oct 19, 2024
1 parent eb5f07d commit a39feb6
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ private void applyInternal(Project project, OssrhPublishPluginExtension extensio
repo.setUrl("https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/");
}
repo.credentials(credentials -> {
credentials.setUsername(System.getenv("OSSRH_USERNAME"));
credentials.setPassword(System.getenv("OSSRH_PASSWORD"));
credentials.setUsername(System.getenv("OSSRH_TOKEN"));
credentials.setPassword(System.getenv("OSSRH_TOKEN_SECRET"));
});
});

Expand Down

0 comments on commit a39feb6

Please sign in to comment.