마스터Q&A 안드로이드는 안드로이드 개발자들의 질문과 답변을 위한 지식 커뮤니티 사이트입니다. 안드로이드펍에서 운영하고 있습니다. [사용법, 운영진]

그래들 dependencies에 snapshot이 뭐하는 건지 아시는분 계실까요?

0 추천

아시는 분이 코드를 만들어 주셨는데요

기존에 없던 그래들에 빌드 - 디펜던시에 아래 처럼 추가해 주셨거든요

https://oss.sonatype.org/content/repositories/snapshots

 

이게 뭐하는건지 아시는분 계실까요?

초봉초봉 (3,480 포인트) 님이 2017년 12월 20일 질문

1개의 답변

0 추천

Stackoverflow에 있는 명료한 답변입니다.

A snapshot version in Maven is one that has not been released.

The idea is that before a 1.0 release (or any other release) is done, there exists a 1.0-SNAPSHOT. That version is what might become 1.0. It's basically "1.0 under development". This might be close to a real 1.0 release, or pretty far (right after the 0.9 release, for example).

The difference between a "real" version and a snapshot version is that snapshots might get updates. That means that downloading 1.0-SNAPSHOT today might give a different file than downloading it yesterday or tomorrow.

Usually, snapshot dependencies should only exist during development and no released version (i.e. no non-snapshot) should have a dependency on a snapshot version.

그러니까 스냅삿을 정식 릴리즈 버전은 아니고 아직 개발이 진행 중이어서 라이브러리 파일들이 업데이트될 가능성이 있는 겁니다. 쉽게 말하면 안정화 버전이 아니기 때문에 프로덕션 앱에서는 사용하지 않으시는게 좋겠습니다.

spark (227,830 포인트) 님이 2018년 1월 1일 답변
너무 답변이 다 아는사람에게 설명한게 아닌가 싶네요.. 스냅샷이란 사진을 찍듯이 그 순간의 버전을 저장하는개념인데, 간단하게 설명하자면 저 주소의 라이브러리 추가한거죠.
...