{"action":"created","issue":{"url":"https://api.github.com/repos/gradle/gradle-script-kotlin/issues/96","repository_url":"https://api.github.com/repos/gradle/gradle-script-kotlin","labels_url":"https://api.github.com/repos/gradle/gradle-script-kotlin/issues/96/labels{/name}","comments_url":"https://api.github.com/repos/gradle/gradle-script-kotlin/issues/96/comments","events_url":"https://api.github.com/repos/gradle/gradle-script-kotlin/issues/96/events","html_url":"https://github.com/gradle/gradle-script-kotlin/issues/96","id":165342450,"number":96,"title":"Support navigation to sources of included Kotlin libraries","user":{"login":"bamboo","id":51689,"avatar_url":"https://avatars2.githubusercontent.com/u/51689?v=3","gravatar_id":"","url":"https://api.github.com/users/bamboo","html_url":"https://github.com/bamboo","followers_url":"https://api.github.com/users/bamboo/followers","following_url":"https://api.github.com/users/bamboo/following{/other_user}","gists_url":"https://api.github.com/users/bamboo/gists{/gist_id}","starred_url":"https://api.github.com/users/bamboo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bamboo/subscriptions","organizations_url":"https://api.github.com/users/bamboo/orgs","repos_url":"https://api.github.com/users/bamboo/repos","events_url":"https://api.github.com/users/bamboo/events{/privacy}","received_events_url":"https://api.github.com/users/bamboo/received_events","type":"User","site_admin":false},"labels":[{"id":385108493,"url":"https://api.github.com/repos/gradle/gradle-script-kotlin/labels/a:feature","name":"a:feature","color":"0e8a16","default":false},{"id":383978970,"url":"https://api.github.com/repos/gradle/gradle-script-kotlin/labels/in:kt-idea-plugin","name":"in:kt-idea-plugin","color":"fde7d3","default":false},{"id":385197366,"url":"https://api.github.com/repos/gradle/gradle-script-kotlin/labels/re:navigation","name":"re:navigation","color":"ffffff","default":false}],"state":"open","locked":false,"assignee":{"login":"bamboo","id":51689,"avatar_url":"https://avatars2.githubusercontent.com/u/51689?v=3","gravatar_id":"","url":"https://api.github.com/users/bamboo","html_url":"https://github.com/bamboo","followers_url":"https://api.github.com/users/bamboo/followers","following_url":"https://api.github.com/users/bamboo/following{/other_user}","gists_url":"https://api.github.com/users/bamboo/gists{/gist_id}","starred_url":"https://api.github.com/users/bamboo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bamboo/subscriptions","organizations_url":"https://api.github.com/users/bamboo/orgs","repos_url":"https://api.github.com/users/bamboo/repos","events_url":"https://api.github.com/users/bamboo/events{/privacy}","received_events_url":"https://api.github.com/users/bamboo/received_events","type":"User","site_admin":false},"assignees":[{"login":"bamboo","id":51689,"avatar_url":"https://avatars2.githubusercontent.com/u/51689?v=3","gravatar_id":"","url":"https://api.github.com/users/bamboo","html_url":"https://github.com/bamboo","followers_url":"https://api.github.com/users/bamboo/followers","following_url":"https://api.github.com/users/bamboo/following{/other_user}","gists_url":"https://api.github.com/users/bamboo/gists{/gist_id}","starred_url":"https://api.github.com/users/bamboo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bamboo/subscriptions","organizations_url":"https://api.github.com/users/bamboo/orgs","repos_url":"https://api.github.com/users/bamboo/repos","events_url":"https://api.github.com/users/bamboo/events{/privacy}","received_events_url":"https://api.github.com/users/bamboo/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/gradle/gradle-script-kotlin/milestones/13","html_url":"https://github.com/gradle/gradle-script-kotlin/milestone/13","labels_url":"https://api.github.com/repos/gradle/gradle-script-kotlin/milestones/13/labels","id":1993541,"number":13,"title":"0.9.0","description":"","creator":{"login":"bamboo","id":51689,"avatar_url":"https://avatars2.githubusercontent.com/u/51689?v=3","gravatar_id":"","url":"https://api.github.com/users/bamboo","html_url":"https://github.com/bamboo","followers_url":"https://api.github.com/users/bamboo/followers","following_url":"https://api.github.com/users/bamboo/following{/other_user}","gists_url":"https://api.github.com/users/bamboo/gists{/gist_id}","starred_url":"https://api.github.com/users/bamboo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bamboo/subscriptions","organizations_url":"https://api.github.com/users/bamboo/orgs","repos_url":"https://api.github.com/users/bamboo/repos","events_url":"https://api.github.com/users/bamboo/events{/privacy}","received_events_url":"https://api.github.com/users/bamboo/received_events","type":"User","site_admin":false},"open_issues":6,"closed_issues":35,"state":"open","created_at":"2016-09-09T13:55:07Z","updated_at":"2017-05-09T21:09:01Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2016-07-13T14:57:01Z","updated_at":"2017-05-09T21:14:59Z","closed_at":null,"body":""},"comment":{"url":"https://api.github.com/repos/gradle/gradle-script-kotlin/issues/comments/300303682","html_url":"https://github.com/gradle/gradle-script-kotlin/issues/96#issuecomment-300303682","issue_url":"https://api.github.com/repos/gradle/gradle-script-kotlin/issues/96","id":300303682,"user":{"login":"bamboo","id":51689,"avatar_url":"https://avatars2.githubusercontent.com/u/51689?v=3","gravatar_id":"","url":"https://api.github.com/users/bamboo","html_url":"https://github.com/bamboo","followers_url":"https://api.github.com/users/bamboo/followers","following_url":"https://api.github.com/users/bamboo/following{/other_user}","gists_url":"https://api.github.com/users/bamboo/gists{/gist_id}","starred_url":"https://api.github.com/users/bamboo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bamboo/subscriptions","organizations_url":"https://api.github.com/users/bamboo/orgs","repos_url":"https://api.github.com/users/bamboo/repos","events_url":"https://api.github.com/users/bamboo/events{/privacy}","received_events_url":"https://api.github.com/users/bamboo/received_events","type":"User","site_admin":false},"created_at":"2017-05-09T21:14:59Z","updated_at":"2017-05-09T21:14:59Z","body":"Requires introducing a dependency on `platform-jvm` from `KotlinBuildScriptModelBuilder` so it can query source artifacts using an `ArtifactResolutionQuery` such as:\r\n\r\n```kotlin\r\nfun resolveKotlinSourcesUsing(dependencyHandler: DependencyHandler) =\r\n    dependencyHandler\r\n        .createArtifactResolutionQuery()\r\n        .forComponents(kotlinComponent(\"kotlin-stdlib\"), kotlinComponent(\"kotlin-reflect\"))\r\n        .withArtifacts(JvmLibrary::class.java, SourcesArtifact::class.java)\r\n        .execute()\r\n        .resolvedComponents\r\n        .flatMap { it.getArtifacts(SourcesArtifact::class.java) }\r\n        .filterIsInstance<ResolvedArtifactResult>()\r\n        .map { it.file }\r\n\r\nfun kotlinComponent(module: String): ModuleComponentIdentifier =\r\n    moduleId(\"org.jetbrains.kotlin\", module, embeddedKotlinVersion)\r\n\r\nfun moduleId(group: String, module: String, version: String) =\r\n    object : ModuleComponentIdentifier {\r\n        override fun getGroup() = group\r\n        override fun getModule() = module\r\n        override fun getVersion() = version\r\n        override fun getDisplayName() = \"$group:$module:$version\"\r\n    }\r\n```\r\n"}}
{"actor":{"display_login":"bamboo"}}