{"action":"created","issue":{"url":"https://api.github.com/repos/diffplug/spotless/issues/125","repository_url":"https://api.github.com/repos/diffplug/spotless","labels_url":"https://api.github.com/repos/diffplug/spotless/issues/125/labels{/name}","comments_url":"https://api.github.com/repos/diffplug/spotless/issues/125/comments","events_url":"https://api.github.com/repos/diffplug/spotless/issues/125/events","html_url":"https://github.com/diffplug/spotless/issues/125","id":245463724,"number":125,"title":"Unable to specify importOrder","user":{"login":"srikanthanusuri","id":6923802,"avatar_url":"https://avatars0.githubusercontent.com/u/6923802?v=4","gravatar_id":"","url":"https://api.github.com/users/srikanthanusuri","html_url":"https://github.com/srikanthanusuri","followers_url":"https://api.github.com/users/srikanthanusuri/followers","following_url":"https://api.github.com/users/srikanthanusuri/following{/other_user}","gists_url":"https://api.github.com/users/srikanthanusuri/gists{/gist_id}","starred_url":"https://api.github.com/users/srikanthanusuri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/srikanthanusuri/subscriptions","organizations_url":"https://api.github.com/users/srikanthanusuri/orgs","repos_url":"https://api.github.com/users/srikanthanusuri/repos","events_url":"https://api.github.com/users/srikanthanusuri/events{/privacy}","received_events_url":"https://api.github.com/users/srikanthanusuri/received_events","type":"User","site_admin":false},"labels":[{"id":204882934,"url":"https://api.github.com/repos/diffplug/spotless/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"open","locked":false,"assignee":{"login":"fvgh","id":10271755,"avatar_url":"https://avatars0.githubusercontent.com/u/10271755?v=4","gravatar_id":"","url":"https://api.github.com/users/fvgh","html_url":"https://github.com/fvgh","followers_url":"https://api.github.com/users/fvgh/followers","following_url":"https://api.github.com/users/fvgh/following{/other_user}","gists_url":"https://api.github.com/users/fvgh/gists{/gist_id}","starred_url":"https://api.github.com/users/fvgh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fvgh/subscriptions","organizations_url":"https://api.github.com/users/fvgh/orgs","repos_url":"https://api.github.com/users/fvgh/repos","events_url":"https://api.github.com/users/fvgh/events{/privacy}","received_events_url":"https://api.github.com/users/fvgh/received_events","type":"User","site_admin":false},"assignees":[{"login":"fvgh","id":10271755,"avatar_url":"https://avatars0.githubusercontent.com/u/10271755?v=4","gravatar_id":"","url":"https://api.github.com/users/fvgh","html_url":"https://github.com/fvgh","followers_url":"https://api.github.com/users/fvgh/followers","following_url":"https://api.github.com/users/fvgh/following{/other_user}","gists_url":"https://api.github.com/users/fvgh/gists{/gist_id}","starred_url":"https://api.github.com/users/fvgh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fvgh/subscriptions","organizations_url":"https://api.github.com/users/fvgh/orgs","repos_url":"https://api.github.com/users/fvgh/repos","events_url":"https://api.github.com/users/fvgh/events{/privacy}","received_events_url":"https://api.github.com/users/fvgh/received_events","type":"User","site_admin":false}],"milestone":null,"comments":3,"created_at":"2017-07-25T16:42:47Z","updated_at":"2017-07-25T23:30:46Z","closed_at":null,"body":"I am seeing the following issue when I run a build. Is there something that I am missing to add to the configuration?\r\n\r\n```\r\n* What went wrong:\r\nA problem occurred evaluating root project 'my-app'.\r\n> No such property: importOrder for class: com.diffplug.gradle.spotless.JavaExtension\r\n```\r\n\r\nThe contents of my `build.gradle` file is as follows.\r\n\r\n```\r\nbuildscript {\r\n    repositories {\r\n        jcenter()\r\n        maven {\r\n            url \"https://plugins.gradle.org/m2/\"\r\n        }\r\n    }\r\n    dependencies {\r\n        classpath 'com.diffplug.spotless:spotless-plugin-gradle:3.4.1'\r\n    }\r\n}\r\n\r\napply plugin: 'java'\r\napply plugin: 'com.diffplug.gradle.spotless'\r\n\r\nspotless {\r\n    java {\r\n      importOrder ['java', 'javax', 'org', 'com', 'com.diffplug', '']\r\n      removeUnusedImports()\r\n    }\r\n}\r\n```\r\nProject directory structure:\r\n\r\n```\r\n├───.gradle\r\n│   └───2.14\r\n│       └───taskArtifacts\r\n├───gradle\r\n│   └───wrapper\r\n└───src\r\n    ├───main\r\n    │   ├───java\r\n    │   │   └───com\r\n    │   │       └───test\r\n    │   └───resources\r\n    └───test\r\n        ├───java\r\n        └───resources\r\n```\r\n\r\nThe debug output has been attached [here](https://github.com/diffplug/spotless/files/1174076/op.txt)\r\nThe stacktrace can be found [here](https://github.com/diffplug/spotless/files/1174095/stacktrace.txt)"},"comment":{"url":"https://api.github.com/repos/diffplug/spotless/issues/comments/317902833","html_url":"https://github.com/diffplug/spotless/issues/125#issuecomment-317902833","issue_url":"https://api.github.com/repos/diffplug/spotless/issues/125","id":317902833,"user":{"login":"nedtwigg","id":2924992,"avatar_url":"https://avatars3.githubusercontent.com/u/2924992?v=4","gravatar_id":"","url":"https://api.github.com/users/nedtwigg","html_url":"https://github.com/nedtwigg","followers_url":"https://api.github.com/users/nedtwigg/followers","following_url":"https://api.github.com/users/nedtwigg/following{/other_user}","gists_url":"https://api.github.com/users/nedtwigg/gists{/gist_id}","starred_url":"https://api.github.com/users/nedtwigg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nedtwigg/subscriptions","organizations_url":"https://api.github.com/users/nedtwigg/orgs","repos_url":"https://api.github.com/users/nedtwigg/repos","events_url":"https://api.github.com/users/nedtwigg/events{/privacy}","received_events_url":"https://api.github.com/users/nedtwigg/received_events","type":"User","site_admin":false},"created_at":"2017-07-25T23:30:46Z","updated_at":"2017-07-25T23:30:46Z","body":"It's so great to have a Groovy expert onboard, @fvgh!  That part of the docs goes all the way back to April 2015 - could well have been wrong the whole time.  Regardless, your fix sounds good to me 👍 "}}
{"actor":{"display_login":"nedtwigg"}}