https://kotlinlang.org logo
#getting-started
Title
# getting-started
r

Ray Rahke

02/24/2024, 3:50 PM
Do I need to use maven for ktor? The github docs say to add mavenCentral() as a repository. i am new to java/kotlin. Dont i have to pick between gradle and maven?
s

Sam

02/24/2024, 3:58 PM
Maven repositories and dependencies are compatible with both Gradle and Maven 👍
r

Ray Rahke

02/24/2024, 4:02 PM
image.png
io is failing to import?
s

Sam

02/24/2024, 4:02 PM
After modifying your Gradle file you need to refresh the build -- see the little icon at the top right of the editor?
🐘 1
r

Ray Rahke

02/24/2024, 4:04 PM
Ah I do! Thanks!
image.png
can I do this part if I have community edition? Is it just the IntelliJ launcher plugin that is paywalled?
s

Sam

02/24/2024, 4:08 PM
Yes, the Gradle plugin is free
r

Ray Rahke

02/24/2024, 4:09 PM
i see
image.png
when I press teh play button...
s

Sam

02/24/2024, 4:18 PM
That seems okay. The stuff about slf4j and the StaticLoggerBinder is just a warning, you can ignore it until you come to set up logging in your application
r

Ray Rahke

02/24/2024, 4:18 PM
ah okay
yeah the localhost works
👍 1
and I am running it the idiomatic way right? just pressing the play button while in Main.kt/
the docs said to use ./gradelw
I tried doing that command in root and it failed
in root/
s

Sam

02/24/2024, 4:20 PM
Either should be fine for development purposes 👍