Working with Gradle in IntelliJ IDEA
Вставка
- Опубліковано 20 лип 2024
- In this video we're going to look at how to create, open, and work with Gradle projects in IntelliJ IDEA
00:00 - Intro
00:17 - Creating a new project
02:18 - Tour of a Gradle project
04:41 - The build.gradle file
05:47 - Gradle dependencies
08:09 - Source set directories
08:56 - Group ID and version number
09:45 - Opening a Gradle project
11:52 - Opening the Gradle tool window
12:46 - Setting an abbreviation
13:43 - Running Gradle tasks
15:17 - Syncing and reloading
16:52 - Gradle settings
18:25 - Gradle wrapper
*Author: Trisha Gee
For more information, go to: jb.gg/working-with-gradle
Download IntelliJ IDEA: jb.gg/download-intellij-idea
Top 15 IntelliJ IDEA shortcuts: • Top 15 IntelliJ IDEA s...
Join us:
Website jb.gg/website
Blog jb.gg/blog
Twitter / intellijidea
Facebook /
Category: Building Projects
#gradle #intelliJIDEA #intelliJ #jetbrains #java #programming #intellijidea_tutorial
I want more videos like this one! It do help me understand what gradle is and how to use gradle in IDEA. Thank you!
Glad it was helpful!
More to come!
I've never even touched Gradle before, so this video was a real life saver!
Thanks for sharing this video. Very useful. I'm also looking at how to create a gradle build for a simple Java project. A simple hello world sample would be great.
clear and concise, excellent video on gradle
Very informative and a lot of knowledge within few mins..Great
Rich in content. Great explanation. Thanks.
Really it is worthy to watch. Thank you ❤️
Glad you enjoyed it!
But HOW DO I GET GRADLE ON THE LEFT SIDE
It says Gradle is installed, but it doesn't show up on the left side of the new project window.
Great tutorial, thanks
Thanks, useful if any intellij maven user starting with intellij gradle.. 👍
So recently I was working on an old project having Java 8 compatible with Gradle Build.
The build was always getting failed even though I had selected Java8 in project structure. It was not able to recognise wsimport.
Finally got to know Gradle uses default jdk which you have to change after watching this video !
Thx for making! 👍
Our pleasure!
Ok, I searched for ways to change gradle version and change JVM used in project, found answers to both in the 'gradle settings' and 'gradle wrapper' chapters of this video. So it is helpful. Now I need the answer to more complex question: how to configure settings in idea for removing "Found Invalid Gradle JVM configuration" with JAVA_HOME variable set to openjdk 18
Nice and precise
Excellent work and very helpful
Thank you! Cheers!
Very helpful!
Thank you very much.
Is there a video for quickly setting up a composite build? I have been trying to explain how easy this is with intellij but can't find a good video for it.
Awesome tutorial.
Thank you! Cheers!
Extremely helpful
Glad you think so!
nice, very helpfull
Great, usefull
Glad to hear that!
It's a nice tutorial. But I have a question: Why I get no completion for dependency when I type implemention like 12:15?
Thx, it`s very usefull
Glad to hear that!
On open project action, in the build window I see error "Unable to find valid certification path to requested target".
Unfortunately it does not mention for which target it's having issue... where can I see that details?
5:56 will "add maven artifact" be added to Android studio? so many cool features and they are not working :(
I am confused, why, unlike maven projects, intellij is detecting main and test folders as modules rather than directories for gradle projects?
My New Project Wizard looks completely different and there is no Gradle in the left side bar. Is this a version issue? Intellij IDEA 2022.1
Which gradle version we need to use in gradle_wrapper.properriess.
Currently with 6.8 having log4j vulnerability
Does anybody knows how to add a dependency from a local gradle project instead of a repository?
where i can find maven artifact search because when i click on generate it shows the copyright button only how can i open add maven artifact dependency
I have gradle project with a number of gradle modules and the my-modul-main depends on the modul-common. But IntellijIdea does not see this dependency completely, the only modul-common:test (only scope tests, but not the main one). I've built my project with gradle, and it is built perfectly, but InteelijIdea shows red packages in classes since it doesn't see dependency well. I check Project Structure - modules - my-module-main and there are no expected dependency (only with test scope). Please help
The way she tries to breathe quietly killing me 🤣🤣🤣
Hi, I am not getting the src folder. Could you please help with the same?
What do you mean by 'not getting the src folder' ?
I mean I didn’t find src folder under the project and thank you.. I resolved it 🙂
@@swathiramana2680 Hello, what is the solution?
Please
after Maven,here comes Gradle.
how to write hello world there
F*ck me! I've spent like 2hrs trying to figure out why my gradle wrapper is not working. Dot and slash ( ./ )! Thank you for this video, otherwise I'd probably throw my computer through the window.
i use both paid and community editions of this IDE with gradle versions 5/6 on windows and mac - it doesn't work like this ever. you have to play games to get the 'content roots' created - and gradle 7 doesn't work with the IDE at all with mysterious groovy errors...
seriously looking at switching to something more bare metal that actually works.
I have the same experience. By stability Maven and its integration with IDE a miles ahead of Gradle.
try switching to the kotlin dsl, from my personal experience it works better w/ intellij.
may not be the same for others though, but give it a try first.
pico jak ort mam spustit tu zastanou aplikaci
Download IntelliJ IDEA: jb.gg/download-intellij-idea
Error 404
I think things have changed a little bit with kotlin
How did you go about learning this stuff with Kotlin as the default DSL? I'm completely new to any of this and I find this video quite confusing as it still uses Groovy.
Why you so osum?
Could you please update this video for Kotlin? As I've understood Kotlin is now the default DSL. I'm completely new to any of this so it's slightly confusing as I want to learn by using industry standards.
How good it looks and how horrible my latest experience with working on Gradle project in Idea:
1. Checkout some project, trying to open it in IDEA and getting just nothing
2. Checking idea logs and found exceptions like "could not find extension implementation class org.jetbrains.kotlin.idea.scripting.gradle.importing.KotlinDslSyncListener"
3. Trying to find issue on youtrack, no exact matches but found similar which expected to be fixed in next release version...
4. Update idea to the latest EAP version (which, you know, could be a bit difficult for corporate users)
5. Trying to open it in idea again...
6. Idea importing project for 10 minutes and just hang on "Gradle: Download groovy-all-1.3-2.5.8.pom..."
7. Checking idea logs and nothing found
8. Searching on youtrack for that string and found IDEA-236128 without any workarounds
9. After 15 minutes of hanging project successfully open
And each time I opening this project I have to wait for 15 minutes again.
so what you suggest?
@@ahmettachmuradov8630 Nothing special actually. But I quite often see that people praise Gradle, just wanted to show that facing issues is a 'normal' process for Gradle (and its integration with IDE).
@@hexploy I see. I must learn it because our team uses gradle as a building tool.
Will see how it goes.
this shit is so fucking frustrating at some many levels