{"action":"created","issue":{"url":"https://api.github.com/repos/policeman-tools/forbidden-apis/issues/98","repository_url":"https://api.github.com/repos/policeman-tools/forbidden-apis","labels_url":"https://api.github.com/repos/policeman-tools/forbidden-apis/issues/98/labels{/name}","comments_url":"https://api.github.com/repos/policeman-tools/forbidden-apis/issues/98/comments","events_url":"https://api.github.com/repos/policeman-tools/forbidden-apis/issues/98/events","html_url":"https://github.com/policeman-tools/forbidden-apis/issues/98","id":137597118,"number":98,"title":"Changes to forbiddenApis.txt should trigger a Gradle task to re-run","user":{"login":"valdisrigdon","id":319133,"avatar_url":"https://avatars.githubusercontent.com/u/319133?v=3","gravatar_id":"","url":"https://api.github.com/users/valdisrigdon","html_url":"https://github.com/valdisrigdon","followers_url":"https://api.github.com/users/valdisrigdon/followers","following_url":"https://api.github.com/users/valdisrigdon/following{/other_user}","gists_url":"https://api.github.com/users/valdisrigdon/gists{/gist_id}","starred_url":"https://api.github.com/users/valdisrigdon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/valdisrigdon/subscriptions","organizations_url":"https://api.github.com/users/valdisrigdon/orgs","repos_url":"https://api.github.com/users/valdisrigdon/repos","events_url":"https://api.github.com/users/valdisrigdon/events{/privacy}","received_events_url":"https://api.github.com/users/valdisrigdon/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-03-01T15:02:07Z","updated_at":"2016-03-01T16:12:48Z","closed_at":null,"body":"I need to add the following to achieve this behavior. If the inputs to any `forbiddenApis` task change, it should be re-run.\r\n\r\n```\r\nforbiddenApisMain {\r\n  if (file('forbiddenApis.txt').exists()) {\r\n    inputs.file 'forbiddenApis.txt'\r\n  }\r\n}\r\n``` "},"comment":{"url":"https://api.github.com/repos/policeman-tools/forbidden-apis/issues/comments/190788845","html_url":"https://github.com/policeman-tools/forbidden-apis/issues/98#issuecomment-190788845","issue_url":"https://api.github.com/repos/policeman-tools/forbidden-apis/issues/98","id":190788845,"user":{"login":"valdisrigdon","id":319133,"avatar_url":"https://avatars.githubusercontent.com/u/319133?v=3","gravatar_id":"","url":"https://api.github.com/users/valdisrigdon","html_url":"https://github.com/valdisrigdon","followers_url":"https://api.github.com/users/valdisrigdon/followers","following_url":"https://api.github.com/users/valdisrigdon/following{/other_user}","gists_url":"https://api.github.com/users/valdisrigdon/gists{/gist_id}","starred_url":"https://api.github.com/users/valdisrigdon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/valdisrigdon/subscriptions","organizations_url":"https://api.github.com/users/valdisrigdon/orgs","repos_url":"https://api.github.com/users/valdisrigdon/repos","events_url":"https://api.github.com/users/valdisrigdon/events{/privacy}","received_events_url":"https://api.github.com/users/valdisrigdon/received_events","type":"User","site_admin":false},"created_at":"2016-03-01T16:12:48Z","updated_at":"2016-03-01T16:12:48Z","body":"This was a multi-module project. It's working now if I explicitly define it as:\r\n\r\n```\r\nsignaturesFiles = files('forbiddenApis.txt')\r\n```"}}