{"action":"created","issue":{"url":"https://api.github.com/repos/edvin/fxldemo-gradle/issues/4","repository_url":"https://api.github.com/repos/edvin/fxldemo-gradle","labels_url":"https://api.github.com/repos/edvin/fxldemo-gradle/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/edvin/fxldemo-gradle/issues/4/comments","events_url":"https://api.github.com/repos/edvin/fxldemo-gradle/issues/4/events","html_url":"https://github.com/edvin/fxldemo-gradle/issues/4","id":192067171,"number":4,"title":"gradle example deployS3 target","user":{"login":"ChrisLMerrill","id":14020230,"avatar_url":"https://avatars.githubusercontent.com/u/14020230?v=3","gravatar_id":"","url":"https://api.github.com/users/ChrisLMerrill","html_url":"https://github.com/ChrisLMerrill","followers_url":"https://api.github.com/users/ChrisLMerrill/followers","following_url":"https://api.github.com/users/ChrisLMerrill/following{/other_user}","gists_url":"https://api.github.com/users/ChrisLMerrill/gists{/gist_id}","starred_url":"https://api.github.com/users/ChrisLMerrill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChrisLMerrill/subscriptions","organizations_url":"https://api.github.com/users/ChrisLMerrill/orgs","repos_url":"https://api.github.com/users/ChrisLMerrill/repos","events_url":"https://api.github.com/users/ChrisLMerrill/events{/privacy}","received_events_url":"https://api.github.com/users/ChrisLMerrill/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-11-28T17:29:32Z","updated_at":"2016-11-28T19:43:51Z","closed_at":null,"body":"When I run 'gradle deployS3' using the config in the readme, I get this:\r\n\r\n> Could not find property 'appDeployTarget' on task ':deployS3'.\r\n\r\ntask deployS3(type: Exec) {\r\n    // You need to have installed AWS command line interface: https://aws.amazon.com/cli/\r\n    commandLine 'aws', 'configure', 'set', 'aws_access_key_id', '******'\r\n    commandLine 'aws', 'configure', 'set', 'aws_secret_access_key', '*******'\r\n    commandLine 'aws', 's3', 'cp', 'releases/ide2', appDeployTarget, '--acl', 'public-read', '--recursive', '--region', 'us-east-1'\r\n}\r\n\r\nNot sure exactly what it is looking for. Any suggestion? \r\n"},"comment":{"url":"https://api.github.com/repos/edvin/fxldemo-gradle/issues/comments/263373053","html_url":"https://github.com/edvin/fxldemo-gradle/issues/4#issuecomment-263373053","issue_url":"https://api.github.com/repos/edvin/fxldemo-gradle/issues/4","id":263373053,"user":{"login":"ChrisLMerrill","id":14020230,"avatar_url":"https://avatars.githubusercontent.com/u/14020230?v=3","gravatar_id":"","url":"https://api.github.com/users/ChrisLMerrill","html_url":"https://github.com/ChrisLMerrill","followers_url":"https://api.github.com/users/ChrisLMerrill/followers","following_url":"https://api.github.com/users/ChrisLMerrill/following{/other_user}","gists_url":"https://api.github.com/users/ChrisLMerrill/gists{/gist_id}","starred_url":"https://api.github.com/users/ChrisLMerrill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChrisLMerrill/subscriptions","organizations_url":"https://api.github.com/users/ChrisLMerrill/orgs","repos_url":"https://api.github.com/users/ChrisLMerrill/repos","events_url":"https://api.github.com/users/ChrisLMerrill/events{/privacy}","received_events_url":"https://api.github.com/users/ChrisLMerrill/received_events","type":"User","site_admin":false},"created_at":"2016-11-28T19:43:51Z","updated_at":"2016-11-28T19:43:51Z","body":"So I decided to take another approach, because the solution in the readme:\r\n1) required the user to have AWS command-line tools installed\r\n2) has the AWS credentials in the build file    :o\r\n\r\nInstead, I used the gradle-aws-plugin (https://github.com/classmethod/gradle-aws-plugin) and this in my build.gradle file:\r\n\r\nbuildscript {\r\n    repositories {\r\n        mavenCentral()\r\n        maven { url \"https://plugins.gradle.org/m2/\" }\r\n    }\r\n    dependencies {\r\n        classpath 'no.tornado:fxlauncher-gradle-plugin:1.0.14'\r\n        classpath \"jp.classmethod.aws:gradle-aws-plugin:0.30\"\r\n    }\r\n}\r\n\r\napply plugin: 'jp.classmethod.aws.s3'\r\ntask syncToS3(type: jp.classmethod.aws.gradle.s3.SyncTask) {\r\n  bucketName 'bucketname/path/to/files'\r\n  source file('build/fxlauncher')\r\n}\r\n\r\nThis page describes how to specify your AWS credentials \r\nhttps://docs.aws.amazon.com/sdk-for-java/v1/developer-guide/credentials.html\r\nYou can provide them in a $HOME/.aws/credentials file, environment variables or java system properties, so it should fit well into any Java build process.\r\n\r\nThis works much better for minimizing the build requirements and keeping credentials secure. It was easier, too...at least for me.    :)"}}
{"actor":{"display_login":"ChrisLMerrill"}}