Gradle을 이용하여 프로젝트를 수행하고 있을때 build.gradle 파일을 수정할 순간이 생겼는데 코드 어시던트(code assist) 기능이 안되어 당황했었던 순간이 있었다.
STS4에서 Maven 관련 플러그인이 자동포함되어 있고 기능이 쓸만해 Maven은 문제가 없지만 Gradle은 기본 플러그인의 기능이 약해서 따로 설치를 해주어야 한다.
설치환경
- JDK 11, STS 4.13.0
설치방법
1. Menu > Help > Eclipse Marketplace > gradle 로 검색, Egradle IDE 2.8.0 - Install 버튼 클릭
2. 라이센스 동의하면 설치가 진행되고 Restart Now 를 클릭하여 STS 재기동하면 설치가 완료된다.
설치가 완료되면 gradle 파일 아이콘이 변경되고 gradle 파일에서 컨트롤+스페이스바를 입력하면 코드 어시던트기능을 사용할 수 있다.
Menu > Window > Preference > EGradle 메뉴가 생성되어 Egradle 관련된 설정을 지정할 수 있다.
예외사항
Start 수치가 높은 Gradle IDE Pack 3.8.x 을 설치하고 싶었으나 알 수 없는 에러로 EGradle Plugin을 설치하게 되었다.
An error occurred while collecting items to be installed
session context was:(profile=DefaultProfile, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=).
Unable to read repository at http://download.springsource.com/release/TOOLS/gradle/3.9.4.RELEASE/plugins/org.springsource.ide.eclipse.gradle.core_3.9.4.201805142235-RELEASE.jar.
download.springsource.com:80 failed to respond
Gradle IDE Pack 은 STS3 까지만 지원이 되는 플러그인이거나 미지원 플러그인으로 정책이 변경되어 더이상 파일다운이 지원되지 않는 것 같다.
'Tool > SpringToolSuite(STS)' 카테고리의 다른 글
[STS] Tomcat Server 설정 후 구동시 에러(The server cannot be started because one or more of the ports are invalid.) (0) | 2022.04.13 |
---|---|
[STS] SVN 연결실패(Selected SVN connector library is not available or cannot be loaded.) (0) | 2022.02.09 |
[STS] Gradle 프로젝트에서 build 폴더가 안보이는 경우 해결방법 (0) | 2022.01.27 |
STS/Eclipse 다중 실행방법 (0) | 2021.06.06 |
STS 다운로드 및 설치 (0) | 2020.08.07 |