現象
現在JitCI
はビルドが通ったり通らなかったりする状態となっており、これによってJitPack
への公開にも影響が出ています。
以下は実際に自分が踏んだエラーの例です。
Initステージでこけた例
58. FAILURE: Build failed with an exception.
59.
60. * What went wrong:
61. A problem occurred configuring root project 'Shared'.
62. > Could not resolve all artifacts for configuration ':classpath'.
63. > Could not find org.jetbrains.kotlin:kotlin-gradle-plugin:.
64. Required by:
65. project :
66. > Could not resolve org.jetbrains.kotlin.jvm:org.jetbrains.kotlin.jvm.gradle.plugin:1.3.72.
67. Required by:
68. project :
69. > Could not resolve org.jetbrains.kotlin.jvm:org.jetbrains.kotlin.jvm.gradle.plugin:1.3.72.
70. > Could not get resource 'http://cache/org/jetbrains/kotlin/jvm/org.jetbrains.kotlin.jvm.gradle.plugin/1.3.72/org.jetbrains.kotlin.jvm.gradle.plugin-1.3.72.pom'.
71. > Could not HEAD 'http://cache/org/jetbrains/kotlin/jvm/org.jetbrains.kotlin.jvm.gradle.plugin/1.3.72/org.jetbrains.kotlin.jvm.gradle.plugin-1.3.72.pom'.
72. > Read timed out
73. > Could not resolve org.jlleitschuh.gradle.ktlint:org.jlleitschuh.gradle.ktlint.gradle.plugin:9.2.1.
74. Required by:
75. project :
76. > Could not resolve org.jlleitschuh.gradle.ktlint:org.jlleitschuh.gradle.ktlint.gradle.plugin:9.2.1.
77. > Could not get resource 'http://cache/org/jlleitschuh/gradle/ktlint/org.jlleitschuh.gradle.ktlint.gradle.plugin/9.2.1/org.jlleitschuh.gradle.ktlint.gradle.plugin-9.2.1.pom'.
78. > Could not HEAD 'http://cache/org/jlleitschuh/gradle/ktlint/org.jlleitschuh.gradle.ktlint.gradle.plugin/9.2.1/org.jlleitschuh.gradle.ktlint.gradle.plugin-9.2.1.pom'.
79. > Read timed out
Buildステージでこけた例
112. FAILURE: Build failed with an exception.
113.
114. * What went wrong:
115. Could not determine the dependencies of task ':compileKotlin'.
116. > Could not resolve all files for configuration ':kotlinCompilerClasspath'.
117. > Could not resolve org.jetbrains.kotlin:kotlin-stdlib:1.3.72.
118. Required by:
119. project : > org.jetbrains.kotlin:kotlin-compiler-embeddable:1.3.72
120. > Could not resolve org.jetbrains.kotlin:kotlin-stdlib:1.3.72.
121. > Could not get resource 'http://cache/org/jetbrains/kotlin/kotlin-stdlib/1.3.72/kotlin-stdlib-1.3.72.pom'.
122. > Could not HEAD 'http://cache/org/jetbrains/kotlin/kotlin-stdlib/1.3.72/kotlin-stdlib-1.3.72.pom'.
123. > Read timed out
124. > Could not resolve org.jetbrains.kotlin:kotlin-reflect:1.3.72.
125. Required by:
126. project : > org.jetbrains.kotlin:kotlin-compiler-embeddable:1.3.72
127. > Could not resolve org.jetbrains.kotlin:kotlin-reflect:1.3.72.
128. > Could not get resource 'http://cache/org/jetbrains/kotlin/kotlin-reflect/1.3.72/kotlin-reflect-1.3.72.pom'.
129. > Could not HEAD 'http://cache/org/jetbrains/kotlin/kotlin-reflect/1.3.72/kotlin-reflect-1.3.72.pom'.
130. > Read timed out
原因は恐らくMaven Centralとgradle.orgのHTTP接続が無効化された影響だろうと考えています。
対処法
JitCI
のSettings
から、Commands
項のCache dependencies
を無効にすることでこの問題は回避できました。