{"id":263740,"date":"2022-07-11T10:00:00","date_gmt":"2022-07-11T09:00:00","guid":{"rendered":"https:\/\/blog.jetbrains.com\/kotlin\/2022\/06\/introducing-kotlin-build-reports\/"},"modified":"2022-07-12T09:57:46","modified_gmt":"2022-07-12T08:57:46","slug":"introducing-kotlin-build-reports","status":"publish","type":"kotlin","link":"https:\/\/blog.jetbrains.com\/zh-hans\/kotlin\/2022\/07\/introducing-kotlin-build-reports\/","title":{"rendered":"\u9686\u91cd\u63a8\u51fa Kotlin \u6784\u5efa\u62a5\u544a"},"content":{"rendered":"\n<p>\u4ece Kotlin 1.7.0 \u5f00\u59cb\uff0c\u60a8\u53ef\u4ee5\u4e3a Kotlin \u7f16\u8bd1\u5668\u4efb\u52a1\u521b\u5efa<strong>\u6784\u5efa\u62a5\u544a<\/strong>\u3002&nbsp;\u62a5\u544a\u5305\u542b\u4e0d\u540c\u7f16\u8bd1\u9636\u6bb5\u7684\u6301\u7eed\u65f6\u95f4\u4ee5\u53ca\u65e0\u6cd5\u4f7f\u7528\u589e\u91cf\u7f16\u8bd1\u7684\u539f\u56e0\u3002&nbsp;\u6b64\u529f\u80fd\u76ee\u524d\u4ecd\u4e3a<a href=\"https:\/\/kotlinlang.org\/docs\/components-stability.html#stability-levels-explained\" target=\"_blank\" rel=\"noopener\">\u5b9e\u9a8c\u6027\u529f\u80fd<\/a>\uff0c\u56e0\u6b64\u6307\u6807\u5217\u8868\u672a\u6765\u53ef\u80fd\u4f1a\u53d1\u751f\u53d8\u5316\u3002<\/p>\n\n\n\n<p align=\"center\"><a class=\"ek-link jb-download-button\" title=\"\u8bd5\u7528\u6784\u5efa\u62a5\u544a\" href=\"https:\/\/blog.jetbrains.com\/kotlin\/2022\/06\/introducing-kotlin-build-reports\/#enable_build_reports\">\u8bd5\u7528\u6784\u5efa\u62a5\u544a<\/a><\/p>\n\n\n\n<p>\u60f3\u8981\u8c03\u67e5\u7f16\u8bd1\u5668\u4efb\u52a1\u7684\u95ee\u9898\u65f6\uff0c\u6784\u5efa\u62a5\u544a\u5c31\u53ef\u4ee5\u6d3e\u4e0a\u7528\u573a\u3002&nbsp;\u4f8b\u5982\uff0c\u5f53 Gradle \u6784\u5efa\u82b1\u8d39\u8fc7\u591a\u65f6\u95f4\u65f6\uff0c\u96be\u4ee5\u7406\u89e3\u6027\u80fd\u4e0d\u4f73\u7684\u6839\u672c\u539f\u56e0\u3002&nbsp;\u6216\u8005\uff0c\u76f8\u540c\u9879\u76ee\u7684\u7f16\u8bd1\u65f6\u95f4\u4e0d\u540c\uff1a\u6709\u65f6\u9700\u8981\u51e0\u79d2\u949f\uff0c\u6709\u65f6\u9700\u8981\u51e0\u5206\u949f\u3002<\/p>\n\n\n\n<p>Kotlin \u6784\u5efa\u62a5\u544a\u80fd\u591f\u6bd4&nbsp;<a href=\"https:\/\/scans.gradle.com\/\" target=\"_blank\" rel=\"noopener\">Gradle \u6784\u5efa\u626b\u63cf<\/a>\u66f4\u6709\u6548\u5730\u5c55\u793a\u95ee\u9898\u3002&nbsp;\u8bb8\u591a\u5de5\u7a0b\u5e08\u4f7f\u7528\u5b83\u4eec\u6765\u8c03\u67e5\u6784\u5efa\u6027\u80fd\uff0c\u4f46 Gradle \u626b\u63cf\u4e2d\u7684\u7c92\u5ea6\u5355\u4f4d\u662f\u5355\u4e2a Gradle \u4efb\u52a1\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"enable_build_reports\">\u5982\u4f55\u542f\u7528\u6784\u5efa\u62a5\u544a<\/h2>\n\n\n\n<p>\u8981\u542f\u7528\u6784\u5efa\u62a5\u544a\uff0c\u9996\u5148\u5728&nbsp;<code>gradle.properties<\/code>&nbsp;\u4e2d\u58f0\u660e\u4fdd\u5b58\u6784\u5efa\u62a5\u544a\u7684\u8f93\u51fa\u4f4d\u7f6e\uff1a<\/p>\n\n\n\n<p><code>kotlin.build.report.output=file<\/code><\/p>\n\n\n\n<p>\u4ee5\u4e0b\u503c\uff08\u53ca\u5176\u7ec4\u5408\uff09\u53ef\u7528\uff1a<\/p>\n\n\n\n<ul><li><code>file<\/code>\uff0c\u5c06\u6784\u5efa\u62a5\u544a\u4fdd\u5b58\u5230\u672c\u5730\u6587\u4ef6\u4e2d\u3002&nbsp;\u9ed8\u8ba4\u6587\u4ef6\u4e3a&nbsp;<code>${project_folder}\/build\/reports\/kotlin-build\/${project_name}-timestamp.txt<\/code>\u3002<\/li><li><code>build_scan<\/code>\uff0c\u5c06\u6784\u5efa\u62a5\u544a\u4fdd\u5b58\u5230\u6784\u5efa\u626b\u63cf\u7684\u81ea\u5b9a\u4e49\u503c\u90e8\u5206\u4e2d\u3002&nbsp;\u8bf7\u6ce8\u610f\uff0cGradle Enterprise \u63d2\u4ef6\u4f1a\u9650\u5236\u81ea\u5b9a\u4e49\u503c\u7684\u6570\u91cf\u53ca\u5176\u957f\u5ea6\u3002&nbsp;\u8fd9\u53ef\u80fd\u5bfc\u81f4\u5904\u7406\u5927\u578b\u9879\u76ee\u65f6\u4e22\u5931\u67d0\u4e9b\u503c\u3002<\/li><li><code>http<\/code>\uff0c\u4f7f\u7528 HTTP(S) \u8bf7\u6c42\u53d1\u5e03\u6784\u5efa\u62a5\u544a\u3002&nbsp;POST \u65b9\u6cd5\u4ee5 JSON \u683c\u5f0f\u53d1\u9001\u6307\u6807\u3002&nbsp;\u6570\u636e\u53ef\u80fd\u56e0\u7248\u672c\u800c\u5f02\uff0c\u8bf7\u5728&nbsp;<a href=\"https:\/\/github.com\/JetBrains\/kotlin\/blob\/master\/libraries\/tools\/kotlin-gradle-plugin\/src\/common\/kotlin\/org\/jetbrains\/kotlin\/gradle\/plugin\/statistics\/CompileStatisticsData.kt\" target=\"_blank\" rel=\"noopener\">Kotlin \u4ed3\u5e93<\/a>\u4e2d\u67e5\u770b\u5df2\u53d1\u9001\u6570\u636e\u7684\u5f53\u524d\u7248\u672c\u3002<\/li><\/ul>\n\n\n\n<p>\u5982\u679c\u60a8\u6ca1\u6709 HTTP \u7aef\u70b9\uff0c\u8bf7\u4f7f\u7528\u4ee5\u4e0b\u793a\u4f8b\u4e4b\u4e00\uff1a<\/p>\n\n\n\n<ol><li><strong>\u57fa\u4e8e ELK \u5806\u6808\u7684 HTTP \u7aef\u70b9\u3002<\/strong>&nbsp;\u5b89\u88c5&nbsp;<a href=\"https:\/\/www.elastic.co\/elastic-stack\/\" target=\"_blank\" rel=\"noopener\">Elasticsearch<\/a>&nbsp;\u5b9e\u4f8b\u5e76\u4e3a Logstash \u4f7f\u7528\u4ee5\u4e0b\u914d\u7f6e\uff1a<\/li><\/ol>\n\n\n\n<pre class=\"kotlin-code\" data-highlight-only=\"true\" theme=\"idea\" indent=\"4\" style=\"visibility: hidden; padding: 36px 0;\">\ninput { \n    http {}\n}\nfilter {\n   date {\n        match =&gt; [ &quot;timestamp&quot;, &quot;yyyy-MM-dd&#039;T&#039;HH:mm:ss&quot; ]\n        timezone =&gt; &quot;UTC&quot;\n        target =&gt; &quot;@timestamp&quot;\n    }\n    mutate { remove_field =&gt; [ &quot;http&quot;, &quot;url&quot; ] }\n}\noutput {\n    elasticsearch {\n        index =&gt; &quot;kotlin_reports&quot;\n    }\n}\n<\/pre>\n\n\n\n<ol start=\"2\"><li><strong>\u57fa\u4e8e Kotlin<\/strong>&nbsp;\u7684&nbsp;<a href=\"https:\/\/github.com\/ausatiy\/kotlin-build-report-sample\" target=\"_blank\" rel=\"noopener\"><strong>HTTP \u7aef\u70b9<\/strong><\/a>\u3002&nbsp;\u5982\u679c\u91cd\u65b0\u7f16\u8bd1\u4e3a CSV \u6587\u4ef6\uff0c\u5b83\u5c06\u4fdd\u5b58\u7f16\u8bd1\u65f6\u957f\u548c\u975e\u589e\u91cf\u7f16\u8bd1\u539f\u56e0\u7684\u76f8\u5173\u4fe1\u606f\u3002<\/li><\/ol>\n\n\n\n<p>\u8981\u8fdb\u4e00\u6b65\u8bbe\u7f6e\u6784\u5efa\u62a5\u544a\uff0c\u8bf7\u4e3a&nbsp;<code>gradle.properties<\/code>&nbsp;\u4f7f\u7528\u4ee5\u4e0b\u9009\u9879\uff1a<\/p>\n\n\n\n<pre class=\"kotlin-code\" data-highlight-only=\"true\" theme=\"idea\" indent=\"4\" style=\"visibility: hidden; padding: 36px 0;\">\n# Required outputs. Any combinations are allowed\nkotlin.build.report.output=file,http,build_scan\n\n# Optional. Output directory for file-based reports. Default: build\/reports\/kotlin-build\/\nkotlin.build.report.file.output_dir=kotlin-reports\n\n# Mandatory if http output is used. Where to post HTTP(S)-based reports\nkotlin.build.report.http.url=http:\/\/127.0.0.1:8080\n\n# Optional. User and password if the HTTP endpoint requires authentication\nkotlin.build.report.http.user=someUser\nkotlin.build.report.http.password=somePassword\n\n# Optional. Label for marking your build report (e.g. debug parameters)\nkotlin.build.report.label=some_label\n<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">\u5982\u4f55\u9605\u8bfb\u6784\u5efa\u62a5\u544a<\/h2>\n\n\n\n<p>\u8fd9\u91cc\u7684\u4f18\u5316\u8fc7\u7a0b\u5f88\u6709\u521b\u610f\u3002&nbsp;\u73b0\u6210\u6307\u5357\u7ecf\u5e38\u5f88\u96be\u63d0\u4f9b\uff0c\u60a8\u9700\u8981\u5177\u4f53\u60c5\u51b5\u5177\u4f53\u5206\u6790\u3002&nbsp;\u4f46\u6709\u65f6\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u7ba1\u9053\u83b7\u5f97\u826f\u597d\u7ed3\u679c\uff1a<\/p>\n\n\n\n<p>1.&nbsp;\u4e86\u89e3\u6784\u5efa\u5e76\u975e\u589e\u91cf\u7684\u539f\u56e0\u5e76\u4fee\u6b63\u5e95\u5c42\u95ee\u9898\u3002<\/p>\n\n\n\n<p>2.&nbsp;\u5982\u679c\u589e\u91cf\u7f16\u8bd1\u9700\u8981\u8fc7\u591a\u65f6\u95f4\uff0c\u53ef\u4ee5\u91cd\u65b0\u7ec4\u7ec7\u6e90\u4ee3\u7801\u6587\u4ef6\u3002&nbsp;\u4f8b\u5982\uff0c\u4e0d\u5c06\u6240\u6709\u7c7b\u6253\u5305\u5728\u4e00\u4e2a\u6587\u4ef6\u4e2d\uff0c\u4e0d\u5c06\u6240\u6709\u9876\u7ea7\u51fd\u6570\u58f0\u660e\u5728\u4e00\u4e2a\u6587\u4ef6\u4e2d\uff0c\u7b49\u7b49\u3002<\/p>\n\n\n\n<p>\u6211\u4eec\u6765\u770b\u4e00\u770b\u751f\u6210\u7684\u6784\u5efa\u62a5\u544a\u3002&nbsp;\u6267\u884c\u8fd9\u4e2a\u4efb\u52a1\u82b1\u8d39\u4e86\u5c06\u8fd1 40 \u79d2\uff1a<\/p>\n\n\n\n<pre class=\"kotlin-code\" data-highlight-only=\"true\" theme=\"idea\" indent=\"4\" style=\"visibility: hidden; padding: 36px 0;\">\nTask &#039;:kotlin-gradle-plugin:compileCommonKotlin&#039; finished in 39,73 s\nCompilation log for task &#039;:kotlin-gradle-plugin:compileCommonKotlin&#039;:\n  Non-incremental compilation will be performed: UNKNOWN_CHANGES_IN_GRADLE_INPUTS\nTime metrics:\n  Total Gradle task time: 39,73 s\n  Task action: 0,09 s\n    Calculate output size: 0,01 s\n    Run compilation: 39,32 s\n      Incremental compilation in daemon: 39,27 s\n        Update caches: 0,40 s\n        Sources compilation round: 38,57 s\n  Compiler initialization time: 1,02 s\n  Compiler code analysis: 26,36 s\n  Compiler code generation: 10,87 s\nSize metrics:\n  Total size of the cache directory: 6,2 MB\n    ABI snapshot size: 49 B\n  Total compiler iteration: 1\nBuild attributes:\n  REBUILD_REASON: Unknown Gradle changes\n<\/pre>\n\n\n\n<p>Total Gradle \u4efb\u52a1\u65f6\u95f4\u663e\u793a\u4e86\u4ece\u4efb\u52a1\u6267\u884c\u5230\u4fa6\u542c\u5668\u901a\u77e5\u7684\u65f6\u95f4\u3002&nbsp;\u4efb\u52a1\u64cd\u4f5c\u4ec5\u6307\u793a\u5728 Gradle \u5de5\u4f5c\u8fdb\u7a0b\u4e2d\u5b89\u6392\u7f16\u8bd1\u4f5c\u4e1a\u7684\u4efb\u52a1\u3002&nbsp;\u7f16\u8bd1\u672c\u8eab\u5728 Gradle \u5de5\u4f5c\u8fdb\u7a0b\u4e2d\u6267\u884c\u3002&nbsp;\u60a8\u53ef\u4ee5\u5728\u8fd0\u884c\u7f16\u8bd1\u90e8\u5206\u67e5\u770b\u5176\u7f16\u8bd1\u65f6\u95f4\u3002<\/p>\n\n\n\n<p>\u6211\u4eec\u770b\u5230\u8fd9\u4e2a\u6a21\u5757\u662f\u4ee5\u975e\u589e\u91cf\u65b9\u5f0f\u6784\u5efa\u7684\uff0c\u56e0\u4e3a Gradle \u65e0\u6cd5\u8ba1\u7b97\u8f93\u5165\u4e4b\u95f4\u7684\u5dee\u5f02\u3002&nbsp;\u8fd9\u901a\u5e38\u53d1\u751f\u5728\u5e72\u51c0\u6784\u5efa\u4e2d\u6216\u5728\u6784\u5efa\u811a\u672c\u4e2d\u6267\u884c\u4e86\u66f4\u6539\u65f6\u3002&nbsp;\u7531\u4e8e\u589e\u91cf\u7f16\u8bd1\u4e0d\u53ef\u7528\uff0c\u51e0\u4e4e\u6240\u6709\u65f6\u95f4\u90fd\u82b1\u5728\u4e86\u4ee3\u7801\u5206\u6790\u4e0a\u3002<\/p>\n\n\n\n<p>\u7f16\u8bd1\u65e0\u6cd5\u589e\u91cf\u7684\u6700\u5e38\u89c1\u539f\u56e0\uff1a<\/p>\n\n\n\n<ul><li><code>DEP_CHANGE_HISTORY_NO_KNOWN_BUILDS<\/code>&nbsp;\u2013 \u8fd9\u8868\u793a\u5148\u524d\u6ca1\u6709\u7f16\u8bd1\u67d0\u4e2a\u4f9d\u8d56\u6a21\u5757\uff0c\u6216\u8005\u5176\u5386\u53f2\u8bb0\u5f55\u6587\u4ef6\u5df2\u88ab\u4fdd\u7ba1\u8d77\u6765\u3002<\/li><li><code>DEP_CHANGE_HISTORY_IS_NOT_FOUND<\/code>&nbsp;\u2013 \u8fd9\u8868\u793a\u67d0\u4e2a\u66f4\u6539\u7684\u4f9d\u8d56\u9879\u4e0d\u662f\u6e90\u6a21\u5757\u6216\u975e Kotlin \u6a21\u5757\u3002<\/li><li><code>OUT_OF_PROCESS_EXECUTION, IN_PROCESS_EXECUTION<\/code>&nbsp;\u2013 \u8fd9\u8868\u793a\u589e\u91cf\u7f16\u8bd1\u53ef\u5728 Kotlin \u5b88\u62a4\u8fdb\u7a0b\u4e2d\u6267\u884c\u3002&nbsp;\u5176\u4ed6\u6a21\u5f0f\u90fd\u4f1a\u5f3a\u5236\u8fdb\u884c\u975e\u589e\u91cf\u6784\u5efa\u3002<\/li><\/ul>\n\n\n\n<p>\u540e\u7eed\u6587\u7ae0\u5c06\u53d1\u5e03\u5173\u4e8e Kotlin \u589e\u91cf\u7f16\u8bd1\u7684\u66f4\u591a\u8be6\u7ec6\u4fe1\u606f\u3002&nbsp;\u656c\u8bf7\u5173\u6ce8\uff01<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u6211\u4eec\u5982\u4f55\u5728 JetBrains \u4e2d\u4f7f\u7528\u6784\u5efa\u62a5\u544a<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">\u51cf\u5c11\u7f16\u8bd1\u65f6\u95f4<\/h3>\n\n\n\n<p>\u4ee5&nbsp;<a href=\"https:\/\/www.jetbrains.com.cn\/space\/\" target=\"_blank\" rel=\"noopener\">Space<\/a>&nbsp;\u9879\u76ee\u7684\u8fd9\u4e2a\u6784\u5efa\u62a5\u544a\u4e3a\u4f8b\u3002&nbsp;\u6211\u4eec\u6709\u4e00\u4e2a\u5305\u542b\u5927\u91cf\u751f\u6210\u7684\u6e90\u4ee3\u7801\u6587\u4ef6\u7684\u6a21\u5757\u3002&nbsp;\u867d\u7136\u7f16\u8bd1\u662f\u589e\u91cf\u7684\uff0c\u4f46 Kotlin \u7f16\u8bd1\u5668\u4ecd\u7136\u5fc5\u987b\u5728\u6bcf\u6b21\u66f4\u6539\u65f6\u91cd\u65b0\u5206\u6790\u5927\u578b\u6e90\u4ee3\u7801\u6587\u4ef6\u3002<\/p>\n\n\n\n<pre class=\"kotlin-code\" data-highlight-only=\"true\" theme=\"idea\" indent=\"4\" style=\"visibility: hidden; padding: 36px 0;\">\nCompile iteration:\n    &lt;a large=&quot;&quot; generated=&quot;&quot; source=&quot;&quot; file=&quot;&quot;&gt;\nTime metrics:\n  Total Gradle task time: 108,98 s\n  Task action: 0,20 s\n    Backup output: 0,18 s\n    Connect to Kotlin daemon: 0,01 s\n    Calculate output size: 0,01 s\n    Run compilation: 108,23 s\n      Incremental compilation in daemon: 108,19 s\n        Calculate initial dirty sources set: 0,23 s\n          Analyze dependency changes: 0,03 s\n          Detect removed classes: 0,19 s\n        Update caches: 0,28 s\n        Sources compilation round: 107,49 s\n  Compiler initialization time: 0,12 s\n  Compiler code analysis: 80,26 s\n  Compiler code generation: 25,04 s\nSize metrics:\n  Total size of the cache directory: 3,2 MB\n    ABI snapshot size: 643 B\n  Total compiler iteration: 1\n<\/pre><\/a>\n\n\n\n<p><\/p>\n\n\n\n<p>\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u5efa\u8bae\u7684\u505a\u6cd5\u662f\u91cd\u65b0\u7ec4\u7ec7\u6e90\u4ee3\u7801\uff1a\u4f8b\u5982\u62c6\u5206\u5927\u578b\u6587\u4ef6\u3001\u5c06\u4e0d\u540c\u7684\u7c7b\u7f6e\u4e8e\u4e0d\u540c\u7684\u6587\u4ef6\u4e2d\u3001\u91cd\u6784\u5927\u578b\u7c7b\u7b49\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u8ddf\u8e2a\u6027\u80fd\u56de\u5f52<\/h3>\n\n\n\n<p>Kotlin \u56e2\u961f\u4f7f\u7528\u6784\u5efa\u62a5\u544a\u8ddf\u8e2a\u591a\u4e2a\u9879\u76ee\u7684\u7f16\u8bd1\u3002&nbsp;\u6211\u4eec\u8ba9\u5f00\u53d1\u8005\u4e3a\u6784\u5efa\u62a5\u544a\u542f\u7528 HTTP \u7aef\u70b9\uff0c\u4ee5\u5728\u4e00\u4e2a\u4f4d\u7f6e\u67e5\u770b\u603b\u4f53\u6784\u5efa\u6027\u80fd\u3002&nbsp;\u4f8b\u5982\uff0c\u60a8\u53ef\u4ee5\u5728 Kotlin \u6216 Gradle \u7248\u672c\u66f4\u65b0\u540e\u5feb\u901f\u68c0\u67e5\u6027\u80fd\u56de\u5f52\u5e76\u627e\u5230\u8fd0\u884c\u65f6\u95f4\u957f\u7684\u7f16\u8bd1\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" loading=\"lazy\" width=\"1920\" height=\"1080\" src=\"https:\/\/blog.jetbrains.com\/wp-content\/uploads\/2022\/06\/Kotlin-Build-Reports-CN_3.png\" alt=\"\" class=\"wp-image-263824\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" loading=\"lazy\" width=\"1920\" height=\"1080\" src=\"https:\/\/blog.jetbrains.com\/wp-content\/uploads\/2022\/06\/Kotlin-Build-Reports-CN_4.png\" alt=\"\" class=\"wp-image-263802\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" loading=\"lazy\" width=\"1920\" height=\"1080\" src=\"https:\/\/blog.jetbrains.com\/wp-content\/uploads\/2022\/06\/Kotlin-Build-Reports-CN_5.png\" alt=\"\" class=\"wp-image-263780\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" loading=\"lazy\" width=\"1920\" height=\"1080\" src=\"https:\/\/blog.jetbrains.com\/wp-content\/uploads\/2022\/06\/Kotlin-Build-Reports-CN_6.png\" alt=\"\" class=\"wp-image-263813\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" loading=\"lazy\" width=\"1920\" height=\"1080\" src=\"https:\/\/blog.jetbrains.com\/wp-content\/uploads\/2022\/06\/Kotlin-Build-Reports-CN_7.png\" alt=\"\" class=\"wp-image-263791\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" loading=\"lazy\" width=\"1920\" height=\"1080\" src=\"https:\/\/blog.jetbrains.com\/wp-content\/uploads\/2022\/06\/Kotlin-Build-Reports-CN_8.png\" alt=\"\" class=\"wp-image-263758\"\/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">\u5206\u4eab\u53cd\u9988<\/h2>\n\n\n\n<p>\u6b22\u8fce\u5728\u60a8\u7684\u57fa\u7840\u67b6\u6784\u4e2d\u8bd5\u7528\u6784\u5efa\u62a5\u544a\u3002&nbsp;\u5982\u679c\u60a8\u6709\u4efb\u4f55\u53cd\u9988\u3001\u9047\u5230\u95ee\u9898\u6216\u60f3\u63d0\u51fa\u6539\u8fdb\u5efa\u8bae\uff0c\u8bf7\u968f\u65f6\u5728\u6211\u4eec\u7684\u95ee\u9898<a href=\"https:\/\/youtrack.jetbrains.com\/issues\/KT\" target=\"_blank\" rel=\"noopener\">\u8ddf\u8e2a\u5668<\/a>\u4e2d\u62a5\u544a\u3002&nbsp;\u8c22\u8c22\uff01<\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p>\u672c\u535a\u6587\u82f1\u6587\u539f\u4f5c\u8005\uff1a<\/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:\/\/secure.gravatar.com\/avatar\/?s=200&#038;r=g\" width=\"200\" height=\"200\" alt=\"\" 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                                                        <\/div>\n            <\/div>\n        <\/div>\n    <\/div>\n","protected":false},"author":1297,"featured_media":263769,"comment_status":"closed","ping_status":"closed","template":"","categories":[89],"tags":[],"cross-post-tag":[],"acf":[],"_links":{"self":[{"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/kotlin\/263740"}],"collection":[{"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/kotlin"}],"about":[{"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/types\/kotlin"}],"author":[{"embeddable":true,"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/users\/1297"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/comments?post=263740"}],"version-history":[{"count":10,"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/kotlin\/263740\/revisions"}],"predecessor-version":[{"id":264232,"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/kotlin\/263740\/revisions\/264232"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/media\/263769"}],"wp:attachment":[{"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/media?parent=263740"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/categories?post=263740"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/tags?post=263740"},{"taxonomy":"cross-post-tag","embeddable":true,"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/cross-post-tag?post=263740"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}