본문 바로가기

카테고리 없음

./gradlew build 실행 후 에러

반응형

gradle 빌드 하니까 아래와 같은 에러 메시지가 나왔다.

Starting a Gradle Daemon (subsequent builds will be faster)

Deprecated Gradle features were used in this build, making it incompatible with Gradle 5.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/4.10.2/userguide/command_line_interface.html#sec:command_line_warnings

 

**문구 바꿔서 넣어봄. (./gradlew build → ./gradlew build --waring-mode all )

Detecting annotation processors on the compile classpath has been deprecated. Gradle 5.0 will ignore annotation processors on the compile classpath. The following annotation processors were detected on the compile classpath: 'lombok.launch.AnnotationProcessorHider$AnnotationProcessor' and 'lombok.launch.AnnotationProcessorHider$ClaimingProcessor'.  Please add them to the annotation processor path instead. If you did not intend to use annotation processors, you can use the '-proc:none' compiler argument to ignore them.

: 또 오류가 났는데 롬복의 버전이 안맞는것 같다.

 

**build.gradle 수정

수정전
수정후

출처 : https://stackoverflow.com/questions/50202843/gradle-deprecated-annotation-processor-warnings-for-lombok


또 에러가 나는데...

■위에 작업 싸그리 지우고 다시 아래의 출처대로 전부교체함.

출처 : https://jojoldu.tistory.com/539

 

전부 교체 후 main을 실행 시키니 아래의 오류가 나옴

 jdk를 21로 변경

이 블로그 대로 따라함. : https://dev-emmababy.tistory.com/139


아직 profiles가 변경이 안됨.

 

실행1 (실패): application.properties에서 기존에 쓰던 profile 삭제함.

spring.profiles.include=oauth  << 이부분 전체 삭제함.

■ 결과 :  No active profile set, falling back to default profiles: default

■에러메시지

Description:

Method springSecurityFilterChain in org.springframework.security.config.annotation.web.configuration.WebSecurityConfiguration required a bean of type 'org.springframework.security.oauth2.client.registration.ClientRegistrationRepository' that could not be found.

Action:

Consider defining a bean of type 'org.springframework.security.oauth2.client.registration.ClientRegistrationRepository' in your configuration.

■저 부분을 없애면 안된다는 에러라서 다시 원복함.

 

■실행2. application.properties, application-real.properties에 아래 4줄 추가.

Spring Boot가 2.4가 되면서 spring.profiles.include 옵션을 특정 프로필 파일에서 설정하지 않고, Profile Group을 만들어서 관리하라고 함. 그래서 변경함.

■실행3. application.properties 에 real 추가.


추가후 변경된 profiles 확인.

변경전
변경후

 

반응형