Hi, I am Vilayat, I am new to java build tooling e...
# community-support
s
Hi, I am Vilayat, I am new to java build tooling ecosystem and gradle caught my eye with its impressive features. However I am facing issues with setup. Can anyone help me setting up gradle on my Ubuntu machine? What I did so far? 1. I ran
sudo apt install gradle
to install gradle. 2. Created a new project using `gradle init --type java-application
a
Hi 👋 What's the output if you run
./gradlew --version
?
🙌 1
s
Copy code
------------------------------------------------------------
Gradle 4.4.1
------------------------------------------------------------

Build time:   2012-12-21 00:00:00 UTC
Revision:     none

Groovy:       2.4.21
Ant:          Apache Ant(TM) version 1.10.12 compiled on January 17 1970
JVM:          21.0.3 (Eclipse Adoptium 21.0.3+9-LTS)
OS:           Linux 6.5.0-35-generic amd64
Copy code
openjdk 21.0.3 2024-04-16 LTS
OpenJDK Runtime Environment Temurin-21.0.3+9 (build 21.0.3+9-LTS)
OpenJDK 64-Bit Server VM Temurin-21.0.3+9 (build 21.0.3+9-LTS, mixed mode, sharing)
I tried updating Java to the latest possible one but now I cannot even initiate a new gradle project
a
Gradle 4.4.1 is very old
what's the output of
gradle --version
?
s
Hey.. I deleted everything. Installed Java 21. Install sdkman and installed gradle via sdk and the version is 8.8 Now its all working!
a
nice!
I guess that when you installed Gradle from Ubuntu it installed an old version. You should probably check that your Ubuntu packages are up to date, because you might be missing updates from other software too.
👀 1
v
Not really, Ubuntu just does not update the Gradle package. 4.4.1 indeed is the latest version available in the package repository
But thank god, it anyway is irrelevant what version you have installed or whether you have any installed at all in 99% of the cases anyway