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.

๋ฐ˜์‘ํ˜•
> 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
๋ฐ˜์‘ํ˜•

๋Œ“๊ธ€