-
-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
944 additions
and
965 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# Maven-Central Reminders | ||
|
||
Cheat-sheets for me when setting up a new development environment | ||
|
||
## GPG Sign Key | ||
``` bash | ||
gpg --list-keys | ||
# if key absent, then generate one with | ||
gpg --gen-key | ||
# publish public key to one of supported servers | ||
export GPG_PUB_KEY=(replace with "pub" key) | ||
gpg --keyserver http://pgp.mit.edu:11371/ --send-keys $GPG_PUB_KEY | ||
gpg --keyserver http://keyserver.ubuntu.com:11371/ --send-keys $GPG_PUB_KEY | ||
gpg --keyserver https://keys.openpgp.org/ --send-keys $GPG_PUB_KEY | ||
``` | ||
|
||
|
||
## ~/.m2/settings.xml | ||
``` xml | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd"> | ||
<servers> | ||
<server> | ||
<!-- OSSRH Jira account --> | ||
<id>ossrh</id> | ||
<username>ch4mpy</username> | ||
<password>${env.OSSRH_PWD}</password><!-- password retrieved from environment variable --> | ||
</server> | ||
</servers> | ||
|
||
<profiles> | ||
<profile> | ||
<id>ossrh</id> | ||
<activation> | ||
<activeByDefault>true</activeByDefault> | ||
</activation> | ||
<properties> | ||
<gpg.executable>gpg</gpg.executable> | ||
<gpg.passphrase>${env.GPG_PWD}</gpg.passphrase><!-- password retrieved from environment variable --> | ||
</properties> | ||
</profile> | ||
</profiles> | ||
</settings> | ||
``` | ||
|
||
Add-opens for releasing with JDK 17: | ||
`export JDK_JAVA_OPTIONS='--add-opens java.base/java.util=ALL-UNNAMED --add-opens java.base/java.lang.reflect=ALL-UNNAMED --add-opens java.base/java.text=ALL-UNNAMED --add-opens java.desktop/java.awt.font=ALL-UNNAMED'` |
Oops, something went wrong.