๋ฐ์ํ
> Task :project_name:jib FAILED
:project_name:jib (Thread[Execution worker for ':' Thread 3,5,main]) completed. Took 0.001 secs.
FAILURE: Build failed with an exception.
* What went wrong:
Some problems were found with the configuration of task ':project_name:jib' (type 'BuildImageTask').
- In plugin 'com.google.cloud.tools.jib' type 'com.google.cloud.tools.jib.gradle.BuildImageTask' property 'jib.allowInsecureRegistries' of type boolean shouldn't be annotated with @Optional.
Reason: Properties of primitive type cannot be optional.
Possible solutions:
1. Remove the @Optional annotation.
2. Use the java.lang.Boolean type instead.
Please refer to https://docs.gradle.org/7.2/userguide/validation_problems.html#cannot_use_optional_on_primitive_types for more details about this problem.
- In plugin 'com.google.cloud.tools.jib' type 'com.google.cloud.tools.jib.gradle.BuildImageTask' property 'jib.container.useCurrentTimestamp' of type boolean shouldn't be annotated with @Optional.
Reason: Properties of primitive type cannot be optional.
Possible solutions:
1. Remove the @Optional annotation.
2. Use the java.lang.Boolean type instead.
Please refer to https://docs.gradle.org/7.2/userguide/validation_problems.html#cannot_use_optional_on_primitive_types for more details about this problem.
* Try:
Run with --stacktrace option to get the stack trace. Run with --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 2s
7 actionable tasks: 1 executed, 6 up-to-date
์ํฉ : jib ํ๋ฌ๊ทธ์ธ์ ํตํ ์ด๋ฏธ์ง ์ ๋ก๋ ์คํ ์ค ๋ฐ์ํ ์๋ฌ
ํด๊ฒฐ : jib ๋ฒ์ ์ 1.4.0 ์์ 1.8.0 ์ผ๋ก ์ ๊ทธ๋ ์ด๋. gradle 6.9 ์์ ๋๋ ๋ฌธ์ ์์๋๋ฐ, 7๋ฒ์ ๋๋ก ์ฌ๋ผ์ค๋ฉด์ ๋ฒ์ ํธํ์ด ์๋ง๋ ๋ฏ ํ๋ค.
728x90
๋ฐ์ํ
๋๊ธ