Kotlin Tutorial: Creating a Gradle / Kotlin Project - Example 2

  Рет қаралды 2,948

TDD TV

TDD TV

5 жыл бұрын

This Kotlin tutorial is yet another example of setting up a Kotlin Project. First example can be found here on how to create a simple kotlin project:
There are several ways to create a Kotlin Project in IntelliJ, here's yet another way. This time we'll create a bare bones Kotlin Project, we'll use gradle init, but instead we'll choose option 9 in gradle init which is just a plain kotlin library instead of a kotlin application.
In this video I demonstrate how to create a new Kotlin Project that:
- includes the Kotlin JVM and Java SDK
- add a Kotlin gradle implementation using gradle init / option 9
- build the project
- Run a test using kotlin-test-junit

Пікірлер: 2
@helenesperance
@helenesperance 4 жыл бұрын
thanks for the explanation. I realized that gradle init needs to be done in existing project in order to run project in Intellij. @TDD TV in current gradle version (6.3) the prompt has changed and therefore options (1- basic, 2- app, 3- library 4-..) so 9 is now 3. Could you explain why you prefered library over app in that example?
@no_fb
@no_fb 4 жыл бұрын
Hey, thanks for the videos! The reason why the 'some test' details don't appear the first time is the filter on the test panel. You can select which tests are shown: failed tests (the barred circle, usually on), and successful tests (the check mark on the left), which is off the first time, and on after you reset IntelliJ. You also have other like unfold and so on. Note also that sometimes Gradle tests are not executing properly in IntelliJ, it says something like it hadn't receive the test event. It's a known bug and native IntelliJ testing usually works better, you can select that in the settings 'Build, Execution, Deployment' / 'Build tools' / 'Gradle' and select 'Run tests using: IntelliJ IDEA' instead of 'Gradle' if you run into this problem.
Google IO 2024 Full Breakdown: Google is RELEVANT Again!
27:35
Matthew Berman
Рет қаралды 39 М.
Hello World with IntelliJ IDE and Kotlin
5:15
Heidi Gentry Kolen
Рет қаралды 5 М.
[Vowel]물고기는 물에서 살아야 해🐟🤣Fish have to live in the water #funny
00:53
How To Choose Ramen Date Night 🍜
00:58
Jojo Sim
Рет қаралды 51 МЛН
ChatGPT’s Amazing New Model Feels Human (and it's Free)
25:02
Matt Wolfe
Рет қаралды 189 М.
Factory Method Pattern - Design Patterns (ep 4)
27:21
Christopher Okhravi
Рет қаралды 529 М.
Rows, Columns & Basic Sizing - Android Jetpack Compose - Part 2
17:24
Philipp Lackner
Рет қаралды 122 М.
Google Data Center 360° Tour
8:29
Google Cloud Tech
Рет қаралды 5 МЛН
React For Beginners 4 : How React App Works
9:39
Code Stoic
Рет қаралды 19 М.
GPT-4o Is Here And Wow It’s Good
16:57
AI For Humans
Рет қаралды 14 М.
OpenAI Launches NEW GPT4-OMNI aka “HER” (Supercut)
14:51
Matthew Berman
Рет қаралды 34 М.
What is Clean Code? with "Uncle Bob" Robert C. Martin
12:07
The Data Science Channel
Рет қаралды 9 М.
How the OSI Model Works | Network Fundamentals Part 3
16:51
Network Direction
Рет қаралды 499 М.
🤯Самая КРУТАЯ Функция #shorts
0:58
YOLODROID
Рет қаралды 3,5 МЛН
Apple, как вас уделал Тюменский бренд CaseGuru? Конец удивил #caseguru #кейсгуру #наушники
0:54
CaseGuru / Наушники / Пылесосы / Смарт-часы /
Рет қаралды 3,7 МЛН
САМЫЙ дешевый ПК с OZON на RTX 4070
16:16
Мой Компьютер
Рет қаралды 116 М.