{"action":"closed","issue":{"url":"https://api.github.com/repos/lukehutch/fast-classpath-scanner/issues/44","repository_url":"https://api.github.com/repos/lukehutch/fast-classpath-scanner","labels_url":"https://api.github.com/repos/lukehutch/fast-classpath-scanner/issues/44/labels{/name}","comments_url":"https://api.github.com/repos/lukehutch/fast-classpath-scanner/issues/44/comments","events_url":"https://api.github.com/repos/lukehutch/fast-classpath-scanner/issues/44/events","html_url":"https://github.com/lukehutch/fast-classpath-scanner/issues/44","id":154009640,"number":44,"title":"ClassLoaderHandlers are not found when gradle + ant is used together","user":{"login":"vaclavnemec","id":912533,"avatar_url":"https://avatars.githubusercontent.com/u/912533?v=3","gravatar_id":"","url":"https://api.github.com/users/vaclavnemec","html_url":"https://github.com/vaclavnemec","followers_url":"https://api.github.com/users/vaclavnemec/followers","following_url":"https://api.github.com/users/vaclavnemec/following{/other_user}","gists_url":"https://api.github.com/users/vaclavnemec/gists{/gist_id}","starred_url":"https://api.github.com/users/vaclavnemec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vaclavnemec/subscriptions","organizations_url":"https://api.github.com/users/vaclavnemec/orgs","repos_url":"https://api.github.com/users/vaclavnemec/repos","events_url":"https://api.github.com/users/vaclavnemec/events{/privacy}","received_events_url":"https://api.github.com/users/vaclavnemec/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-05-10T13:43:11Z","updated_at":"2016-05-19T12:34:06Z","closed_at":"2016-05-19T12:34:06Z","body":"We have a gradle build which is using old ant tasks from our old build system (gradle has support for ant).\r\n\r\nThe next code snippet is problematic. No handler is found.\r\n```\r\nprivate static ServiceLoader<ClassLoaderHandler> classLoaderHandlerLoader = ServiceLoader\r\n            .load(ClassLoaderHandler.class);\r\n```\r\nThe root cause seems to be different class loader. ServiceLoader uses `Thread.currentThread().getContextClassLoader()`\r\n\r\nIt would be very useful to pass classloader as an parameter of `FastClasspathScanner` or get the classloader from caller."}}