0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

【JitPack】キャッシュ関係の問題でビルドが落ちる問題への対処【JitCI】

Last updated at Posted at 2020-05-16

現象

現在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接続が無効化された影響だろうと考えています。

対処法

JitCISettingsから、Commands項のCache dependenciesを無効にすることでこの問題は回避できました。

image.png

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?