반응형
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 | 31 |
Tags
- java 1.8 11
- parse
- LeetCode
- aws
- java 여러개 버전
- xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools)
- springboot
- OpenFeign
- statement.executequery() cannot issue statements that do not produce result sets.
- No tests found for given includes
- mysql executequery error
- java 11
- 스프링부트테스트
- mac os git error
- error
- java
- JUnit
- Java 1.8
- easy
- java version
- log error
- AWS CLI
- Medium
- java 버전 변경
- xcrun: error: invalid active developer path
- tls프로토콜확인
- springboottest
- yum install java
- ssl프로토콜확인
- ssl이란?
Archives
- Today
- Total
쩨이엠 개발 블로그
[ Spring boot] Could not resolve all files for configuration compileClasspath 본문
개발/Spring
[ Spring boot] Could not resolve all files for configuration compileClasspath
쩨이엠 2020. 8. 24. 15:56728x90
반응형
기본만 있었던 dependency에 redis를 추가해야할 일이 생겼다
build.gradle 에 추가해준다
dependencies {
...
implementation 'org.springframework.boot:spring-boot-starter-data-redis-reactive'
implementation 'org.springframework.session:spring-session-data-redis'
...
}
추가해 준 후 version이 없다는 에러가 났다
그 위에 plugins을 추가해준다
plugins {
id 'org.springframework.boot' version '2.3.3.RELEASE'
}
dependencies {
...
implementation 'org.springframework.boot:spring-boot-starter-data-redis-reactive'
implementation 'org.springframework.session:spring-session-data-redis'
...
}
이렇게 plugins으로 추가하면 이 버전에 맞는 버전들로 하위 dependency 버전을 제어할 수 있다
이제 되겠지
$ gradle build
> Task :iot_gw:compileJava FAILED
During the build, one or more dependencies that were declared without a version failed to resolve:
org.springframework.session:spring-session-data-redis:
org.springframework.boot:spring-boot-starter-data-redis-reactive:
Did you forget to apply the io.spring.dependency-management plugin to the iot_gw project?
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':iot_gw:compileJava'.
> Could not resolve all files for configuration ':iot_gw:compileClasspath'.
> Could not find org.springframework.boot:spring-boot-starter-data-redis-reactive:.
Required by:
project :iot_gw
> Could not find org.springframework.session:spring-session-data-redis:.
Required by:
project :iot_gw
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/6.5/userguide/command_line_interface.html#sec:command_line_warnings
BUILD FAILED in 2s
1 actionable task: 1 executed
칼같이 에러가 났다
구글링을 해도 plugins를 하라는 말밖에 하지 않았다
자세히 읽어봐도 모르겠는데 forget..? 뭘 잊었냐고 묻는다
봤더니 plugin 중에 io.spring.dependency-management 를 적용했냐는 물음이 있다
재빨리 적용해본다
plugins {
id 'org.springframework.boot' version '2.3.3.RELEASE'
id 'io.spring.dependency-management' version '1.0.9.RELEASE'
}
dependencies {
...
implementation 'org.springframework.boot:spring-boot-starter-data-redis-reactive'
implementation 'org.springframework.session:spring-session-data-redis'
...
}
그 후 빌드해보면 제대로 빌드가 되는 것을 확인할 수 있다
$ gradle build
BUILD SUCCESSFUL in 12s
3 actionable tasks: 1 executed, 2 up-to-date
728x90
반응형
'개발 > Spring' 카테고리의 다른 글
[ JUnit ] JUnit Test (0) | 2021.01.20 |
---|---|
[ Redis ] Redis 환경 간단하게 구축하기 (0) | 2020.09.16 |
Maven pom to gradle (0) | 2020.07.13 |
[ Spring ] spring init 초기화 메소드 @PostConstruct (0) | 2020.07.01 |
[ Spring ] Failed to determine a suitable driver class (0) | 2020.06.29 |
Comments