오류 메시지
Build file 'C:\Users\git\api-send\build.gradle' line: 22
A problem occurred evaluating root project 'api-send'.
> Failed to apply plugin 'org.gradle.java'.
> Could not get unknown property 'compileConfigurationName' for source set 'main' of type org.gradle.api.internal.tasks.DefaultSourceSet.
* 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.
원인
SourceSet.compileConfigurationName 속성이 depreacted 되었고, Gradle 7에서는 삭제됨.
해결방안
Gradle 7로 수정해야 하는 부분을 찾지 못하여, Gradle 6 버전으로 동작하도록 변경
Project > Settings 에 Gradle 설정에 Use Gradle from 설정 확인
저장소 root에서 gradle/wrapper/gradle-wrapper.propeties 파일 생성.
해당 파일에 gradle 버전6으로 설정 후, gradle refresh
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.8.3-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
https://tychejin.tistory.com/388
[IntelliJ] Gradle 버전 확인 및 변경
Gradle 버전 확인 및 변경 1. Gradle 설정 확인 Settings > Build, Execution, Deploymen > Build Tools > Gradle - Use Gradle from 에서 ‘gradle-wrapper.properties’ file 을 선택 2. Gradle 버전 확인 및 변경 Project Window > gradle > wrap
tychejin.tistory.com
'IDE > IntelliJ' 카테고리의 다른 글
[IntelliJ] 코드창 usages, usage 표시 해제 (0) | 2022.11.24 |
---|