{"action":"created","comment":{"url":"https://api.github.com/repos/cloudant/java-cloudant/pulls/comments/33675217","id":33675217,"diff_hunk":"@@ -87,3 +96,99 @@ jar.dependsOn generateClientPropertiesFile\n jar {\n     into \"META-INF\", { from generateClientPropertiesFile.clientPropsPath }\n }\n+\n+task sourcesJar(type: Jar, dependsOn: classes) {\n+    classifier = 'sources'\n+    sourceSets.all {\n+        into(name + \"/java\", { from allJava })\n+        into(name + \"/resources\", { from resources })\n+    }\n+}\n+\n+javadoc {\n+    exclude(\"**/com/cloudant/tests/**\",\n+            \"**/com/cloudant/test/**\",\n+            \"**/resources/**\")\n+    include(\"**/lightcouch/DocumentConflictException.java\",\n+            \"**/lightcouch/NoDocumentException.java\",\n+            \"**/lightcouch/CouchDbException.java\",\n+            \"**/client/**\")\n+}\n+\n+task javadocJar(type: Jar, dependsOn: javadoc) {\n+    classifier = 'javadoc'\n+    from javadoc.destinationDir\n+}\n+\n+artifacts {\n+    archives sourcesJar, javadocJar\n+}\n+\n+//load signing and repository parameters from system properties\n+['signing.keyId', 'signing.password', 'signing.secretKeyRingFile', 'ossrhUsername', 'ossrhPassword']\n+        .each { propName ->\n+    //set a property with the given name if the system property is set\n+    //if the system property is not set then set the property to null if it isn't a signing one\n+    if (System.properties.propName != null || !propName.startsWith(\"signing\")) {\n+        ext.(propName.toString()) = System.properties.propName\n+    }\n+}\n+\n+signing {\n+    //only apply signing when it is a release and is being published\n+    required {\n+        isReleaseVersion && gradle.taskGraph.hasTask(\"uploadArchives\")\n+    }\n+    //when signing, sign the archives\n+    sign configurations.archives\n+}\n+\n+uploadArchives {\n+    repositories {\n+        mavenDeployer {\n+\n+            //when publishing sign the pom\n+            beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }\n+\n+            repository(url: \"https://oss.sonatype.org/service/local/staging/deploy/maven2/\") {\n+                authentication(userName: ossrhUsername, password: ossrhPassword)\n+            }\n+\n+            snapshotRepository(url: \"https://oss.sonatype.org/content/repositories/snapshots/\") {\n+                authentication(userName: ossrhUsername, password: ossrhPassword)\n+            }\n+\n+            //augment the pom with additional information\n+            pom.project {\n+                packaging 'jar'\n+                name project.clientName\n+                description 'official Cloudant Client for Java'\n+                inceptionYear '2014'\n+                url 'http://www.cloudant.com'\n+                licenses {\n+                    license {\n+                        name 'The Apache Software License, Version 2.0'\n+                        url 'http://www.apache.org/licenses/LICENSE-2.0.txt'\n+                        distribution 'repo'\n+                    }\n+                }\n+                scm {\n+                    connection 'scm:git:git://github.com/cloudant/java-cloudant.git'\n+                    developerConnection 'scm:git:git@github.com/cloudant/java-cloudant.git'\n+                    url 'https://java-cloudant@github.com/cloudant/java-cloudant.git'\n+                }\n+                properties {\n+                    'project.build.sourceEncoding' 'UTF-8'\n+                }\n+                developers {\n+                    developer {\n+                        id 'IBMCloudant'\n+                        name 'IBMCloudant'\n+                        email 'github@cloudant.com'","path":"build.gradle","position":152,"original_position":152,"commit_id":"ba33efd6869feec67f5bb50efb5936fc632b8e99","original_commit_id":"ba33efd6869feec67f5bb50efb5936fc632b8e99","user":{"login":"rhyshort","id":1616727,"avatar_url":"https://avatars.githubusercontent.com/u/1616727?v=3","gravatar_id":"","url":"https://api.github.com/users/rhyshort","html_url":"https://github.com/rhyshort","followers_url":"https://api.github.com/users/rhyshort/followers","following_url":"https://api.github.com/users/rhyshort/following{/other_user}","gists_url":"https://api.github.com/users/rhyshort/gists{/gist_id}","starred_url":"https://api.github.com/users/rhyshort/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rhyshort/subscriptions","organizations_url":"https://api.github.com/users/rhyshort/orgs","repos_url":"https://api.github.com/users/rhyshort/repos","events_url":"https://api.github.com/users/rhyshort/events{/privacy}","received_events_url":"https://api.github.com/users/rhyshort/received_events","type":"User","site_admin":false},"body":"this should be support@cloudant.com","created_at":"2015-07-01T12:59:36Z","updated_at":"2015-07-01T12:59:36Z","html_url":"https://github.com/cloudant/java-cloudant/pull/61#discussion_r33675217","pull_request_url":"https://api.github.com/repos/cloudant/java-cloudant/pulls/61","_links":{"self":{"href":"https://api.github.com/repos/cloudant/java-cloudant/pulls/comments/33675217"},"html":{"href":"https://github.com/cloudant/java-cloudant/pull/61#discussion_r33675217"},"pull_request":{"href":"https://api.github.com/repos/cloudant/java-cloudant/pulls/61"}}},"pull_request":{"url":"https://api.github.com/repos/cloudant/java-cloudant/pulls/61","id":38977824,"html_url":"https://github.com/cloudant/java-cloudant/pull/61","diff_url":"https://github.com/cloudant/java-cloudant/pull/61.diff","patch_url":"https://github.com/cloudant/java-cloudant/pull/61.patch","issue_url":"https://api.github.com/repos/cloudant/java-cloudant/issues/61","number":61,"state":"open","locked":false,"title":"48537 release process","user":{"login":"ricellis","id":10698320,"avatar_url":"https://avatars.githubusercontent.com/u/10698320?v=3","gravatar_id":"","url":"https://api.github.com/users/ricellis","html_url":"https://github.com/ricellis","followers_url":"https://api.github.com/users/ricellis/followers","following_url":"https://api.github.com/users/ricellis/following{/other_user}","gists_url":"https://api.github.com/users/ricellis/gists{/gist_id}","starred_url":"https://api.github.com/users/ricellis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ricellis/subscriptions","organizations_url":"https://api.github.com/users/ricellis/orgs","repos_url":"https://api.github.com/users/ricellis/repos","events_url":"https://api.github.com/users/ricellis/events{/privacy}","received_events_url":"https://api.github.com/users/ricellis/received_events","type":"User","site_admin":false},"body":"*What*\r\nProvide a release process for java-cloudant\r\n\r\n*Why*\r\nThere are some bug fixes that need releasing and a simplified and more automated approach to the release will streamline this and future releases.\r\n\r\n*How*\r\n* Add gradle for generating release artifacts:\r\n    * client jar\r\n    * source jar\r\n    * javadoc jar\r\n    * maven pom\r\n* Add gradle for signing these artifacts\r\n* Add gradle to upload artifacts to sonatype repositories\r\n\r\n*Testing*\r\nLocal testing of gradle tasks.\r\n\r\n@rhyshort \r\n@mikerhodes ","created_at":"2015-07-01T12:42:54Z","updated_at":"2015-07-01T12:59:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9c5d9eaab84c47e33d4a3af325fa305997c498b1","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/cloudant/java-cloudant/pulls/61/commits","review_comments_url":"https://api.github.com/repos/cloudant/java-cloudant/pulls/61/comments","review_comment_url":"https://api.github.com/repos/cloudant/java-cloudant/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cloudant/java-cloudant/issues/61/comments","statuses_url":"https://api.github.com/repos/cloudant/java-cloudant/statuses/ba33efd6869feec67f5bb50efb5936fc632b8e99","head":{"label":"cloudant:48537-release-process","ref":"48537-release-process","sha":"ba33efd6869feec67f5bb50efb5936fc632b8e99","user":{"login":"cloudant","id":44642,"avatar_url":"https://avatars.githubusercontent.com/u/44642?v=3","gravatar_id":"","url":"https://api.github.com/users/cloudant","html_url":"https://github.com/cloudant","followers_url":"https://api.github.com/users/cloudant/followers","following_url":"https://api.github.com/users/cloudant/following{/other_user}","gists_url":"https://api.github.com/users/cloudant/gists{/gist_id}","starred_url":"https://api.github.com/users/cloudant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cloudant/subscriptions","organizations_url":"https://api.github.com/users/cloudant/orgs","repos_url":"https://api.github.com/users/cloudant/repos","events_url":"https://api.github.com/users/cloudant/events{/privacy}","received_events_url":"https://api.github.com/users/cloudant/received_events","type":"Organization","site_admin":false},"repo":{"id":22873328,"name":"java-cloudant","full_name":"cloudant/java-cloudant","owner":{"login":"cloudant","id":44642,"avatar_url":"https://avatars.githubusercontent.com/u/44642?v=3","gravatar_id":"","url":"https://api.github.com/users/cloudant","html_url":"https://github.com/cloudant","followers_url":"https://api.github.com/users/cloudant/followers","following_url":"https://api.github.com/users/cloudant/following{/other_user}","gists_url":"https://api.github.com/users/cloudant/gists{/gist_id}","starred_url":"https://api.github.com/users/cloudant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cloudant/subscriptions","organizations_url":"https://api.github.com/users/cloudant/orgs","repos_url":"https://api.github.com/users/cloudant/repos","events_url":"https://api.github.com/users/cloudant/events{/privacy}","received_events_url":"https://api.github.com/users/cloudant/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cloudant/java-cloudant","description":"A Java client for Cloudant","fork":false,"url":"https://api.github.com/repos/cloudant/java-cloudant","forks_url":"https://api.github.com/repos/cloudant/java-cloudant/forks","keys_url":"https://api.github.com/repos/cloudant/java-cloudant/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cloudant/java-cloudant/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cloudant/java-cloudant/teams","hooks_url":"https://api.github.com/repos/cloudant/java-cloudant/hooks","issue_events_url":"https://api.github.com/repos/cloudant/java-cloudant/issues/events{/number}","events_url":"https://api.github.com/repos/cloudant/java-cloudant/events","assignees_url":"https://api.github.com/repos/cloudant/java-cloudant/assignees{/user}","branches_url":"https://api.github.com/repos/cloudant/java-cloudant/branches{/branch}","tags_url":"https://api.github.com/repos/cloudant/java-cloudant/tags","blobs_url":"https://api.github.com/repos/cloudant/java-cloudant/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cloudant/java-cloudant/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cloudant/java-cloudant/git/refs{/sha}","trees_url":"https://api.github.com/repos/cloudant/java-cloudant/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cloudant/java-cloudant/statuses/{sha}","languages_url":"https://api.github.com/repos/cloudant/java-cloudant/languages","stargazers_url":"https://api.github.com/repos/cloudant/java-cloudant/stargazers","contributors_url":"https://api.github.com/repos/cloudant/java-cloudant/contributors","subscribers_url":"https://api.github.com/repos/cloudant/java-cloudant/subscribers","subscription_url":"https://api.github.com/repos/cloudant/java-cloudant/subscription","commits_url":"https://api.github.com/repos/cloudant/java-cloudant/commits{/sha}","git_commits_url":"https://api.github.com/repos/cloudant/java-cloudant/git/commits{/sha}","comments_url":"https://api.github.com/repos/cloudant/java-cloudant/comments{/number}","issue_comment_url":"https://api.github.com/repos/cloudant/java-cloudant/issues/comments{/number}","contents_url":"https://api.github.com/repos/cloudant/java-cloudant/contents/{+path}","compare_url":"https://api.github.com/repos/cloudant/java-cloudant/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cloudant/java-cloudant/merges","archive_url":"https://api.github.com/repos/cloudant/java-cloudant/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cloudant/java-cloudant/downloads","issues_url":"https://api.github.com/repos/cloudant/java-cloudant/issues{/number}","pulls_url":"https://api.github.com/repos/cloudant/java-cloudant/pulls{/number}","milestones_url":"https://api.github.com/repos/cloudant/java-cloudant/milestones{/number}","notifications_url":"https://api.github.com/repos/cloudant/java-cloudant/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cloudant/java-cloudant/labels{/name}","releases_url":"https://api.github.com/repos/cloudant/java-cloudant/releases{/id}","created_at":"2014-08-12T10:19:56Z","updated_at":"2015-07-01T08:02:50Z","pushed_at":"2015-07-01T12:42:55Z","git_url":"git://github.com/cloudant/java-cloudant.git","ssh_url":"git@github.com:cloudant/java-cloudant.git","clone_url":"https://github.com/cloudant/java-cloudant.git","svn_url":"https://github.com/cloudant/java-cloudant","homepage":null,"size":3295,"stargazers_count":9,"watchers_count":9,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":10,"mirror_url":null,"open_issues_count":16,"forks":10,"open_issues":16,"watchers":9,"default_branch":"master"}},"base":{"label":"cloudant:master","ref":"master","sha":"5ff5e4f7e03b6c4a795affd4e5a3a6a14828d78f","user":{"login":"cloudant","id":44642,"avatar_url":"https://avatars.githubusercontent.com/u/44642?v=3","gravatar_id":"","url":"https://api.github.com/users/cloudant","html_url":"https://github.com/cloudant","followers_url":"https://api.github.com/users/cloudant/followers","following_url":"https://api.github.com/users/cloudant/following{/other_user}","gists_url":"https://api.github.com/users/cloudant/gists{/gist_id}","starred_url":"https://api.github.com/users/cloudant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cloudant/subscriptions","organizations_url":"https://api.github.com/users/cloudant/orgs","repos_url":"https://api.github.com/users/cloudant/repos","events_url":"https://api.github.com/users/cloudant/events{/privacy}","received_events_url":"https://api.github.com/users/cloudant/received_events","type":"Organization","site_admin":false},"repo":{"id":22873328,"name":"java-cloudant","full_name":"cloudant/java-cloudant","owner":{"login":"cloudant","id":44642,"avatar_url":"https://avatars.githubusercontent.com/u/44642?v=3","gravatar_id":"","url":"https://api.github.com/users/cloudant","html_url":"https://github.com/cloudant","followers_url":"https://api.github.com/users/cloudant/followers","following_url":"https://api.github.com/users/cloudant/following{/other_user}","gists_url":"https://api.github.com/users/cloudant/gists{/gist_id}","starred_url":"https://api.github.com/users/cloudant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cloudant/subscriptions","organizations_url":"https://api.github.com/users/cloudant/orgs","repos_url":"https://api.github.com/users/cloudant/repos","events_url":"https://api.github.com/users/cloudant/events{/privacy}","received_events_url":"https://api.github.com/users/cloudant/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cloudant/java-cloudant","description":"A Java client for Cloudant","fork":false,"url":"https://api.github.com/repos/cloudant/java-cloudant","forks_url":"https://api.github.com/repos/cloudant/java-cloudant/forks","keys_url":"https://api.github.com/repos/cloudant/java-cloudant/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cloudant/java-cloudant/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cloudant/java-cloudant/teams","hooks_url":"https://api.github.com/repos/cloudant/java-cloudant/hooks","issue_events_url":"https://api.github.com/repos/cloudant/java-cloudant/issues/events{/number}","events_url":"https://api.github.com/repos/cloudant/java-cloudant/events","assignees_url":"https://api.github.com/repos/cloudant/java-cloudant/assignees{/user}","branches_url":"https://api.github.com/repos/cloudant/java-cloudant/branches{/branch}","tags_url":"https://api.github.com/repos/cloudant/java-cloudant/tags","blobs_url":"https://api.github.com/repos/cloudant/java-cloudant/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cloudant/java-cloudant/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cloudant/java-cloudant/git/refs{/sha}","trees_url":"https://api.github.com/repos/cloudant/java-cloudant/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cloudant/java-cloudant/statuses/{sha}","languages_url":"https://api.github.com/repos/cloudant/java-cloudant/languages","stargazers_url":"https://api.github.com/repos/cloudant/java-cloudant/stargazers","contributors_url":"https://api.github.com/repos/cloudant/java-cloudant/contributors","subscribers_url":"https://api.github.com/repos/cloudant/java-cloudant/subscribers","subscription_url":"https://api.github.com/repos/cloudant/java-cloudant/subscription","commits_url":"https://api.github.com/repos/cloudant/java-cloudant/commits{/sha}","git_commits_url":"https://api.github.com/repos/cloudant/java-cloudant/git/commits{/sha}","comments_url":"https://api.github.com/repos/cloudant/java-cloudant/comments{/number}","issue_comment_url":"https://api.github.com/repos/cloudant/java-cloudant/issues/comments{/number}","contents_url":"https://api.github.com/repos/cloudant/java-cloudant/contents/{+path}","compare_url":"https://api.github.com/repos/cloudant/java-cloudant/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cloudant/java-cloudant/merges","archive_url":"https://api.github.com/repos/cloudant/java-cloudant/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cloudant/java-cloudant/downloads","issues_url":"https://api.github.com/repos/cloudant/java-cloudant/issues{/number}","pulls_url":"https://api.github.com/repos/cloudant/java-cloudant/pulls{/number}","milestones_url":"https://api.github.com/repos/cloudant/java-cloudant/milestones{/number}","notifications_url":"https://api.github.com/repos/cloudant/java-cloudant/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cloudant/java-cloudant/labels{/name}","releases_url":"https://api.github.com/repos/cloudant/java-cloudant/releases{/id}","created_at":"2014-08-12T10:19:56Z","updated_at":"2015-07-01T08:02:50Z","pushed_at":"2015-07-01T12:42:55Z","git_url":"git://github.com/cloudant/java-cloudant.git","ssh_url":"git@github.com:cloudant/java-cloudant.git","clone_url":"https://github.com/cloudant/java-cloudant.git","svn_url":"https://github.com/cloudant/java-cloudant","homepage":null,"size":3295,"stargazers_count":9,"watchers_count":9,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":10,"mirror_url":null,"open_issues_count":16,"forks":10,"open_issues":16,"watchers":9,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cloudant/java-cloudant/pulls/61"},"html":{"href":"https://github.com/cloudant/java-cloudant/pull/61"},"issue":{"href":"https://api.github.com/repos/cloudant/java-cloudant/issues/61"},"comments":{"href":"https://api.github.com/repos/cloudant/java-cloudant/issues/61/comments"},"review_comments":{"href":"https://api.github.com/repos/cloudant/java-cloudant/pulls/61/comments"},"review_comment":{"href":"https://api.github.com/repos/cloudant/java-cloudant/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cloudant/java-cloudant/pulls/61/commits"},"statuses":{"href":"https://api.github.com/repos/cloudant/java-cloudant/statuses/ba33efd6869feec67f5bb50efb5936fc632b8e99"}}}}