{"action":"created","comment":{"url":"https://api.github.com/repos/apache/flink-web/pulls/comments/210336947","pull_request_review_id":146530409,"id":210336947,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxMDMzNjk0Nw==","diff_hunk":"@@ -0,0 +1,226 @@\n+#!/bin/bash\n+\n+################################################################################\n+#  Licensed to the Apache Software Foundation (ASF) under one\n+#  or more contributor license agreements.  See the NOTICE file\n+#  distributed with this work for additional information\n+#  regarding copyright ownership.  The ASF licenses this file\n+#  to you under the Apache License, Version 2.0 (the\n+#  \"License\"); you may not use this file except in compliance\n+#  with the License.  You may obtain a copy of the License at\n+#\n+#      http://www.apache.org/licenses/LICENSE-2.0\n+#\n+#  Unless required by applicable law or agreed to in writing, software\n+#  distributed under the License is distributed on an \"AS IS\" BASIS,\n+#  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+#  See the License for the specific language governing permissions and\n+# limitations under the License.\n+################################################################################\n+\n+declare -r TRUE=0\n+declare -r FALSE=1\n+\n+# takes a string and returns true if it seems to represent \"yes\"\n+function isYes() {\n+  local x=$1\n+  [ $x = \"y\" -o $x = \"Y\" -o $x = \"yes\" ] && echo $TRUE; return\n+  echo $FALSE\n+}\n+\n+function mkDir() {\n+  local x=$1\n+  echo ${x// /-} | tr '[:upper:]' '[:lower:]'\n+}\n+\n+function mkPackage() {\n+  local x=$1\n+  echo ${x//./\\/}\n+}\n+\n+defaultProjectName=\"quickstart\"\n+defaultOrganization=\"org.myorg.quickstart\"\n+defaultVersion=\"0.1-SNAPSHOT\"\n+defaultScalaBinaryVersion=\"2.11\"\n+defaultFlinkVersion=\"1.6-SNAPSHOT\"\n+\n+echo \"This script creates a Flink project using Java and Gradle.\"\n+\n+while [ $TRUE ]; do\n+\n+  echo \"\"\n+  read -p \"Project name ($defaultProjectName): \" projectName\n+  projectName=${projectName:-$defaultProjectName}\n+  read -p \"Organization ($defaultOrganization): \" organization\n+  organization=${organization:-$defaultOrganization}\n+  read -p \"Version ($defaultVersion): \" version\n+  version=${version:-$defaultVersion}\n+  read -p \"Scala version ($defaultScalaBinaryVersion): \" scalaBinaryVersion\n+  scalaBinaryVersion=${scalaBinaryVersion:-$defaultScalaBinaryVersion}\n+  read -p \"Flink version ($defaultFlinkVersion): \" flinkVersion\n+  flinkVersion=${flinkVersion:-$defaultFlinkVersion}\n+\n+  echo \"\"\n+  echo \"-----------------------------------------------\"\n+  echo \"Project Name: ${projectName}\"\n+  echo \"Organization: ${organization}\"\n+  echo \"Version: ${version}\"\n+  echo \"Scala binary version: ${scalaBinaryVersion}\"\n+  echo \"Flink version: ${flinkVersion}\"\n+  echo \"-----------------------------------------------\"\n+  read -p \"Create Project? (Y/n): \" createProject\n+  createProject=${createProject:-y}\n+\n+  [ \"$(isYes \"${createProject}\")\" = \"$TRUE\" ] && break\n+\n+done\n+\n+directoryName=$(mkDir \"${projectName}\")\n+\n+echo \"Creating Flink project under ${directoryName}\"\n+\n+mkdir -p ${directoryName}\n+cd ${directoryName}\n+\n+# Create the README file\n+\n+cat > README <<EOF\n+A Flink application project using Java and Gradle.\n+\n+To package your job for submission to Flink, use: 'gradle shadowJar'","path":"q/gradle-quickstart.sh","position":90,"original_position":90,"commit_id":"81e7c42cb7e81fc615f7aa343b023e6a6446034c","original_commit_id":"81e7c42cb7e81fc615f7aa343b023e6a6446034c","user":{"login":"NicoK","id":213026,"node_id":"MDQ6VXNlcjIxMzAyNg==","avatar_url":"https://avatars1.githubusercontent.com/u/213026?v=4","gravatar_id":"","url":"https://api.github.com/users/NicoK","html_url":"https://github.com/NicoK","followers_url":"https://api.github.com/users/NicoK/followers","following_url":"https://api.github.com/users/NicoK/following{/other_user}","gists_url":"https://api.github.com/users/NicoK/gists{/gist_id}","starred_url":"https://api.github.com/users/NicoK/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NicoK/subscriptions","organizations_url":"https://api.github.com/users/NicoK/orgs","repos_url":"https://api.github.com/users/NicoK/repos","events_url":"https://api.github.com/users/NicoK/events{/privacy}","received_events_url":"https://api.github.com/users/NicoK/received_events","type":"User","site_admin":false},"body":"I highly doubt that a gradle user will not know where to find the file, but why not...","created_at":"2018-08-15T17:03:45Z","updated_at":"2018-08-15T17:03:45Z","html_url":"https://github.com/apache/flink-web/pull/105#discussion_r210336947","pull_request_url":"https://api.github.com/repos/apache/flink-web/pulls/105","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/apache/flink-web/pulls/comments/210336947"},"html":{"href":"https://github.com/apache/flink-web/pull/105#discussion_r210336947"},"pull_request":{"href":"https://api.github.com/repos/apache/flink-web/pulls/105"}},"in_reply_to_id":209652918},"pull_request":{"url":"https://api.github.com/repos/apache/flink-web/pulls/105","id":183486725,"node_id":"MDExOlB1bGxSZXF1ZXN0MTgzNDg2NzI1","html_url":"https://github.com/apache/flink-web/pull/105","diff_url":"https://github.com/apache/flink-web/pull/105.diff","patch_url":"https://github.com/apache/flink-web/pull/105.patch","issue_url":"https://api.github.com/repos/apache/flink-web/issues/105","number":105,"state":"open","locked":false,"title":"[FLINK-9222] add gradle quickstart script","user":{"login":"NicoK","id":213026,"node_id":"MDQ6VXNlcjIxMzAyNg==","avatar_url":"https://avatars1.githubusercontent.com/u/213026?v=4","gravatar_id":"","url":"https://api.github.com/users/NicoK","html_url":"https://github.com/NicoK","followers_url":"https://api.github.com/users/NicoK/followers","following_url":"https://api.github.com/users/NicoK/following{/other_user}","gists_url":"https://api.github.com/users/NicoK/gists{/gist_id}","starred_url":"https://api.github.com/users/NicoK/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NicoK/subscriptions","organizations_url":"https://api.github.com/users/NicoK/orgs","repos_url":"https://api.github.com/users/NicoK/repos","events_url":"https://api.github.com/users/NicoK/events{/privacy}","received_events_url":"https://api.github.com/users/NicoK/received_events","type":"User","site_admin":false},"body":"This adds a quickstart script to setup a project using `gradle` for management. It handles shading/shadow jars correctly, works for both snapshot and release versions, allows application and test runs with embedded Flink, and allows the project to be used by IDEs (tested with IntelliJ). Part 2 of this PR will add and refer to it in the Flink docs.","created_at":"2018-04-23T16:16:03Z","updated_at":"2018-08-15T17:03:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c0e5f6ef22b830930a5e78b59c0ea08ea9f64728","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/apache/flink-web/pulls/105/commits","review_comments_url":"https://api.github.com/repos/apache/flink-web/pulls/105/comments","review_comment_url":"https://api.github.com/repos/apache/flink-web/pulls/comments{/number}","comments_url":"https://api.github.com/repos/apache/flink-web/issues/105/comments","statuses_url":"https://api.github.com/repos/apache/flink-web/statuses/81e7c42cb7e81fc615f7aa343b023e6a6446034c","head":{"label":"NicoK:flink-9222","ref":"flink-9222","sha":"81e7c42cb7e81fc615f7aa343b023e6a6446034c","user":{"login":"NicoK","id":213026,"node_id":"MDQ6VXNlcjIxMzAyNg==","avatar_url":"https://avatars1.githubusercontent.com/u/213026?v=4","gravatar_id":"","url":"https://api.github.com/users/NicoK","html_url":"https://github.com/NicoK","followers_url":"https://api.github.com/users/NicoK/followers","following_url":"https://api.github.com/users/NicoK/following{/other_user}","gists_url":"https://api.github.com/users/NicoK/gists{/gist_id}","starred_url":"https://api.github.com/users/NicoK/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NicoK/subscriptions","organizations_url":"https://api.github.com/users/NicoK/orgs","repos_url":"https://api.github.com/users/NicoK/repos","events_url":"https://api.github.com/users/NicoK/events{/privacy}","received_events_url":"https://api.github.com/users/NicoK/received_events","type":"User","site_admin":false},"repo":{"id":76042671,"node_id":"MDEwOlJlcG9zaXRvcnk3NjA0MjY3MQ==","name":"flink-web","full_name":"NicoK/flink-web","owner":{"login":"NicoK","id":213026,"node_id":"MDQ6VXNlcjIxMzAyNg==","avatar_url":"https://avatars1.githubusercontent.com/u/213026?v=4","gravatar_id":"","url":"https://api.github.com/users/NicoK","html_url":"https://github.com/NicoK","followers_url":"https://api.github.com/users/NicoK/followers","following_url":"https://api.github.com/users/NicoK/following{/other_user}","gists_url":"https://api.github.com/users/NicoK/gists{/gist_id}","starred_url":"https://api.github.com/users/NicoK/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NicoK/subscriptions","organizations_url":"https://api.github.com/users/NicoK/orgs","repos_url":"https://api.github.com/users/NicoK/repos","events_url":"https://api.github.com/users/NicoK/events{/privacy}","received_events_url":"https://api.github.com/users/NicoK/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/NicoK/flink-web","description":"Mirror of Apache Flink Website","fork":true,"url":"https://api.github.com/repos/NicoK/flink-web","forks_url":"https://api.github.com/repos/NicoK/flink-web/forks","keys_url":"https://api.github.com/repos/NicoK/flink-web/keys{/key_id}","collaborators_url":"https://api.github.com/repos/NicoK/flink-web/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/NicoK/flink-web/teams","hooks_url":"https://api.github.com/repos/NicoK/flink-web/hooks","issue_events_url":"https://api.github.com/repos/NicoK/flink-web/issues/events{/number}","events_url":"https://api.github.com/repos/NicoK/flink-web/events","assignees_url":"https://api.github.com/repos/NicoK/flink-web/assignees{/user}","branches_url":"https://api.github.com/repos/NicoK/flink-web/branches{/branch}","tags_url":"https://api.github.com/repos/NicoK/flink-web/tags","blobs_url":"https://api.github.com/repos/NicoK/flink-web/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/NicoK/flink-web/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/NicoK/flink-web/git/refs{/sha}","trees_url":"https://api.github.com/repos/NicoK/flink-web/git/trees{/sha}","statuses_url":"https://api.github.com/repos/NicoK/flink-web/statuses/{sha}","languages_url":"https://api.github.com/repos/NicoK/flink-web/languages","stargazers_url":"https://api.github.com/repos/NicoK/flink-web/stargazers","contributors_url":"https://api.github.com/repos/NicoK/flink-web/contributors","subscribers_url":"https://api.github.com/repos/NicoK/flink-web/subscribers","subscription_url":"https://api.github.com/repos/NicoK/flink-web/subscription","commits_url":"https://api.github.com/repos/NicoK/flink-web/commits{/sha}","git_commits_url":"https://api.github.com/repos/NicoK/flink-web/git/commits{/sha}","comments_url":"https://api.github.com/repos/NicoK/flink-web/comments{/number}","issue_comment_url":"https://api.github.com/repos/NicoK/flink-web/issues/comments{/number}","contents_url":"https://api.github.com/repos/NicoK/flink-web/contents/{+path}","compare_url":"https://api.github.com/repos/NicoK/flink-web/compare/{base}...{head}","merges_url":"https://api.github.com/repos/NicoK/flink-web/merges","archive_url":"https://api.github.com/repos/NicoK/flink-web/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/NicoK/flink-web/downloads","issues_url":"https://api.github.com/repos/NicoK/flink-web/issues{/number}","pulls_url":"https://api.github.com/repos/NicoK/flink-web/pulls{/number}","milestones_url":"https://api.github.com/repos/NicoK/flink-web/milestones{/number}","notifications_url":"https://api.github.com/repos/NicoK/flink-web/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/NicoK/flink-web/labels{/name}","releases_url":"https://api.github.com/repos/NicoK/flink-web/releases{/id}","deployments_url":"https://api.github.com/repos/NicoK/flink-web/deployments","created_at":"2016-12-09T14:33:23Z","updated_at":"2016-12-09T14:33:26Z","pushed_at":"2018-08-02T14:00:01Z","git_url":"git://github.com/NicoK/flink-web.git","ssh_url":"git@github.com:NicoK/flink-web.git","clone_url":"https://github.com/NicoK/flink-web.git","svn_url":"https://github.com/NicoK/flink-web","homepage":null,"size":62167,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"asf-site"}},"base":{"label":"apache:asf-site","ref":"asf-site","sha":"ffccb516b45f9802d75681830b4adffff36775b0","user":{"login":"apache","id":47359,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ3MzU5","avatar_url":"https://avatars0.githubusercontent.com/u/47359?v=4","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"repo":{"id":35755560,"node_id":"MDEwOlJlcG9zaXRvcnkzNTc1NTU2MA==","name":"flink-web","full_name":"apache/flink-web","owner":{"login":"apache","id":47359,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ3MzU5","avatar_url":"https://avatars0.githubusercontent.com/u/47359?v=4","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/apache/flink-web","description":"Apache Flink Website","fork":false,"url":"https://api.github.com/repos/apache/flink-web","forks_url":"https://api.github.com/repos/apache/flink-web/forks","keys_url":"https://api.github.com/repos/apache/flink-web/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apache/flink-web/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apache/flink-web/teams","hooks_url":"https://api.github.com/repos/apache/flink-web/hooks","issue_events_url":"https://api.github.com/repos/apache/flink-web/issues/events{/number}","events_url":"https://api.github.com/repos/apache/flink-web/events","assignees_url":"https://api.github.com/repos/apache/flink-web/assignees{/user}","branches_url":"https://api.github.com/repos/apache/flink-web/branches{/branch}","tags_url":"https://api.github.com/repos/apache/flink-web/tags","blobs_url":"https://api.github.com/repos/apache/flink-web/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apache/flink-web/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apache/flink-web/git/refs{/sha}","trees_url":"https://api.github.com/repos/apache/flink-web/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apache/flink-web/statuses/{sha}","languages_url":"https://api.github.com/repos/apache/flink-web/languages","stargazers_url":"https://api.github.com/repos/apache/flink-web/stargazers","contributors_url":"https://api.github.com/repos/apache/flink-web/contributors","subscribers_url":"https://api.github.com/repos/apache/flink-web/subscribers","subscription_url":"https://api.github.com/repos/apache/flink-web/subscription","commits_url":"https://api.github.com/repos/apache/flink-web/commits{/sha}","git_commits_url":"https://api.github.com/repos/apache/flink-web/git/commits{/sha}","comments_url":"https://api.github.com/repos/apache/flink-web/comments{/number}","issue_comment_url":"https://api.github.com/repos/apache/flink-web/issues/comments{/number}","contents_url":"https://api.github.com/repos/apache/flink-web/contents/{+path}","compare_url":"https://api.github.com/repos/apache/flink-web/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apache/flink-web/merges","archive_url":"https://api.github.com/repos/apache/flink-web/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apache/flink-web/downloads","issues_url":"https://api.github.com/repos/apache/flink-web/issues{/number}","pulls_url":"https://api.github.com/repos/apache/flink-web/pulls{/number}","milestones_url":"https://api.github.com/repos/apache/flink-web/milestones{/number}","notifications_url":"https://api.github.com/repos/apache/flink-web/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apache/flink-web/labels{/name}","releases_url":"https://api.github.com/repos/apache/flink-web/releases{/id}","deployments_url":"https://api.github.com/repos/apache/flink-web/deployments","created_at":"2015-05-17T07:00:05Z","updated_at":"2018-08-09T10:07:37Z","pushed_at":"2018-08-14T13:49:24Z","git_url":"git://github.com/apache/flink-web.git","ssh_url":"git@github.com:apache/flink-web.git","clone_url":"https://github.com/apache/flink-web.git","svn_url":"https://github.com/apache/flink-web","homepage":"","size":62296,"stargazers_count":22,"watchers_count":22,"language":"HTML","has_issues":false,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":58,"mirror_url":null,"archived":false,"open_issues_count":3,"license":null,"forks":58,"open_issues":3,"watchers":22,"default_branch":"asf-site"}},"_links":{"self":{"href":"https://api.github.com/repos/apache/flink-web/pulls/105"},"html":{"href":"https://github.com/apache/flink-web/pull/105"},"issue":{"href":"https://api.github.com/repos/apache/flink-web/issues/105"},"comments":{"href":"https://api.github.com/repos/apache/flink-web/issues/105/comments"},"review_comments":{"href":"https://api.github.com/repos/apache/flink-web/pulls/105/comments"},"review_comment":{"href":"https://api.github.com/repos/apache/flink-web/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/apache/flink-web/pulls/105/commits"},"statuses":{"href":"https://api.github.com/repos/apache/flink-web/statuses/81e7c42cb7e81fc615f7aa343b023e6a6446034c"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"NicoK"}}