목록IntelliJ (23)
준호씨의 블로그
IntelliJ 에서 gradle 로 구성된 프로젝트를 열었는데 라이브러리나 소스파일 경로가 잡히지 않았다. gradle refresh 했는데 아래와 같은 오류가 보였다. Could not determine java version from '9.0.1' Preferences -> Build, Execution, Deployment -> Build Tools -> Gradle 에서 Gradle JVM 을 1.8 로 변경 해 주니 동작하였다. Java 9 을 제대로 인식하지 못하는 것 같다.
어느날 부터 IntelliJ 에서 Gradle Java 프로젝트를 생성하고 나면 기본 디렉토리들이 생성 되지 않았다. 아마 2018년 버전 부터 그렇게 된 것으로 추측 된다. 해결 방법은 Preferences (Cmd + ,)에 가서 "Create directories for empty content roots automatically" 를 선택 해 주면 된다. 참고 https://intellij-support.jetbrains.com/hc/en-us/community/posts/206154199-No-default-folders-created-in-new-gradle-project
Eclipse 는 Kent Beck 의 영향인지는 모르겠지만 TDD 를 위해 테스트를 먼저 생성하는 기능을 제공하고 있다. 그런데 IntelliJ 에는 이런 기능은 없고 이미 만들어진 클래스 기준으로 테스트를 생성하는 기능만 가지고 있다. Eclipse 에서 New JUnit Test Case 로 테스트 케이스를 먼저 만드는 모습이다. Jupiter test 는 또 뭐지? 오랜만에 Eclipse 를 설치 해서 그런가 좀 적응이 안되는 느낌이다. 방금 설치 한 Eclipse 버전은 Oxygen.3a 이다. IntelliJ 에서는 New JUnit Test Case 같은 기능은 없다. 다만 Eclipse 에서도 New JUnit Test Case 는 junit 을 import 할 뿐 특별한 건 없다. 그렇기..
There is a code with lombok @Slf4j public class SomeClass { ... log.info("blah blah"); IntelliJ could warn "Cannot resolve symbol log" for log. Install the lombok plugin. Preferences -> Plugins -> Browse repositories... -> search lombok -> Install "IntelliJ Lombok plugin" Then restart IntelliJ IDE.
osx installation brew install gradle 구 버전 설치 시 brew tap homebrew/versions brew search gradle brew install gradle@2.14 brew info gradle@2.14 /usr/local/Cellar/gradle@2.14/2.14.1 brew link --overwrite gradle@2.14 intelliJ /usr/local/opt/gradle/libexec 버전별 구분 하려면 /usr/local/Cellar/gradle/X.X/libexec 참고 https://gist.github.com/l1x/d8ba66343fceb927d691