{"id":508843,"date":"2024-09-10T02:27:55","date_gmt":"2024-09-10T01:27:55","guid":{"rendered":"https:\/\/blog.jetbrains.com\/idea\/2024\/08\/meet-the-renovated-kotlin-support-k2-mode\/"},"modified":"2024-10-15T20:00:54","modified_gmt":"2024-10-15T19:00:54","slug":"meet-the-renovated-kotlin-support-k2-mode","status":"publish","type":"idea","link":"https:\/\/blog.jetbrains.com\/ja\/idea\/2024\/09\/meet-the-renovated-kotlin-support-k2-mode\/","title":{"rendered":"Kotlin \u30b5\u30dd\u30fc\u30c8\u306e\u5237\u65b0 \u2212 K2 \u30e2\u30fc\u30c9\uff1a \u77e5\u3063\u3066\u304a\u304f\u3079\u304d\u3053\u3068"},"content":{"rendered":"\n<p>\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001IntelliJ IDEA \u306e K2 \u30e2\u30fc\u30c9\u306b\u95a2\u3059\u308b\u91cd\u8981\u306a\u60c5\u5831\u3092\u96c6\u3081\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">K2 \u30e2\u30fc\u30c9\u3068\u306f\uff1f<\/h2>\n\n\n\n<p>K2 \u30e2\u30fc\u30c9\u306f\u3001IntelliJ IDEA \u5185\u306e Kotlin \u30b5\u30dd\u30fc\u30c8\u306e\u65b0\u3057\u3044\u5b9f\u88c5\u3067\u3042\u308a\u3001IDE \u306e\u5b89\u5b9a\u6027\u3092\u5411\u4e0a\u3055\u305b\u308b\u3068\u540c\u6642\u306b\u3001\u5c06\u6765\u306e Kotlin \u8a00\u8a9e\u6a5f\u80fd\u3092\u30b5\u30dd\u30fc\u30c8\u3059\u308b\u305f\u3081\u306e\u57fa\u76e4\u3092\u6574\u3048\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">K2 \u30e2\u30fc\u30c9 \u3068 Kotlin K2 \u30b3\u30f3\u30d1\u30a4\u30e9\u30fc\u306e\u9055\u3044\u306f\u4f55\u3067\u3059\u304b\uff1f<\/h2>\n\n\n\n<p>K2 \u30b3\u30f3\u30d1\u30a4\u30e9\u30fc\u306f\u3001Kotlin \u8a00\u8a9e\u30d0\u30fc\u30b8\u30e7\u30f3 2.0 \u4ee5\u964d\u306e Kotlin \u30b3\u30fc\u30c9\u306e\u30b3\u30f3\u30d1\u30a4\u30eb\u3092\u62c5\u3044\u307e\u3059\u3002K2 \u30b3\u30f3\u30d1\u30a4\u30e9\u3067\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u30b3\u30f3\u30d1\u30a4\u30eb\u3057\u305f\u3044\u5834\u5408\u306f\u3001\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u30d3\u30eb\u30c9\u8a2d\u5b9a\uff08<code>build.gradle.kts<\/code> \u307e\u305f\u306f <code>pom.xml<\/code>\u30d5\u30a1\u30a4\u30eb\uff09\u3067 Kotlin 2.0 \u8a00\u8a9e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u6307\u5b9a\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>K2 \u30e2\u30fc\u30c9\u306f\u3001\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u30d3\u30eb\u30c9\u8a2d\u5b9a\u3067\u6307\u5b9a\u3055\u308c\u305f Kotlin \u30b3\u30f3\u30d1\u30a4\u30e9\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u306b\u4f9d\u5b58\u3057\u307e\u305b\u3093\u3002K2 \u30e2\u30fc\u30c9\u306f\u3001K2 \u30b3\u30f3\u30d1\u30a4\u30e9\u306e\u9ad8\u5ea6\u306a\u6a5f\u80fd\u3092\u6d3b\u7528\u3057\u3066\u3001\u3088\u308a\u9ad8\u901f\u3067\u4fe1\u983c\u6027\u306e\u9ad8\u3044 Kotlin \u30b3\u30fc\u30c9\u89e3\u6790\u3092\u5b9f\u73fe\u3059\u308b\u305f\u3081\u306b\u8a2d\u8a08\u3055\u308c\u307e\u3057\u305f\u3002IntelliJ IDEA \u306e K2 \u30e2\u30fc\u30c9\u306f\u3001\u30b3\u30fc\u30c9\u306e\u5f37\u8abf\u8868\u793a\u3001\u30b3\u30fc\u30c9\u88dc\u5b8c\u3001\u304a\u3088\u3073\u305d\u306e\u4ed6\u306e IDE \u6a5f\u80fd\u306b<strong>\u306e\u307f<\/strong>\u5f71\u97ff\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u73fe\u5728\u3001K2 \u30e2\u30fc\u30c9\u306f\u3069\u306e\u6a5f\u80fd\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u307e\u3059\u304b\uff1f<\/h2>\n\n\n\n<p>IntelliJ IDEA 2024.2 \u3088\u308a\u3001<code>build.gradle.kts<\/code> \u30b9\u30af\u30ea\u30d7\u30c8\u3001Kotlin Multiplatform\uff08KMP\uff09\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3001\u307b\u3068\u3093\u3069\u306e\u30ea\u30d5\u30a1\u30af\u30bf\u30ea\u30f3\u30b0\u3001\u30b3\u30fc\u30c9\u30cf\u30a4\u30e9\u30a4\u30c8\u3001\u88dc\u5b8c\u3001\u30c7\u30d0\u30c3\u30b0\u306a\u3069\u3001IDE\u306e\u6a5f\u80fd\u306e\u5927\u90e8\u5206\u3092 K2 \u30e2\u30fc\u30c9\u3067\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>Kotlin\/Wasm\u3001\u30b9\u30af\u30e9\u30c3\u30c1\u30d5\u30a1\u30a4\u30eb\u3001\u4e00\u822c\u7684\u306b\u3042\u307e\u308a\u5229\u7528\u3055\u308c\u3066\u3044\u306a\u3044\u30ea\u30d5\u30a1\u30af\u30bf\u30ea\u30f3\u30b0\u306e\u30b5\u30dd\u30fc\u30c8\u306f\u8fd1\u65e5\u4e2d\u306b\u8ffd\u52a0\u3055\u308c\u308b\u4e88\u5b9a\u3067\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">K2 \u30e2\u30fc\u30c9\u3092\u6709\u52b9\u306b\u3059\u308b\u306b\u306f\uff1f<\/h2>\n\n\n\n<p>K2 \u30e2\u30fc\u30c9\u3092\u6709\u52b9\u306b\u3059\u308b\u306b\u306f\u3001<em>Settings\/Preferences\uff08\u8a2d\u5b9a\/\u74b0\u5883\u8a2d\u5b9a\uff09| Languages &amp; Frameworks\uff08\u8a00\u8a9e &amp; \u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\uff09| Kotlin<\/em> \u307e\u3067\u9032\u307f\u3001<em>Enable K2 Kotlin Mode\uff08K2 Kotlin \u30e2\u30fc\u30c9\u3092\u6709\u52b9\u306b\u3059\u308b\uff09<\/em> \u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u306b\u30c1\u30a7\u30c3\u30af\u3092\u5165\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img decoding=\"async\" loading=\"lazy\" width=\"1104\" height=\"320\" src=\"https:\/\/blog.jetbrains.com\/wp-content\/uploads\/2024\/08\/Enable-K2-mode-IntelliJ-IDEA.png\" alt=\"\" class=\"wp-image-498386\" style=\"aspect-ratio:3.45;width:629px;height:auto\"\/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">\u3069\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u306e IntelliJ IDEA \u3068 Kotlin \u304c K2 \u30e2\u30fc\u30c9\u3068\u4e92\u63db\u6027\u304c\u3042\u308a\u307e\u3059\u304b\uff1f<\/h2>\n\n\n\n<p>K2 \u30e2\u30fc\u30c9\u306f Kotlin \u30d0\u30fc\u30b8\u30e7\u30f3 1.9 \u4ee5\u964d\u3068\u4e92\u63db\u6027\u304c\u3042\u308a\u307e\u3059\u3002IntelliJ IDEA \u306b\u306f v2024.1 \u304b\u3089\u7d71\u5408\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" loading=\"lazy\" width=\"3840\" height=\"2160\" src=\"https:\/\/blog.jetbrains.com\/wp-content\/uploads\/2024\/08\/K2-mode.png\" alt=\"K2\u30e2\u30fc\u30c9\u3068IntelliJ IDEA\u306e\u4e92\u63db\u6027\u30b0\u30e9\u30d5\" class=\"wp-image-498375\"\/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">K2 \u30e2\u30fc\u30c9\u306f\u79c1\u306e\u30b3\u30fc\u30c9\u306b\u5f71\u97ff\u3057\u307e\u3059\u304b\uff1f<\/h2>\n\n\n\n<p>IntelliJ IDEA \u306e K2 \u30e2\u30fc\u30c9\u306f\u30b3\u30fc\u30c9\u306e\u30b3\u30f3\u30d1\u30a4\u30eb\u306b\u306f\u5f71\u97ff\u3057\u307e\u305b\u3093\u304c\u3001IDE \u3067\u306e\u30b3\u30fc\u30c9\u89e3\u6790\u306b\u306e\u307f\u5f71\u97ff\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">IntelliJ IDEA \u304c \u300cplugin is incompatible with K2 mode\uff08\u30d7\u30e9\u30b0\u30a4\u30f3\u306f K2 \u30e2\u30fc\u30c9\u3068\u4e92\u63db\u6027\u304c\u3042\u308a\u307e\u305b\u3093\uff09\u300d \u30a8\u30e9\u30fc\u3092\u8fd4\u3059\u306e\u306f\u306a\u305c\u3067\u3059\u304b\uff1f<\/h2>\n\n\n\n<p>Kotlin Plugin API \u304c\u6700\u8fd1\u5909\u66f4\u3055\u308c\u305f\u305f\u3081\u3001\u30b5\u30fc\u30c9\u30d1\u30fc\u30c6\u30a3\u306e IntelliJ IDEA \u30d7\u30e9\u30b0\u30a4\u30f3\u304c\u73fe\u5728\u5229\u7528\u3067\u304d\u306a\u3044\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002\u5f0a\u793e\u306f\u3001\u30d7\u30e9\u30b0\u30a4\u30f3\u4f5c\u8005\u304c K2 \u30e2\u30fc\u30c9\u3068\u4e92\u63db\u6027\u306e\u3042\u308b\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u8fc5\u901f\u306b\u4f5c\u6210\u3067\u304d\u308b\u3088\u3046\u3001\u7a4d\u6975\u7684\u306b\u652f\u63f4\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u79c1\u305f\u3061\u3068\u4e00\u7dd2\u306b K2 \u30e2\u30fc\u30c9\u3092\u5f62\u6210\u3057\u307e\u3057\u3087\u3046\uff01<\/h2>\n\n\n\n<p>\u4eca\u5e74\u306e\u5e74\u672b\u307e\u3067\u306b\u3001IntelliJ IDEA 2024.3 \u304b\u3089 K2 \u30e2\u30fc\u30c9\u3092\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u6709\u52b9\u5316\u306b\u3059\u308b\u3053\u3068\u3092\u76ee\u6307\u3057\u3066\u3044\u307e\u3059\uff01<\/p>\n\n\n\n<p>K2 \u30e2\u30fc\u30c9\u3092\u6700\u9ad8\u306e\u72b6\u614b\u3067\u958b\u59cb\u3067\u304d\u308b\u3088\u3046\u3001\u6539\u5584\u306b\u3054\u5354\u529b\u304f\u3060\u3055\u3044\u3002\u79c1\u305f\u3061\u306e<a href=\"https:\/\/kotlinlang.slack.com\/archives\/C0B8H786P\" target=\"_blank\" rel=\"noopener\">\u516c\u958b Slack \u30c1\u30e3\u30f3\u30cd\u30eb<\/a>\u307e\u305f\u306f <a href=\"https:\/\/youtrack.jetbrains.com\/issues\/KTIJ?u=1\" target=\"_blank\" rel=\"noopener\">YouTrack<\/a> \u3067\u30d5\u30a3\u30fc\u30c9\u30d0\u30c3\u30af\u306e\u5171\u6709\u3092\u304a\u9858\u3044\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>Happy developing!<\/p>\n\n\n\n<p><strong>\u30aa\u30ea\u30b8\u30ca\u30eb\uff08\u82f1\u8a9e\uff09\u30d6\u30ed\u30b0\u6295\u7a3f\u8a18\u4e8b\u306e\u4f5c\u8005\uff1a<\/strong><\/p>\n\n\n    <div class=\"about-author \">\n        <div class=\"about-author__box\">\n            <div class=\"row\">\n                <div class=\"about-author__box-img\">\n                    <img decoding=\"async\" src=\"https:\/\/blog.jetbrains.com\/wp-content\/uploads\/2024\/08\/photo_2024-08-02-14.40.26.jpeg\" width=\"200\" height=\"200\" alt=\"Teodor Irkhin\" loading=\"lazy\"  class=\"avatar avatar-200 wp-user-avatar wp-user-avatar-200 photo avatar-default\">\n                <\/div>\n                <div class=\"about-author__box-text\">\n                                            <h4>Teodor Irkhin<\/h4>\n                                                        <\/div>\n            <\/div>\n        <\/div>\n    <\/div>\n","protected":false},"author":1394,"featured_media":508969,"comment_status":"closed","ping_status":"closed","template":"","categories":[89],"tags":[21],"cross-post-tag":[],"acf":[],"_links":{"self":[{"href":"https:\/\/blog.jetbrains.com\/ja\/wp-json\/wp\/v2\/idea\/508843"}],"collection":[{"href":"https:\/\/blog.jetbrains.com\/ja\/wp-json\/wp\/v2\/idea"}],"about":[{"href":"https:\/\/blog.jetbrains.com\/ja\/wp-json\/wp\/v2\/types\/idea"}],"author":[{"embeddable":true,"href":"https:\/\/blog.jetbrains.com\/ja\/wp-json\/wp\/v2\/users\/1394"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.jetbrains.com\/ja\/wp-json\/wp\/v2\/comments?post=508843"}],"version-history":[{"count":10,"href":"https:\/\/blog.jetbrains.com\/ja\/wp-json\/wp\/v2\/idea\/508843\/revisions"}],"predecessor-version":[{"id":508999,"href":"https:\/\/blog.jetbrains.com\/ja\/wp-json\/wp\/v2\/idea\/508843\/revisions\/508999"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.jetbrains.com\/ja\/wp-json\/wp\/v2\/media\/508969"}],"wp:attachment":[{"href":"https:\/\/blog.jetbrains.com\/ja\/wp-json\/wp\/v2\/media?parent=508843"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.jetbrains.com\/ja\/wp-json\/wp\/v2\/categories?post=508843"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.jetbrains.com\/ja\/wp-json\/wp\/v2\/tags?post=508843"},{"taxonomy":"cross-post-tag","embeddable":true,"href":"https:\/\/blog.jetbrains.com\/ja\/wp-json\/wp\/v2\/cross-post-tag?post=508843"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}