- Verify changelog.md
- Make sure pom.xml version is correctly updated
- Make sure SDK version is updated in the readme installation section
- Make sure SDK version is updated in examples
- Verify examples are in working condition
- Verify javadoc is compiled without errors
- Publish to Maven Central
- Create git tag
-
If you don't have a JIRA account, create it here.
-
If this is the first publishing and a repository in Maven Central for the project does not exist yet, create a new project ticket here. There you will need to fill a form with these fields:
- Summary:
Create a repository for Metastats Java SDK
(or something like that) - In description (not required) you may describe the project.
- Group Id:
cloud.metaapi.sdk
(it is important that this id matchesgroupId
inpom.xml
) - Project URL: https://metaapi.cloud
- SCM url: https://github.com/agiliumtrade-ai/metastats-java-sdk.git
- Already Synced to Central:
No
- Summary:
The status of the ticket (issue) will be Open
. It may take some time until the issue is Resolved
. Check comments of the issue. You may be asked to do something (e.g. to verify github account ownership).
-
If GnuPG is not installed on your computer, follow steps in the installation section. Note that on some systems the newer
gpg2
will be used. -
If you have not generated keys, follow steps in this section to generating a key pair. Note that in that section is described command
gpg --full-gen-key
instead ofgpg --gen-key
. You can use any of these commands, butgpg --full-gen-key
asks for more settings. It is important to remember passphrase (it will be used later). -
If you have not distributed public key, follow steps in the distributing section.
- Synchronization of your key between servers may take some time. You can also execute
gpg --keyserver hkp://keyserver.ubuntu.com --send-keys <your_key>
to send the key right to one of the servers which will be participated in the next operations.
- Synchronization of your key between servers may take some time. You can also execute
- Make sure that you have a file
%USER_HOME%/.m2/settings.xml
with contents as below. Instead ofyour-jira-id
write your JIRA username and instead ofyour-jira-pwd
write your JIRA password.
<settings>
<servers>
<server>
<id>ossrh</id>
<username>your-jira-id</username>
<password>your-jira-pwd</password>
</server>
</servers>
</settings>
- Go to the root of the project and execute
mvn clean deploy -P release
. This command can ask for a passphrase of the key that was generated earlier. - Wait until build successfully completed. From this point the project should be able to be found in Nexus Repository Manager and in Maven Central Repository Search.