sggnology
하늘속에서IT
sggnology
전체 방문자
오늘
어제
  • 분류 전체보기 (83)
    • Algorithm (31)
      • Programmers (27)
      • Baekjoon (4)
    • WIKI (4)
      • VirtualBox (1)
      • Power Toys (1)
    • NodeJS (4)
      • nvm (1)
      • React (1)
      • Vue (1)
    • Dev Language (3)
      • Java (2)
      • Kotlin (1)
    • Spring Boot (17)
      • Gradle (1)
      • JPA (3)
    • DB (4)
      • MariaDB (3)
      • Redis (0)
    • Android (6)
      • Debug (3)
    • Nginx (3)
      • Debug (1)
    • Intellij (0)
    • Network (1)
    • Git (2)
      • GitHub (2)
    • Chrome Extension (0)
    • ETC (5)
      • Monitoring (2)
    • Linux (1)
      • WSL (1)
    • Visual Studio (1)
    • Side Project (0)

블로그 메뉴

  • 홈
  • 태그
  • 방명록

공지사항

인기 글

태그

  • nginx
  • JPA
  • 레벨2
  • DB
  • 오블완
  • 레벨3
  • 연습문제
  • 알고리즘
  • 고득점KIT
  • 백준
  • 고득점 Kit
  • kotlin
  • 티스토리챌린지
  • java
  • 프로그래머스
  • mariadb
  • docker
  • spring boot
  • Android Studio
  • 안드로이드 스튜디오

최근 댓글

최근 글

티스토리

hELLO · Designed By 정상우.
sggnology

하늘속에서IT

[Gradle] Spring Boot + Gradle 환경에서 bootBuildImage 의 createdDate(생성 일자)의 표기가 1980년도로 되어있다면?(feat. kotlin, intellij)
Spring Boot/Gradle

[Gradle] Spring Boot + Gradle 환경에서 bootBuildImage 의 createdDate(생성 일자)의 표기가 1980년도로 되어있다면?(feat. kotlin, intellij)

2023. 10. 17. 00:39
728x90

발단

intellij 환경에서 gradle 플러그인을 통해 bootBuildImage 로 docker 의 image 를 관리할 때 생성일자가 과거로 설정되어있는 것을 확인하였다. 

 

환경

  • Spring Boot 3.1.3(kotlin)
  • build.gradle.kts

해결

tasks.withType<BootBuildImage>{
    ...
    createdDate = "now" // 또는 ISO 8601 규격에 맞는 값을 입력
}

참고

  • stack overflow 를 통한 원인

 

 

Spring Boot 2.3.0 buildpack builds image with creation date 40 years ago

I've tried to use buildpack in a maven project with Spring Boot 2.3.0 running: mvn spring-boot:build-image Image was created just fine, but I see the following info for it: REPOSITORY ...

stackoverflow.com

  • spring boot 배포 문서

 

 

Spring Boot 3.1.0 RC1 Release Notes

Spring Boot. Contribute to spring-projects/spring-boot development by creating an account on GitHub.

github.com

  • spring 측 gradle 문서(`createdDate` 를 검색하세요)
 

Spring Boot Maven Plugin Documentation

While you may start your Spring Boot application very easily from your test (or test suite) itself, it may be desirable to handle that in the build itself. To make sure that the lifecycle of your Spring Boot application is properly managed around your inte

docs.spring.io

 

728x90
    sggnology
    sggnology
    하늘은 파란색이니까 내 삶도 파란색이길 ㅎㅎ

    티스토리툴바