Gradle安装

参考
https://gradle.org/install/

  1. 环境查看
    系统环境
# cat /etc/redhat-release 
Rocky Linux release 9.3 (Blue Onyx)
# uname -a
Linux Rocky9AndroidRunner003093 5.14.0-362.18.1.el9_3.0.1.x86_64 #1 SMP PREEMPT_DYNAMIC Sun Feb 11 13:49:23 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux

软件环境

# 
  1. 安装
    根据需要选择版本下载
    https://gradle.org/releases/
    解压至以下目录
# /opt/gradle

设置系统环境变量

# cat /etc/profile
# export PATH=$PATH:/opt/gradle/bin

查看

# source /etc/profile
# gradle --version

------------------------------------------------------------
Gradle 8.9
------------------------------------------------------------

Build time:    2024-07-11 14:37:41 UTC
Revision:      d536ef36a19186ccc596d8817123e5445f30fef8

Kotlin:        1.9.23
Groovy:        3.0.21
Ant:           Apache Ant(TM) version 1.10.13 compiled on January 4 2023
Launcher JVM:  17.0.10 (Oracle Corporation 17.0.10+11-LTS-240)
Daemon JVM:    /usr/lib/jvm/jdk-17-oracle-x64 (no JDK specified, using current Java home)
OS:            Linux 5.14.0-362.18.1.el9_3.0.1.x86_64 amd64
posted @ 2025-04-08 13:56  minseo  阅读(45)  评论(0)    收藏  举报