- force re-download project dependencies
https://www.cloudhadoop.com/gradle-force-update#google_vignette
gradlew build --refresh-dependencies
configurations.all {
resolutionStrategy.cacheChangingModulesFor(0, "seconds")
}
implementation("...:1.0-SNAPSHOT") {
isChanging = true
}
https://findmypiece.tistory.com/m/351
Gradle 에서 SNAPSHOT 버전 의존성 관리
조직 내부에서 사용되는 라이브러리는 SNAPSHOT 버전으로 만들어서 내부 Nexus 에 저장해서 사용하곤 한다. 빌드툴에서는 기본적으로 버전이 변경될 경우에만 원격저장소와 로컬저장소의 의존성을
findmypiece.tistory.com
- handling version
https://docs.gradle.org/current/userguide/dynamic_versions.html
Handling versions which change over time
There are many situations when you want to use the latest version of a particular module dependency, or the latest in a range of versions. This can be a requirement during development, or you may be developing a library that is designed to work with a rang
docs.gradle.org
- cache 사용 안함
gradle.properties 파일에 아래 내용 추가
org.gradle.caching=false
https://docs.gradle.org/current/userguide/build_cache.html
Build Cache
As we have seen, built-in tasks, or tasks provided by plugins, are cacheable if their class is annotated with the Cacheable annotation. But what if you want to make cacheable a task whose class is not cacheable? Let’s take a concrete example: your build
docs.gradle.org
'gradle' 카테고리의 다른 글
Generating Javadoc With Gradle (0) | 2024.02.29 |
---|---|
gradle customizing - gradle 설치 디렉토리 및 파일들 (0) | 2023.10.06 |
gradle 호환성 (0) | 2023.02.26 |
repository server http 사용하도록 하는 설정 (0) | 2023.02.20 |
spring-boot-gradle-plugin (0) | 2023.02.12 |