카테고리 없음
ubuntu gradle version up
당근개발자
2022. 11. 2. 11:17
docker로 띄운 ubuntu에서 maven to gradle 전환도중 gradle이 필요해서,
apt-get install gradle
apt-get 으로 gradle을 설치했지만 4.4.1 버전이 설치되었다.
gradle로 migration을 하기위해서는 7 버전대가 필요했다.
sdkman을 활용해서 gradle을 설치해보겠다.
// sdkman을 설치하기위해 zip 선행 다운
apt-get install zip
curl -s "https://get.sdkman.io" | bash
source "$HOME/.sdkman/bin/sdkman-init.sh"
// sdk version 체크
sdk version
sdk install gradle 7.1
sdk로 원하는 gradle 버전을 명시하고 다운로드 명령어를 날리면
root@792dfc40d2ee:/home# gradle -version
Welcome to Gradle 7.1!
Here are the highlights of this release:
- Faster incremental Java compilation
- Easier source set configuration in the Kotlin DSL
For more details see https://docs.gradle.org/7.1/release-notes.html
------------------------------------------------------------
Gradle 7.1
------------------------------------------------------------
Build time: 2021-06-14 14:47:26 UTC
Revision: 989ccc9952b140ee6ab88870e8a12f1b2998369e
Kotlin: 1.4.31
Groovy: 3.0.7
Ant: Apache Ant(TM) version 1.10.9 compiled on September 27 2020
JVM: 11.0.16 (Ubuntu 11.0.16+8-post-Ubuntu-0ubuntu120.04)
OS: Linux 5.15.0-50-generic amd64
짠 성공적으로 7 버전대의 gradle을 설치완료하였다.
다음 포스팅에서는, maven to gradle을 올리도록하겠다.