{"action":"created","issue":{"url":"https://api.github.com/repos/threema-ch/threema-msgapi-sdk-java/issues/7","labels_url":"https://api.github.com/repos/threema-ch/threema-msgapi-sdk-java/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/threema-ch/threema-msgapi-sdk-java/issues/7/comments","events_url":"https://api.github.com/repos/threema-ch/threema-msgapi-sdk-java/issues/7/events","html_url":"https://github.com/threema-ch/threema-msgapi-sdk-java/pull/7","id":65419422,"number":7,"title":"Plugins and some config to release to maven central","user":{"login":"micwin","id":368101,"avatar_url":"https://avatars.githubusercontent.com/u/368101?v=3","gravatar_id":"","url":"https://api.github.com/users/micwin","html_url":"https://github.com/micwin","followers_url":"https://api.github.com/users/micwin/followers","following_url":"https://api.github.com/users/micwin/following{/other_user}","gists_url":"https://api.github.com/users/micwin/gists{/gist_id}","starred_url":"https://api.github.com/users/micwin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/micwin/subscriptions","organizations_url":"https://api.github.com/users/micwin/orgs","repos_url":"https://api.github.com/users/micwin/repos","events_url":"https://api.github.com/users/micwin/events{/privacy}","received_events_url":"https://api.github.com/users/micwin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-31T10:28:36Z","updated_at":"2015-04-04T07:03:28Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/threema-ch/threema-msgapi-sdk-java/pulls/7","html_url":"https://github.com/threema-ch/threema-msgapi-sdk-java/pull/7","diff_url":"https://github.com/threema-ch/threema-msgapi-sdk-java/pull/7.diff","patch_url":"https://github.com/threema-ch/threema-msgapi-sdk-java/pull/7.patch"},"body":"Releasing to maven central has some advantages:\r\n\r\n- developers who want to use your API donnot have to download and build all the sources\r\n- you can establish a proper change nmanagement and release cycle (raising a version in a doc is no proper change management)\r\n\r\nUnfortunately, it's way complicated the first time to get things up and running.  On a high level the way is as follows:\r\n\r\n- publish to a snapshot repository at sonatype oss nexus\r\n- review files\r\n- publish a release (no -SNAPSHOT) to a release repository at sonatype oss nexus\r\n- review those files too\r\n- close the release repository, transfer to maven normally happens at night.\r\n\r\n- review the results on maven central\r\n\r\nFor each artifact, you need:\r\n\r\n- the jar with compiled stuff\r\n- the -sources file generated with \r\n> mvn sources:jar\r\n\r\n- the -javadoc file generated with \r\n> mvn javadoc:jar\r\n\r\n- a checksum file\r\n\r\nWhat do you still need (and I cant do that foor you):\r\n\r\n- a public / private gpg key to sign jars\r\n- an account at sonatype oss  nexus\r\n\r\nThen, review the html pages I inserted as comments on top of the pom.\r\n\r\nWhen everything is set up once, things happen automatically most way.\r\n\r\nFeel free to ask."},"comment":{"url":"https://api.github.com/repos/threema-ch/threema-msgapi-sdk-java/issues/comments/89514504","html_url":"https://github.com/threema-ch/threema-msgapi-sdk-java/pull/7#issuecomment-89514504","issue_url":"https://api.github.com/repos/threema-ch/threema-msgapi-sdk-java/issues/7","id":89514504,"user":{"login":"m007","id":1150332,"avatar_url":"https://avatars.githubusercontent.com/u/1150332?v=3","gravatar_id":"","url":"https://api.github.com/users/m007","html_url":"https://github.com/m007","followers_url":"https://api.github.com/users/m007/followers","following_url":"https://api.github.com/users/m007/following{/other_user}","gists_url":"https://api.github.com/users/m007/gists{/gist_id}","starred_url":"https://api.github.com/users/m007/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/m007/subscriptions","organizations_url":"https://api.github.com/users/m007/orgs","repos_url":"https://api.github.com/users/m007/repos","events_url":"https://api.github.com/users/m007/events{/privacy}","received_events_url":"https://api.github.com/users/m007/received_events","type":"User","site_admin":false},"created_at":"2015-04-04T07:03:28Z","updated_at":"2015-04-04T07:03:28Z","body":":+1: "}}